From 0c91fca5ff81a02f3b8b4960e5da0a580aa4075e Mon Sep 17 00:00:00 2001 From: radek Date: Tue, 23 Nov 2004 00:17:18 +0000 Subject: [PATCH 1/1] - new Changed files: perl-NetAddr-IP-Find.spec -> 1.1 --- perl-NetAddr-IP-Find.spec | 55 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 perl-NetAddr-IP-Find.spec diff --git a/perl-NetAddr-IP-Find.spec b/perl-NetAddr-IP-Find.spec new file mode 100644 index 0000000..3a6c3dd --- /dev/null +++ b/perl-NetAddr-IP-Find.spec @@ -0,0 +1,55 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir NetAddr +%define pnam IP-Find +Summary: NetAddr::IP::Find - Find IP addresses in plain text +#Summary(pl): +Name: perl-NetAddr-IP-Find +Version: 0.03 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/NetAddr/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 5f593c24e3edf7ceba7547d0a4cc1068 +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-NetAddr-IP +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is a module for finding IP addresses in plain text. + +# %description -l pl +# TODO + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes +%{perl_vendorlib}/NetAddr/IP/*.pm +%{_mandir}/man3/* -- 2.44.0