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