Minor clean-up, fixing circular build dependencies (#720974)
- Drop redundant runtime dependencies on perl(XML::LibXML) and perl(XML::LibXML::Common), which cause circular build dependencies (#720974) - Simplify provides and requires filters - Don't need to remove empty directories from buildroot - Mark POD files as %doc
This commit is contained in:
parent
bc5e590e32
commit
759cbf66b8
@ -1,7 +1,7 @@
|
|||||||
Summary: XML-SAX Perl module
|
Summary: XML-SAX Perl module
|
||||||
Name: perl-XML-SAX
|
Name: perl-XML-SAX
|
||||||
Version: 0.99
|
Version: 0.99
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
@ -12,17 +12,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(XML::NamespaceSupport) >= 0.03
|
BuildRequires: perl(XML::NamespaceSupport) >= 0.03
|
||||||
# The following creates circular dependency, but they are not needed for build.
|
|
||||||
#BuildRequires: perl(XML::LibXML) perl(XML::LibXML::Common)
|
|
||||||
# XML::SAX::Base became independent package, BR just for test
|
# XML::SAX::Base became independent package, BR just for test
|
||||||
BuildRequires: perl(XML::SAX::Base)
|
BuildRequires: perl(XML::SAX::Base)
|
||||||
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
|
Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
|
||||||
Requires: perl(XML::LibXML) perl(XML::LibXML::Common)
|
|
||||||
|
|
||||||
%{?perl_default_filter}
|
# Remove bogus XML::SAX::PurePerl* dependencies and unversioned provides
|
||||||
%global __provides_exclude %{?__provides_exclude}|perl\\(XML::SAX::PurePerl\\)
|
%global __requires_exclude ^perl\\(XML::SAX::PurePerl
|
||||||
%global __requires_exclude %{?__requires_exclude}|perl\\(XML::SAX::PurePerl::DTDDecls\\)|perl\\(XML::SAX::PurePerl::DocType\\)|perl\\(XML::SAX::PurePerl::EncodingDetect\\)|perl\\(XML::SAX::PurePerl::XMLDecl\))|perl\\(XML::SAX::PurePerl::NoUnicodeExt\\)|perl\\(XML::SAX::PurePerl::Reader::NoUnicodeExt\\)|perl\\(XML::SAX::PurePerl::UnicodeExt\\)|perl\\(XML::SAX::PurePerl::XMLDecl\\)
|
%global __provides_exclude ^perl\\(XML::SAX::PurePerl\\)$
|
||||||
|
|
||||||
%description
|
%description
|
||||||
XML::SAX consists of several framework classes for using and building
|
XML::SAX consists of several framework classes for using and building
|
||||||
@ -44,7 +40,6 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
make pure_install PERL_INSTALL_ROOT=$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 .packlist -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
||||||
@ -52,7 +47,8 @@ touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
|||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
# See http://rhn.redhat.com/errata/RHBA-2010-0008.html regarding these scriptlets
|
||||||
|
# perl-XML-LibXML-1.58-6 is in EL 5.8 and possibly later EL-5 releases
|
||||||
%post
|
%post
|
||||||
if [ ! -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini" ] ; then
|
if [ ! -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini" ] ; then
|
||||||
perl -MXML::SAX -e \
|
perl -MXML::SAX -e \
|
||||||
@ -77,17 +73,24 @@ rm -rf "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" || :
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes LICENSE README
|
%doc Changes LICENSE README
|
||||||
%dir %{perl_vendorlib}/XML
|
%dir %{perl_vendorlib}/XML/
|
||||||
%{perl_vendorlib}/XML/SAX.pm
|
%{perl_vendorlib}/XML/SAX.pm
|
||||||
%dir %{perl_vendorlib}/XML/SAX
|
%dir %{perl_vendorlib}/XML/SAX/
|
||||||
%{perl_vendorlib}/XML/SAX/*.pm
|
%{perl_vendorlib}/XML/SAX/*.pm
|
||||||
%{perl_vendorlib}/XML/SAX/*.pod
|
%doc %{perl_vendorlib}/XML/SAX/*.pod
|
||||||
%{perl_vendorlib}/XML/SAX/PurePerl
|
%{perl_vendorlib}/XML/SAX/PurePerl/
|
||||||
%{_mandir}/man3/XML::*.3pm*
|
%{_mandir}/man3/XML::*.3pm*
|
||||||
%ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
%ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 17 2012 Paul Howarth <paul@city-fan.org> - 0.99-3
|
||||||
|
- Drop redundant runtime dependencies on perl(XML::LibXML) and
|
||||||
|
perl(XML::LibXML::Common), which cause circular build dependencies (#720974)
|
||||||
|
- Simplify provides and requires filters
|
||||||
|
- Don't need to remove empty directories from buildroot
|
||||||
|
- Mark POD files as %%doc
|
||||||
|
|
||||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-2
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user