SPECS: bopm.spec - add perl tests - add perl macros
glen
glen at pld-linux.org
Tue Jan 10 23:14:03 CET 2006
Author: glen Date: Tue Jan 10 22:14:03 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add perl tests
- add perl macros
---- Files affected:
SPECS:
bopm.spec (1.13 -> 1.14)
---- Diffs:
================================================================
Index: SPECS/bopm.spec
diff -u SPECS/bopm.spec:1.13 SPECS/bopm.spec:1.14
--- SPECS/bopm.spec:1.13 Tue Jan 10 23:09:58 2006
+++ SPECS/bopm.spec Tue Jan 10 23:13:58 2006
@@ -1,10 +1,15 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
+%define pnam OPM
Summary: Open proxy monitor and blocker, designed for use with ircds
Summary(pl): Monitorowanie i blokowanie otwartych proxy do używania z ircd
Name: bopm
Version: 3.1.2
-Release: 0.17
+Release: 0.18
License: GPL
Group: Applications/Communications
Source0: http://static.blitzed.org/www.blitzed.org/bopm/files/%{name}-%{version}.tar.gz
@@ -81,13 +86,13 @@
%description static
Static libopm library.
-%package -n perl-OPM
+%package -n perl-%{pnam}
Summary: OPM - Perl interface to libopm open proxy scanning library
Group: Development/Languages/Perl
Requires: %{name}-libs = %{version}-%{release}
# should here be Version: 0.01 due to "Provides: OPM.so perl(OPM) = 0.01"?
-%description -n perl-OPM
+%description -n perl-%{pnam}
OPM - Perl interface to libopm open proxy scanning library.
%prep
@@ -116,6 +121,7 @@
INSTALLDIRS=vendor
%{__make} \
OPTIMIZE="%{rpmcflags}"
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
@@ -132,9 +138,9 @@
cd src/libopm/OPM
%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/OPM/.packlist
-install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-OPM-%{version}
-mv $RPM_BUILD_ROOT{%{perl_vendorarch},%{_examplesdir}/perl-OPM-%{version}}/bopchecker.pl
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/%{pnam}/.packlist
+install -d $RPM_BUILD_ROOT%{_examplesdir}/perl-%{pnam}-%{version}
+mv $RPM_BUILD_ROOT{%{perl_vendorarch},%{_examplesdir}/perl-%{pnam}-%{version}}/bopchecker.pl
%clean
rm -rf $RPM_BUILD_ROOT
@@ -191,7 +197,7 @@
%defattr(644,root,root,755)
%{_libdir}/libopm.a
-%files -n perl-OPM
+%files -n perl-%{pnam}
%defattr(644,root,root,755)
%{perl_vendorarch}/OPM.pm
%dir %{perl_vendorarch}/auto/OPM
@@ -206,6 +212,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.14 2006/01/10 22:13:58 glen
+- add perl tests
+- add perl macros
+
Revision 1.13 2006/01/10 22:09:58 glen
- created perl-OPM
- packaged -devel and -static for completeness
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/bopm.spec?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list