1 |
# $Id: smeserver-durep-1.3.0.spec,v 1.1 2012/09/03 14:36:44 slords Exp $ |
# $Id: smeserver-durep-1.3.0.spec,v 1.2 2012/09/10 03:56:29 unnilennium Exp $ |
2 |
# Authority: unnilennnium |
# Authority: unnilennnium |
3 |
# Name: JP Pialasse |
# Name: JP Pialasse |
4 |
|
|
6 |
Name: %{name} |
Name: %{name} |
7 |
%define version 1.3.0 |
%define version 1.3.0 |
8 |
Version: %{version} |
Version: %{version} |
9 |
%define release 3 |
%define release 4 |
10 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
11 |
License: GPL |
License: GPL |
12 |
Source: %{name}-%{version}.tgz |
Source: %{name}-%{version}.tgz |
13 |
|
Patch1: smeserver-durep-1.3.0-df.patch |
14 |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
15 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
16 |
BuildArch: noarch |
BuildArch: noarch |
20 |
Requires: perl(MLDBM) >= 1.21-4 |
Requires: perl(MLDBM) >= 1.21-4 |
21 |
|
|
22 |
%changelog |
%changelog |
23 |
* Fri Aug 31 2012 JP Pialasse <test@pialasse.com> 1.3.0-3.sme |
* Tue Sep 11 2012 JP Pialasse <test@pialasse.com> 1.3.0-4.sme |
24 |
|
- fix do not copy files and filelist |
25 |
|
- patch df of plugged disk |
26 |
|
|
27 |
|
* Sun Sep 09 2012 JP Pialasse <test@pialasse.com> 1.3.0-3.sme |
28 |
|
- dependencies resolution |
29 |
|
|
30 |
|
* Fri Aug 31 2012 JP Pialasse <test@pialasse.com> 1.3.0-2.sme |
31 |
- build error fix : prep setup |
- build error fix : prep setup |
32 |
|
|
33 |
* Wed Aug 15 2012 JP Pialasse <test@pialasse.com> 1.3.0-1.sme |
* Wed Aug 15 2012 JP Pialasse <test@pialasse.com> 1.3.0-1.sme |
40 |
DUREP is a Report Generator that creates graphical Output for the "du" command |
DUREP is a Report Generator that creates graphical Output for the "du" command |
41 |
|
|
42 |
%prep |
%prep |
|
|
|
43 |
%setup |
%setup |
44 |
|
%patch1 -p1 |
45 |
|
|
46 |
%install |
%install |
47 |
rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
48 |
( find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
49 |
rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
50 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
51 |
|
|
52 |
%clean |
%clean |
53 |
rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
54 |
|
|
55 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
56 |
%defattr(-,root,root) |
%defattr(-,root,root) |
57 |
|
|
|
#%attr(0644 root root) "/etc/e-smith/templates/etc/crontab/durep" |
|
58 |
#%attr(4750 root admin) "/etc/e-smith/web/functions/durep" |
#%attr(4750 root admin) "/etc/e-smith/web/functions/durep" |
59 |
#%attr(0777 root root) "/etc/e-smith/web/panels/manager/cgi-bin/durep" |
#%attr(0777 root root) "/etc/e-smith/web/panels/manager/cgi-bin/durep" |
60 |
#%attr(0644 root root) "/usr/local/bin/durep" |
#%attr(0644 root root) "/usr/local/bin/durep" |
68 |
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/bar.png" |
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/bar.png" |
69 |
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/durep.cgi" |
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/durep.cgi" |
70 |
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/style.css" |
#%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/style.css" |
71 |
|
|
72 |
%pre -p /bin/sh |
%pre -p /bin/sh |
73 |
|
|
74 |
%post -p /bin/sh |
%post -p /bin/sh |
75 |
chmod 755 /usr/local/bin/durep |
chmod 755 /usr/local/bin/durep |
76 |
chmod 755 /usr/sbin/durep.daily |
chmod 755 /usr/sbin/durep.daily |
78 |
echo "Initial run of durep ... please wait." |
echo "Initial run of durep ... please wait." |
79 |
/usr/sbin/durep.daily >/dev/null |
/usr/sbin/durep.daily >/dev/null |
80 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
81 |
|
|
82 |
%preun -p /bin/sh |
%preun -p /bin/sh |
83 |
|
|
84 |
%postun -p /bin/sh |
%postun -p /bin/sh |
85 |
if [ "$1" = 0 ]; then |
if [ "$1" = 0 ]; then |
86 |
/sbin/e-smith/expand-template /etc/crontab |
/sbin/e-smith/expand-template /etc/crontab |