SPECS: bopm.spec - created perl-OPM - packaged -devel and -static ...
glen
glen at pld-linux.org
Tue Jan 10 23:10:03 CET 2006
Author: glen Date: Tue Jan 10 22:10:03 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- created perl-OPM
- packaged -devel and -static for completeness
---- Files affected:
SPECS:
bopm.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/bopm.spec
diff -u SPECS/bopm.spec:1.12 SPECS/bopm.spec:1.13
--- SPECS/bopm.spec:1.12 Tue Jan 10 22:58:03 2006
+++ SPECS/bopm.spec Tue Jan 10 23:09:58 2006
@@ -1,9 +1,10 @@
# $Revision$, $Date$
+%include /usr/lib/rpm/macros.perl
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.14
+Release: 0.17
License: GPL
Group: Applications/Communications
Source0: http://static.blitzed.org/www.blitzed.org/bopm/files/%{name}-%{version}.tar.gz
@@ -16,8 +17,8 @@
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
+BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.268
-Requires: %{name} = %{version}-%{release}
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
@@ -25,6 +26,7 @@
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
+Requires: %{name}-libs = %{version}-%{release}
Requires: rc-scripts >= 0.4.0.17
Provides: group(%{name})
Provides: user(%{name})
@@ -63,6 +65,31 @@
%description libs
libopm open proxy scanning library.
+%package devel
+Summary: Header files for libopm library
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+
+%description devel
+This is the package containing the header files for libopm library.
+
+%package static
+Summary: Static ... library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libopm library.
+
+%package -n perl-OPM
+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
+OPM - Perl interface to libopm open proxy scanning library.
+
%prep
%setup -q
%patch0 -p1
@@ -84,6 +111,12 @@
%{__make}
+cd src/libopm/OPM
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ OPTIMIZE="%{rpmcflags}"
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/{run,log}/%{name}}
@@ -96,6 +129,13 @@
> $RPM_BUILD_ROOT/var/log/%{name}/bopm.log
> $RPM_BUILD_ROOT/var/log/%{name}/scan.log
+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
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -139,8 +179,6 @@
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libopm.so.*.*.*
-# oneday when -devel is created
-%if 0
%files devel
%defattr(644,root,root,755)
%{_includedir}/opm.h
@@ -152,7 +190,15 @@
%files static
%defattr(644,root,root,755)
%{_libdir}/libopm.a
-%endif
+
+%files -n perl-OPM
+%defattr(644,root,root,755)
+%{perl_vendorarch}/OPM.pm
+%dir %{perl_vendorarch}/auto/OPM
+%{perl_vendorarch}/auto/OPM/OPM.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/OPM/OPM.so
+%{_examplesdir}/perl-OPM-%{version}
+%{_mandir}/man3/OPM.3pm*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -160,6 +206,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2006/01/10 22:09:58 glen
+- created perl-OPM
+- packaged -devel and -static for completeness
+
Revision 1.12 2006/01/10 21:58:03 glen
- -libs subpackage
- build bopm with libopm shared lib
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/bopm.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list