Update dependencies, summary, XML file. Clean up spec.
This commit is contained in:
parent
f530f1a0b4
commit
d290039270
@ -1,7 +1,7 @@
|
||||
Name: perl-XML-Parser
|
||||
Version: 2.41
|
||||
Release: 7%{?dist}
|
||||
Summary: Perl module for parsing XML files
|
||||
Release: 8%{?dist}
|
||||
Summary: Perl module for parsing XML documents
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
@ -23,12 +23,12 @@ BuildRequires: expat-devel
|
||||
BuildRequires: perl(LWP)
|
||||
BuildRequires: perl(URI)
|
||||
BuildRequires: perl(URI::file)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(IO::File)
|
||||
Requires: perl(IO::Handle)
|
||||
|
||||
%{?filter_setup:
|
||||
%filter_from_provides /perl(XML::Parser)$/d
|
||||
%?perl_default_filter
|
||||
}
|
||||
|
||||
%{?perl_default_filter}
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(XML::Parser\\)$
|
||||
|
||||
%description
|
||||
@ -45,22 +45,22 @@ creation time.
|
||||
%prep
|
||||
%setup -q -n XML-Parser-%{version}
|
||||
chmod 644 samples/{canonical,xml*}
|
||||
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*}
|
||||
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*}
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$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/*
|
||||
|
||||
for file in samples/REC-xml-19980210.xml; do
|
||||
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
|
||||
mv -f "${file}_" "$file"
|
||||
sed -i -e "s/encoding='ISO-8859-1'/encoding='UTF-8'/" "$file"
|
||||
done
|
||||
|
||||
%check
|
||||
@ -74,6 +74,12 @@ make test
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 22 2012 Jitka Plesnikova <jplesnik@redhat.com> - 2.41-8
|
||||
- Update dependencies and summary
|
||||
- Remove pre-RPM-4.9 filters
|
||||
- Remove deleting empty directories
|
||||
- Update REC-xml-19980210.xml to match new encoding
|
||||
|
||||
* Mon Aug 27 2012 Jitka Plesnikova <jplesnik@redhat.com> - 2.41-7
|
||||
- Specify all dependencies.
|
||||
- Remove perl(LWP) and perl(URI) from Requires.
|
||||
|
Loading…
Reference in New Issue
Block a user