Fix FTBFS due to missing buildreq perl-devel
Also, simplify find commands using -empty and -delete
This commit is contained in:
parent
23871d33c0
commit
c14c1c928f
@ -1,13 +1,18 @@
|
||||
Name: perl-YAML-Syck
|
||||
Version: 1.29
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Fast, lightweight YAML loader and dumper
|
||||
License: BSD and MIT
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/YAML-Syck/
|
||||
Source0: http://www.cpan.org/authors/id/T/TO/TODDR/YAML-Syck-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-devel
|
||||
# Keep bundled inc::Module::Install to break cycle
|
||||
# perl-Module-Install → perl-YAML-Tiny → perl-YAML-Syck
|
||||
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
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
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' -size 0 -exec rm -f {} \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
find %{buildroot} -type f -name '*.bs' -empty -delete
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
@ -72,6 +77,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_mandir}/man3/YAML::Syck.3*
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user