diff --git a/perl-libxml-perl.spec b/perl-libxml-perl.spec index 303f64a..84ab66e 100644 --- a/perl-libxml-perl.spec +++ b/perl-libxml-perl.spec @@ -1,53 +1,57 @@ %define module libxml-perl -%define version 0.07 -%define release 14 -Summary: %{module} module for perl -Name: perl-%{module} -Version: %{version} -Release: %{release} -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 +Summary: A collection of Perl modules for working with XML. +Name: perl-%{module} +Version: 0.07 +Release: 25 +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 %description -%{module} module for perl +libxml-perl is a collection of smaller Perl modules, scripts, and +documents for working with XML in Perl. libxml-perl software works in +combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove and +others. + %prep %setup -q -n %{module}-%{version} %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make -# fucks up build -#make test +make test || /bin/true %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT -eval `perl '-V:installarchlib'` -mkdir -p $RPM_BUILD_ROOT/$installarchlib -make PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor install +make install -# call spec-helper before creating the file list -s=/usr/share/spec-helper/spec-helper ; [ -x $s ] && $s +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress -%files +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) -%{_mandir}/*/* -%{_prefix}/lib/perl5/vendor_perl/*/Data/*.pm -%{_prefix}/lib/perl5/vendor_perl/*/Data/*/*.pm -%{_prefix}/lib/perl5/vendor_perl/*/XML/*.pm -%{_prefix}/lib/perl5/vendor_perl/*/XML/*/*.pm -%doc Change* MANIFEST README %changelog +* Tue Aug 6 2002 Chip Turner +- automated release bump and build + * Wed Mar 27 2002 Chip Turner - move to vendor_perl