/[smecontribs]/rpms/smeserver-durep/contribs9/smeserver-durep.spec
ViewVC logotype

Annotation of /rpms/smeserver-durep/contribs9/smeserver-durep.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Sat Aug 22 19:35:51 2015 UTC (9 years, 3 months ago) by stephdl
Branch: MAIN
Changes since 1.2: +4 -22 lines
Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme - Initial release to contribs9

1 stephdl 1.3 # $Id: smeserver-durep.spec,v 1.3 2012/08/15 22:15:30 unnilennium Exp $
2 stephdl 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 stephdl 1.3 %define release 2
10 stephdl 1.1 Release: %{release}%{?dist}
11     License: GPL
12     Source: %{name}-%{version}.tar.gz
13     BuildRoot: /var/tmp/%{name}-%{version}-buildroot
14     BuildRequires: e-smith-devtools
15     BuildArch: noarch
16     Group: Networking/Daemons
17     Summary: DUREP - Graphic Report for Disk Usage
18     Requires: perl(Data::Dumper)
19     Requires: perl(MLDBM) >= 1.21-4
20     Obsoletes: smeserver-durep-saco
21     Obsoletes: e-smith-durep
22    
23    
24     %changelog
25 stephdl 1.3 * Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme
26     - Initial release to contribs9
27 stephdl 1.1
28     * Sat Jun 21 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme
29     - Initial release to sme9
30    
31     * Thu Sep 13 2012 JP Pialasse <test@pialasse.com> 1.3.0-6.sme
32     - add Obsoletes smeserver-durep-saco e-smith-durep [SME 7108]
33     - TODO cleaning spec file post and filelist chmod
34    
35     * Mon Sep 10 2012 JP Pialasse <test@pialasse.com> 1.3.0-5.sme
36     - fix do not copy files and filelist [SME 7098]
37     - patch df of plugged disk
38    
39     * Sun Sep 09 2012 JP Pialasse <test@pialasse.com> 1.3.0-4.sme
40     - dependencies resolution
41    
42     * Fri Aug 31 2012 JP Pialasse <test@pialasse.com> 1.3.0-3.sme
43     - build error fix : prep setup
44    
45     * Wed Aug 15 2012 JP Pialasse <test@pialasse.com> 1.3.0-1.sme
46     - update from 1.03-02sn to comply with SME8 and SME7
47     - moved archives to /var/lib/durep
48     - moved web files to manager/html
49     - cleaned spec
50    
51     %description
52     DUREP is a Report Generator that creates graphical Output for the "du" command
53    
54     %prep
55     %setup
56    
57     %install
58     /bin/rm -rf $RPM_BUILD_ROOT
59     (cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
60     /bin/rm -f %{name}-%{version}-filelist
61     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
62    
63    
64     %clean
65     /bin/rm -rf $RPM_BUILD_ROOT
66    
67     %files -f %{name}-%{version}-filelist
68     %defattr(-,root,root)
69    
70     #%attr(0644 root root) "/etc/e-smith/templates/etc/crontab/durep"
71     #%attr(4750 root admin) "/etc/e-smith/web/functions/durep"
72     #%attr(0777 root root) "/etc/e-smith/web/panels/manager/cgi-bin/durep"
73     #%attr(0644 root root) "/usr/local/bin/durep"
74     #%dir %attr(0755 root root) "/usr/local/man"
75     #%dir %attr(0755 root root) "/usr/local/man/man1"
76     #%attr(0644 root root) "/usr/local/man/man1/durep.1"
77     #%dir %attr(0755 root root) "/usr/sbin"
78     #%attr(0644 root root) "/usr/sbin/durep.daily"
79     #%dir %attr(0755 root root) "/var/lib/durep"
80     #%dir %attr(0755 root root) "/etc/e-smith/web/panels/manager/html/durep"
81     #%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/bar.png"
82     #%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/durep.cgi"
83     #%attr(0644 root root) "/etc/e-smith/web/panels/manager/html/durep/style.css"
84    
85     %pre -p /bin/sh
86    
87     %post -p /bin/sh
88     chmod 755 /usr/local/bin/durep
89     chmod 755 /usr/sbin/durep.daily
90     /sbin/e-smith/expand-template /etc/crontab
91     echo "Initial run of durep ... please wait."
92     /usr/sbin/durep.daily >/dev/null
93     /etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1
94    
95     %preun -p /bin/sh
96    
97     %postun -p /bin/sh
98     if [ "$1" = 0 ]; then
99     /sbin/e-smith/expand-template /etc/crontab
100     /etc/e-smith/events/actions/navigation-conf 2>/dev/null
101     fi
102    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed