1 |
# $Id: smeserver-durep.spec,v 1.13 2023/03/23 11:23:58 michel Exp $ |
2 |
# Authority: unnilennnium |
3 |
# Name: JP Pialasse |
4 |
|
5 |
%define name smeserver-durep |
6 |
Name: %{name} |
7 |
%define version 1.5.0 |
8 |
Version: %{version} |
9 |
%define release 16 |
10 |
Release: %{release}%{?dist} |
11 |
License: GPL |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
|
14 |
Patch0: smeserver-durep-1.5.0-bz10118-more_paths.patch |
15 |
Patch1: smeserver-durep-1.5.0-dfposix.patch |
16 |
Patch2: smeserver-durep-1.5.0-Add-creatlinks-to-alter-link-to-wrapper.patch |
17 |
Patch3: smeserver-durep-1.5.0-bz10893-noreboot.patch |
18 |
Patch4: smeserver-durep-1.5.0-permissions.patch |
19 |
Patch5: smeserver-durep-1.5.0-manager2.patch |
20 |
Patch6: smeserver-durep-1.5.0-Add-class-to-div-for-AdminLTE.patch |
21 |
Patch7: smeserver-durep-1.5.0-bz11841_localisation_dir.patch |
22 |
Patch8: smeserver-durep-1.5.0-bz11975.patch |
23 |
Patch9: smeserver-durep-1.5.0-bz12007-backup.patch |
24 |
Patch10: smeserver-durep-1.5.0-bz12342_sm2_bar_image.patch |
25 |
Patch11: smeserver-durep-1.5.0-bz12342_sm2_bar_bis.patch |
26 |
|
27 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
28 |
BuildRequires: e-smith-devtools |
29 |
BuildArch: noarch |
30 |
Group: Networking/Daemons |
31 |
Summary: DUREP - Graphic Report for Disk Usage |
32 |
Requires: perl(Data::Dumper) |
33 |
Requires: perl(MLDBM) >= 1.21-4 |
34 |
Obsoletes: smeserver-durep-saco |
35 |
Obsoletes: e-smith-durep |
36 |
|
37 |
AutoReqProv: no |
38 |
|
39 |
%changelog |
40 |
* Thu Mar 23 2023 Michel Begue <mab974@misouk.com> 1.5.0-16.sme |
41 |
- fix typo in previous release [SME: 12342] |
42 |
|
43 |
* Wed Mar 22 2023 Michel Begue <mab974@misouk.com> 1.5.0-15.sme |
44 |
- allow access to bar.png image in SM2 [SME: 12342] |
45 |
|
46 |
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 1.5.0-14.sme |
47 |
- Re-build and link to latest devtools [SME: 11997] |
48 |
|
49 |
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme |
50 |
- add to core backup [SME: 12007] |
51 |
|
52 |
* Wed May 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme |
53 |
- allow access to user with userpanel [SME: 11975] |
54 |
|
55 |
* Sat Jan 08 2022 Michel Begue <mab974@misouk.com> 1.5.0-11.sme |
56 |
- Re-build and link to latest devtools wrong localisation directory [SME: 11841] |
57 |
|
58 |
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.5.0-10.sme |
59 |
- Add-class-to-div-for-AdminLTE [SME: 11835] |
60 |
|
61 |
* Thu Jun 03 2021 Michel Begue <mab974@gmail.com> 1.5.0-9.sme |
62 |
- first use with smeserver-manager [SME: 11618] |
63 |
|
64 |
* Thu Mar 04 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-8.sme |
65 |
- Re-build and link to latest devtools permissions of cgi inside spec file too |
66 |
|
67 |
* Thu Mar 04 2021 Michel Begue <mab974@gmail.com> 1.5.0-7.sme |
68 |
- Re-build and link to latest devtools permissions of cgi and data files |
69 |
|
70 |
* Mon Feb 22 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-6.sme |
71 |
- add smeserver-durep-update event [SME: 10893] |
72 |
make up spec file |
73 |
|
74 |
* Fri Oct 23 2020 Brian Read <brianr@bjsystems.co.uk> 1.5.0-5.sme |
75 |
- Initial import to SME10 tree [SME: 10893] |
76 |
- Add in link to wrapper in createlinks |
77 |
|
78 |
* Sat Dec 28 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-4.sme |
79 |
- output all mounted points with df on one line using Posix |
80 |
|
81 |
* Sat Feb 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 1.5.0-3.sme |
82 |
- add hability to stat more directories [SME: 10118] |
83 |
- add status enabled or disabled |
84 |
|
85 |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
86 |
- Initial release to contribs9 |
87 |
|
88 |
* Sat Jun 21 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme |
89 |
- Initial release to sme9 |
90 |
|
91 |
* Thu Sep 13 2012 JP Pialasse <test@pialasse.com> 1.3.0-6.sme |
92 |
- add Obsoletes smeserver-durep-saco e-smith-durep [SME 7108] |
93 |
- TODO cleaning spec file post and filelist chmod |
94 |
|
95 |
* Mon Sep 10 2012 JP Pialasse <test@pialasse.com> 1.3.0-5.sme |
96 |
- Re-build and link to latest devtools do not copy files and filelist [SME 7098] |
97 |
- patch df of plugged disk |
98 |
|
99 |
* Sun Sep 09 2012 JP Pialasse <test@pialasse.com> 1.3.0-4.sme |
100 |
- dependencies resolution |
101 |
|
102 |
* Fri Aug 31 2012 JP Pialasse <test@pialasse.com> 1.3.0-3.sme |
103 |
- build error fix : prep setup |
104 |
|
105 |
* Wed Aug 15 2012 JP Pialasse <test@pialasse.com> 1.3.0-1.sme |
106 |
- update from 1.03-02sn to comply with SME8 and SME7 |
107 |
- moved archives to /var/lib/durep |
108 |
- moved web files to manager/html |
109 |
- cleaned spec |
110 |
|
111 |
%description |
112 |
DUREP is a Report Generator that creates graphical Output for the "du" command |
113 |
|
114 |
%prep |
115 |
%setup |
116 |
%patch0 -p1 |
117 |
%patch1 -p1 |
118 |
%patch2 -p1 |
119 |
%patch3 -p1 |
120 |
%patch4 -p1 |
121 |
%patch5 -p1 |
122 |
%patch6 -p1 |
123 |
%patch7 -p1 |
124 |
%patch8 -p1 |
125 |
%patch9 -p1 |
126 |
%patch10 -p1 |
127 |
%patch11 -p1 |
128 |
|
129 |
%build |
130 |
perl createlinks |
131 |
|
132 |
%install |
133 |
/bin/rm -rf $RPM_BUILD_ROOT |
134 |
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
135 |
/bin/rm -f %{name}-%{version}-filelist |
136 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
137 |
--file "/usr/local/bin/durep" 'attr(0755,root,root)' \ |
138 |
--file "/usr/sbin/durep.daily" 'attr(0755,root,root)' \ |
139 |
--file '/etc/e-smith/web/panels/manager/html/durep/durep.cgi' 'attr(0750,root,admin)' \ |
140 |
> %{name}-%{version}-filelist |
141 |
|
142 |
|
143 |
%clean |
144 |
/bin/rm -rf $RPM_BUILD_ROOT |
145 |
|
146 |
%files -f %{name}-%{version}-filelist |
147 |
%defattr(-,root,root) |
148 |
|
149 |
%pre -p /bin/sh |
150 |
|
151 |
%post -p /bin/sh |
152 |
|
153 |
%preun -p /bin/sh |
154 |
|
155 |
%postun -p /bin/sh |
156 |
if [ $1 = 0 ] ; then |
157 |
/bin/rm -f /usr/share/smanager/themes/default/images/bar.png |
158 |
fi |
159 |
true |