Tidy up and fix build dependency loop
- Haven't needed to fix documentation character encoding since 0.79 - Drop Test::Base build dependency again to avoid a BR loop (#215637) - Filter private provides perl(yaml_mapping), perl(yaml_scalar) and perl(yaml_sequence) - Don't need to remove empty directories from the buildroot - This release by MSTROUT -> update source URL
This commit is contained in:
parent
1cf55cfc33
commit
b92f5aef9e
|
@ -1,11 +1,11 @@
|
||||||
Name: perl-YAML
|
Name: perl-YAML
|
||||||
Version: 0.84
|
Version: 0.84
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: YAML Ain't Markup Language (tm)
|
Summary: YAML Ain't Markup Language (tm)
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/YAML/
|
URL: http://search.cpan.org/dist/YAML/
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-%{version}.tar.gz
|
Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSTROUT/YAML-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(constant)
|
BuildRequires: perl(constant)
|
||||||
|
@ -13,12 +13,14 @@ BuildRequires: perl(Data::Dumper)
|
||||||
BuildRequires: perl(Exporter)
|
BuildRequires: perl(Exporter)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(lib)
|
BuildRequires: perl(lib)
|
||||||
BuildRequires: perl(Test::Base)
|
|
||||||
BuildRequires: perl(Test::Base::Filter)
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
Requires: perl(Carp)
|
Requires: perl(Carp)
|
||||||
Requires: perl(Data::Dumper)
|
Requires: perl(Data::Dumper)
|
||||||
|
|
||||||
|
# Filter private provides:
|
||||||
|
# perl(yaml_mapping) perl(yaml_scalar) perl(yaml_sequence)
|
||||||
|
%global __provides_exclude ^perl\\(yaml_
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The YAML.pm module implements a YAML Loader and Dumper based on the
|
The YAML.pm module implements a YAML Loader and Dumper based on the
|
||||||
YAML 1.0 specification. http://www.yaml.org/spec/
|
YAML 1.0 specification. http://www.yaml.org/spec/
|
||||||
|
@ -31,24 +33,20 @@ specification.
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n YAML-%{version}
|
%setup -q -n YAML-%{version}
|
||||||
|
|
||||||
# Re-code docs as UTF-8
|
|
||||||
iconv -f iso-8859-1 -t utf8 < README > README.utf8
|
|
||||||
mv README.utf8 README
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
|
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make pure_install DESTDIR=%{buildroot}
|
make pure_install DESTDIR=%{buildroot}
|
||||||
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||||
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
# Removing Test::YAML (at least temporarily) due
|
# Removing Test::YAML (at least temporarily) due
|
||||||
# to security concerns and questionable value.
|
# to security concerns and questionable value.
|
||||||
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=197539
|
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=197539
|
||||||
rm -f %{buildroot}%{perl_vendorlib}/Test/YAML* \
|
rm -f %{buildroot}%{perl_vendorlib}/Test/YAML* \
|
||||||
%{buildroot}%{_mandir}/man3/Test::YAML*.3*
|
%{buildroot}%{_mandir}/man3/Test::YAML*.3*
|
||||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
||||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
||||||
%{_fixperms} %{buildroot}/*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
@ -59,6 +57,14 @@ make test
|
||||||
%{_mandir}/man3/YAML*.3*
|
%{_mandir}/man3/YAML*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 17 2012 Paul Howarth <paul@city-fan.org> - 0.84-2
|
||||||
|
- Haven't needed to fix documentation character encoding since 0.79
|
||||||
|
- Drop Test::Base build dependency again to avoid a BR loop (#215637)
|
||||||
|
- Filter private provides perl(yaml_mapping), perl(yaml_scalar) and
|
||||||
|
perl(yaml_sequence)
|
||||||
|
- Don't need to remove empty directories from the buildroot
|
||||||
|
- This release by MSTROUT -> update source URL
|
||||||
|
|
||||||
* Mon Jul 16 2012 Petr Šabata <contyk@redhat.com> - 0.84-1
|
* Mon Jul 16 2012 Petr Šabata <contyk@redhat.com> - 0.84-1
|
||||||
- 0.84 bump
|
- 0.84 bump
|
||||||
- Drop command macros
|
- Drop command macros
|
||||||
|
|
Loading…
Reference in New Issue