diff --git a/.cvsignore b/.cvsignore index 9e838a1..3c72977 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -URI-1.17.tar.gz +URI-1.21.tar.gz diff --git a/filter-requires-perl-URI.sh b/filter-requires-perl-URI.sh new file mode 100755 index 0000000..98b404c --- /dev/null +++ b/filter-requires-perl-URI.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/usr/lib/rpm/find-requires $* | grep -v 'perl(Business' diff --git a/perl-URI.spec b/perl-URI.spec new file mode 100644 index 0000000..e0720da --- /dev/null +++ b/perl-URI.spec @@ -0,0 +1,67 @@ +Summary: A Perl module implementing URI parsing and manipulation. +Name: perl-URI +Version: 1.21 +Release: 3 +License: distributable +Group: Applications/CPAN +Source0: URI-%{version}.tar.gz +Source1: filter-requires-perl-URI.sh +Url: http://www.cpan.org +BuildRoot: %{_tmppath}/perl-URI-buildroot/ +BuildRequires: perl >= 0:5.00503 +BuildRequires: perl(MIME::Base64) +Requires: perl >= 0:5.00503 +Provides: perl-URI +BuildArch: noarch + +%description +This module implements the URI class. Objects of this class represent +"Uniform Resource Identifier references" as specified in RFC 2396 (and +updated by RFC 2732). + +%define __find_requires %{SOURCE1} + +%prep +%setup -q -n URI-%{version} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor +make + +%clean +rm -rf $RPM_BUILD_ROOT + +%install +rm -rf $RPM_BUILD_ROOT +make install + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT/usr -type f -print | + sed "s@^$RPM_BUILD_ROOT@@g" | + grep -v perllocal.pod | + grep -v "\.packlist" > URI-%{version}-filelist +if [ "$(cat URI-%{version}-filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit -1 +fi + +%files -f URI-%{version}-filelist +%defattr(-,root,root) +%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/URI + +%changelog +* Tue Aug 6 2002 Chip Turner +- automated release bump and build + +* Tue Aug 6 2002 Chip Turner +- update to 1.21 + +* Tue Jun 4 2002 Chip Turner +- properly claim directories owned by package so they are removed when package is removed + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Fri Dec 7 2001 root +- Spec file was autogenerated. diff --git a/sources b/sources index d99612c..1edac6c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -86ef92d7e84019ae44e0c4445b5fcf40 URI-1.17.tar.gz +ad6437ba6a8b404d16df16e2eb7a3648 URI-1.21.tar.gz