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