- #155619
- Bring up to date with current Fedora.Extras perl spec template.
This commit is contained in:
parent
91803b90b2
commit
c3fde5574e
@ -1,22 +1,20 @@
|
|||||||
%define _use_internal_dependency_generator 0
|
Name: perl-XML-Parser
|
||||||
|
Version: 2.34
|
||||||
|
Release: 6
|
||||||
|
Summary: A low level Perl module for parsing XML either via trees or streaming
|
||||||
|
|
||||||
Summary: A low level Perl module for parsing XML either via trees or streaming.
|
Group: Development/Libraries
|
||||||
Name: perl-XML-Parser
|
License: GPL or Artistic
|
||||||
Version: 2.34
|
Url: http://search.cpan.org/dist/XML-Parser/
|
||||||
Release: 6
|
Source0: http://www.cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-%{version}.tar.gz
|
||||||
License: distributable
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Group: Applications/CPAN
|
|
||||||
Source0: XML-Parser-%{version}.tar.gz
|
BuildRequires: perl >= 2:5.8.0
|
||||||
Url: http://search.cpan.org/search?query=XML%3A%3AParser
|
BuildRequires: expat-devel
|
||||||
BuildRoot: %{_tmppath}/perl-XML-Parser-buildroot/
|
# The script LWPExternEnt.pl is loaded by Parser.pm
|
||||||
BuildRequires: perl >= 2:5.8.0
|
BuildRequires: perl(LWP), perl(URI)
|
||||||
BuildRequires: perl-libwww-perl
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
BuildRequires: perl-URI
|
Requires: perl(LWP), perl(URI)
|
||||||
BuildRequires: expat-devel
|
|
||||||
Requires: perl >= 2:5.8.0
|
|
||||||
Requires: perl-libwww-perl
|
|
||||||
Requires: perl-URI
|
|
||||||
Requires: expat
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides ways to parse XML documents. It is built on top
|
This module provides ways to parse XML documents. It is built on top
|
||||||
@ -29,41 +27,42 @@ parse call. They can also be given as extra arguments to the parse
|
|||||||
methods, in which case they override options given at XML::Parser
|
methods, in which case they override options given at XML::Parser
|
||||||
creation time.
|
creation time.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n XML-Parser-%{version}
|
%setup -q -n XML-Parser-%{version}
|
||||||
|
chmod 644 samples/{canonical,xml*}
|
||||||
|
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
|
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make
|
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
||||||
# XXX: expedite to get build moving. run the test, but accept it may have failures
|
|
||||||
make test || :
|
%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 f -name '*.bs' -a -size 0 -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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT/usr -type f -print |
|
|
||||||
sed "s@^$RPM_BUILD_ROOT@@g" |
|
|
||||||
grep -v perllocal.pod |
|
|
||||||
grep -v "\.packlist" > XML-Parser-%{version}-filelist
|
|
||||||
if [ "$(cat XML-Parser-%{version}-filelist)X" = "X" ] ; then
|
|
||||||
echo "ERROR: EMPTY FILE LIST"
|
|
||||||
exit -1
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files -f XML-Parser-%{version}-filelist
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/XML/Parser
|
%{perl_vendorarch}/XML/
|
||||||
%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/auto/XML/Parser
|
%{perl_vendorarch}/auto/XML/
|
||||||
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com>
|
* Thu Apr 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.34-6
|
||||||
- remove brp-compress
|
- #155619
|
||||||
|
- Bring up to date with current Fedora.Extras perl spec template.
|
||||||
|
|
||||||
* Sun Aug 08 2004 Alan Cox <alan@redhat.com> 2.34-5
|
* Sun Aug 08 2004 Alan Cox <alan@redhat.com> 2.34-5
|
||||||
- runtime requires expat
|
- runtime requires expat
|
||||||
@ -96,7 +95,8 @@ fi
|
|||||||
- description update
|
- description update
|
||||||
|
|
||||||
* Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
|
* Tue Jun 4 2002 Chip Turner <cturner@redhat.com>
|
||||||
- properly claim directories owned by package so they are removed when package is removed
|
- properly claim directories owned by package so they are removed when
|
||||||
|
package is removed
|
||||||
|
|
||||||
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||||||
- automated rebuild
|
- automated rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user