Author: glen                         Date: Mon Aug  8 15:26:00 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add make install and package perl files

---- Files affected:
SPECS:
   Apache-FileManager.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/Apache-FileManager.spec
diff -u SPECS/Apache-FileManager.spec:1.3 SPECS/Apache-FileManager.spec:1.4
--- SPECS/Apache-FileManager.spec:1.3   Mon Aug  8 17:20:53 2005
+++ SPECS/Apache-FileManager.spec       Mon Aug  8 17:25:55 2005
@@ -1,4 +1,9 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
 Summary:       Apache module: File Manager
 Summary(pl):   Moduł Apache'a: Zarządca plików
 Name:          Apache-FileManager
@@ -8,9 +13,13 @@
 Group:         Networking/Daemons
 Source0:       
http://www.cpan.org/modules/by-module/Apache/PMC/%{name}-%{version}.tar.gz
 # Source0-md5: c9215148e78d20b3ef9774210d08daf3
+URL:           http://freshmeat.net/projects/apache-filemanager/
 BuildRequires: rpmbuild(macros) >= 1.228
 Requires(post,preun):  rc-scripts
-URL:           http://freshmeat.net/projects/apache-filemanager/
+%if %{with tests}
+BuildRequires: todo...
+%endif
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -29,11 +38,13 @@
 %{__make} \
        OPTIMIZE="%{rpmcflags}"
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_mandir}/man3
-install blib/man3/* $RPM_BUILD_ROOT%{_mandir}/man3/Apache-FileManager.3pm
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -50,6 +61,7 @@
 %defattr(644,root,root,755)
 %doc Changes
 %{_mandir}/man3/*
+%{perl_vendorlib}/Apache/FileManager.pm
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -57,6 +69,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2005/08/08 15:25:55  glen
+- add make install and package perl files
+
 Revision 1.3  2005/08/08 15:20:53  glen
 - fix postun, add missing BR and R(p,pu) for %service macro
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/Apache-FileManager.spec?r1=1.3&r2=1.4&f=u

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to