From 57dee12726b7fc4c27342d53d8c6d59ddcb3b380 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sat, 2 Apr 2005 22:43:56 +0000 Subject: [PATCH] - Update to 0.08. - spec cleanup (#153199) --- .cvsignore | 2 +- perl-libxml-perl.spec | 71 ++++++++++++++++++++++--------------------- sources | 2 +- 3 files changed, 38 insertions(+), 37 deletions(-) diff --git a/.cvsignore b/.cvsignore index 02006d2..37fba35 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -libxml-perl-0.07.tar.bz2 +libxml-perl-0.08.tar.gz diff --git a/perl-libxml-perl.spec b/perl-libxml-perl.spec index 0e1e7ed..05c945d 100644 --- a/perl-libxml-perl.spec +++ b/perl-libxml-perl.spec @@ -1,18 +1,18 @@ -%define _use_internal_dependency_generator 0 +Name: perl-libxml-perl +Version: 0.08 +Release: 1 +Summary: A collection of Perl modules for working with XML -%define module libxml-perl -Summary: A collection of Perl modules for working with XML. -Name: perl-%{module} -Version: 0.07 -Release: 31 -License: distributable -Group: System Environment/Libraries -Source0: %{module}-%{version}.tar.bz2 -Url: http://www.cpan.org -BuildRoot: %{_tmppath}/%{name}-buildroot/ -Requires: perl >= 5.6.0, perl-XML-Parser -BuildRequires: perl-XML-Parser -BuildArch: noarch +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/libxml-perl/ +Source0: http://www.cpan.org/authors/id/K/KM/KMACLEOD/libxml-perl-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +BuildRequires: perl(XML::Parser) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description libxml-perl is a collection of smaller Perl modules, scripts, and @@ -22,37 +22,38 @@ others. %prep -%setup -q -n %{module}-%{version} +%setup -q -n libxml-perl-%{version} %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 ChangeLog Changes README +%{perl_vendorlib}/Data/ +%{perl_vendorlib}/XML/ +%{_mandir}/man3/*.3* -find $RPM_BUILD_ROOT/usr -type f -print | - sed "s@^$RPM_BUILD_ROOT@@g" | - grep -v perllocal.pod | - grep -v "\.packlist" > perl-libxml-perl-%{version}-filelist -if [ "$(cat perl-libxml-perl-%{version}-filelist)X" = "X" ] ; then - echo "ERROR: EMPTY FILE LIST" - exit -1 -fi - -%files -f perl-libxml-perl-%{version}-filelist -%defattr(-,root,root) %changelog -* Wed Mar 30 2005 Warren Togami -- remove brp-compress +* Sat Apr 02 2005 Jose Pedro Oliveira - 0.08-1 +- Update to 0.08. +- spec cleanup (#153199) * Wed Sep 22 2004 Chip Turner 0.07-30 - rebuild diff --git a/sources b/sources index d447809..05f6f74 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e05fcb1eff6e0a6ab88fddbea6055e68 libxml-perl-0.07.tar.bz2 +0ed5fbdda53d1301ddaed88db10503bb libxml-perl-0.08.tar.gz