perl-URI/perl-URI.spec

82 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define _use_internal_dependency_generator 0
Summary: A Perl module implementing URI parsing and manipulation.
Name: perl-URI
Version: 1.30
2004-09-23 21:45:19 +00:00
Release: 3
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
%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
make test
%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 \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
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
2004-09-23 21:45:19 +00:00
* Thu Sep 23 2004 Chip Turner <cturner@redhat.com> 1.30-3
- rebuild
2004-09-22 14:21:35 +00:00
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.30-2
- rebuild
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 1.30-1
- update to 1.30
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
- automated release bump and build
* Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
- update to 1.21
* Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
- properly claim directories owned by package so they are removed when package is removed
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Fri Dec 7 2001 root <root@redhat.com>
- Spec file was autogenerated.