From c32dd7f94d5db493f47a5732313cdf727af54a0b Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sat, 2 Apr 2005 22:15:42 +0000 Subject: [PATCH] - Update to 1.35. - Spec cleanup (#153205) --- .cvsignore | 1 + perl-URI.spec | 79 ++++++++++++++++++++++++++------------------------- sources | 2 +- 3 files changed, 42 insertions(+), 40 deletions(-) diff --git a/.cvsignore b/.cvsignore index 9055338..14edd22 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ URI-1.30.tar.gz +URI-1.35.tar.gz diff --git a/perl-URI.spec b/perl-URI.spec index 2d1f280..eba0732 100644 --- a/perl-URI.spec +++ b/perl-URI.spec @@ -1,61 +1,62 @@ -%define _use_internal_dependency_generator 0 +Name: perl-URI +Version: 1.35 +Release: 1 +Summary: A Perl module implementing URI parsing and manipulation -Summary: A Perl module implementing URI parsing and manipulation. -Name: perl-URI -Version: 1.30 -Release: 5 -License: distributable -Group: Applications/CPAN -Source0: URI-%{version}.tar.gz -Source1: filter-requires-perl-URI.sh -Url: http://search.cpan.org/search?query=URI -BuildRoot: %{_tmppath}/perl-URI-buildroot/ -BuildRequires: perl >= 0:5.00503 -BuildRequires: perl(MIME::Base64) -Requires: perl >= 0:5.00503 -Provides: perl-URI -BuildArch: noarch +Group: Development/Libraries +License: Distributable +URL: http://search.cpan.org/dist/URI/ +Source0: http://www.cpan.org/authors/id/G/GA/GAAS/URI-%{version}.tar.gz +Source1: filter-requires-perl-URI.sh +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +BuildRequires: perl(MIME::Base64) +#BuildRequires: perl(Business::ISBN) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%define __find_requires %{SOURCE1} %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} +%setup -q -n URI-%{version} +chmod 644 uri-test %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor -make -make test || /bin/true +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check || : +make test %clean rm -rf $RPM_BUILD_ROOT -%install -rm -rf $RPM_BUILD_ROOT -make install -find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; +%files +%defattr(-,root,root,-) +%doc Changes README rfc2396.txt uri-test +%{perl_vendorlib}/URI* +%{_mandir}/man3/*.3* -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 /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/URI %changelog -* Wed Mar 30 2005 Warren Togami -- remove brp-compress +* Sat Apr 02 2005 Jose Pedro Oliveira - 1.35-1 +- Update to 1.35. +- Spec cleanup (#153205) * Thu Sep 23 2004 Chip Turner 1.30-3 - rebuild diff --git a/sources b/sources index ad69e73..f2b5704 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4da2adaba686a9409fb1deba3f0bfa04 URI-1.30.tar.gz +1a933b1114c41a25587ee59ba8376f7c URI-1.35.tar.gz