packages: mailgraph/mailgraph.spec - build and package manual
glen
glen at pld-linux.org
Mon Jul 12 13:34:17 CEST 2010
Author: glen Date: Mon Jul 12 11:34:17 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- build and package manual
---- Files affected:
packages/mailgraph:
mailgraph.spec (1.50 -> 1.51)
---- Diffs:
================================================================
Index: packages/mailgraph/mailgraph.spec
diff -u packages/mailgraph/mailgraph.spec:1.50 packages/mailgraph/mailgraph.spec:1.51
--- packages/mailgraph/mailgraph.spec:1.50 Sun Mar 22 14:38:11 2009
+++ packages/mailgraph/mailgraph.spec Mon Jul 12 13:34:12 2010
@@ -17,6 +17,7 @@
Patch0: %{name}-paths.patch
Patch1: %{name}-postfix_rbl.patch
URL: http://mailgraph.schweikert.ch/
+BuildRequires: perl-tools-pod
BuildRequires: rpm-perlprov
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
@@ -51,21 +52,24 @@
%patch0 -p1
%patch1 -p1
+%build
+pod2man mailgraph.pl > mailgraph.1
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir},%{_sbindir}} \
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir},%{_sbindir},%{_mandir}/man1} \
$RPM_BUILD_ROOT{%{_appdir},%{_pkglibdir}/img,/var/log}
-install mailgraph.cgi $RPM_BUILD_ROOT%{_appdir}/index.cgi
-install mailgraph.pl $RPM_BUILD_ROOT%{_sbindir}/mailgraph.pl
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mailgraph
-install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
-install mailgraph.css $RPM_BUILD_ROOT%{_sysconfdir}/mailgraph.css
-touch $RPM_BUILD_ROOT/var/log/mailgraph.log
-
+install -p mailgraph.cgi $RPM_BUILD_ROOT%{_appdir}/index.cgi
+install -p mailgraph.pl $RPM_BUILD_ROOT%{_sbindir}/mailgraph.pl
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -a mailgraph.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mailgraph
+cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+cp -a mailgraph.css $RPM_BUILD_ROOT%{_sysconfdir}/mailgraph.css
ln -sf %{_sysconfdir}/mailgraph.css $RPM_BUILD_ROOT%{_appdir}/mailgraph.css
+touch $RPM_BUILD_ROOT/var/log/mailgraph.log
%clean
rm -rf $RPM_BUILD_ROOT
@@ -139,13 +143,14 @@
%dir %attr(750,root,http) %{_sysconfdir}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mailgraph.css
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mailgraph.css
%attr(755,root,root) %{_sbindir}/mailgraph.pl
+%{_mandir}/man1/mailgraph.1*
%attr(754,root,root) /etc/rc.d/init.d/mailgraph
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mailgraph
%dir %{_appdir}
%attr(755,root,root) %{_appdir}/index.cgi
-%attr(644,root,root) %{_appdir}/mailgraph.css
+%{_appdir}/mailgraph.css
%attr(770,root,stats) %dir %{_pkglibdir}
%attr(775,root,http) %dir %{_pkglibdir}/img
%ghost /var/log/mailgraph.log
@@ -156,6 +161,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.51 2010/07/12 11:34:12 glen
+- build and package manual
+
Revision 1.50 2009/03/22 13:38:11 blues
- rel.2 - add css file
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/mailgraph/mailgraph.spec?r1=1.50&r2=1.51&f=u
More information about the pld-cvs-commit
mailing list