Fix FTBFS due to missing buildreq perl-devel

Also, simplify find commands using -empty and -delete
epel9
Paul Howarth 9 years ago
parent 23871d33c0
commit c14c1c928f

@ -1,13 +1,18 @@
Name: perl-YAML-Syck Name: perl-YAML-Syck
Version: 1.29 Version: 1.29
Release: 4%{?dist} Release: 5%{?dist}
Summary: Fast, lightweight YAML loader and dumper Summary: Fast, lightweight YAML loader and dumper
License: BSD and MIT License: BSD and MIT
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/YAML-Syck/ URL: http://search.cpan.org/dist/YAML-Syck/
Source0: http://www.cpan.org/authors/id/T/TO/TODDR/YAML-Syck-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/T/TO/TODDR/YAML-Syck-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-devel
# Keep bundled inc::Module::Install to break cycle # Keep bundled inc::Module::Install to break cycle
# perl-Module-Install → perl-YAML-Tiny → perl-YAML-Syck # perl-Module-Install → perl-YAML-Tiny → perl-YAML-Syck
BuildRequires: perl(Cwd) BuildRequires: perl(Cwd)
@ -46,21 +51,21 @@ structures to YAML strings, and the other way around.
rm -rf inc/parent.pm inc/PerlIO.pm inc/Scalar/Util.pm rm -rf inc/parent.pm inc/PerlIO.pm inc/Scalar/Util.pm
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
make pure_install DESTDIR=$RPM_BUILD_ROOT make pure_install DESTDIR=%{buildroot}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find %{buildroot} -type f -name .packlist -delete
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} $RPM_BUILD_ROOT %{_fixperms} %{buildroot}
%check %check
make test make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
%files %files
%license COPYING %license COPYING
@ -72,6 +77,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/YAML::Syck.3* %{_mandir}/man3/YAML::Syck.3*
%changelog %changelog
* Wed Apr 20 2016 Paul Howarth <paul@city-fan.org> - 1.29-5
- Fix FTBFS due to missing buildreq perl-devel
- Simplify find commands using -empty and -delete
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.29-4 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.29-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

Loading…
Cancel
Save