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