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