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