Fix FTBFS due to missing buildreq perl-devel

- Fix FTBFS due to missing buildreq perl-devel
- Simplify find commands using -empty and -delete
- Make %files list more explicit
This commit is contained in:
Paul Howarth 2016-04-19 17:11:09 +01:00
parent 9c07228f28
commit 46ffede3a2

View File

@ -3,43 +3,54 @@
Name: perl-Unix-Syslog Name: perl-Unix-Syslog
Version: 1.1 Version: 1.1
Release: 22%{?dist} Release: 23%{?dist}
Summary: Perl interface to the UNIX syslog(3) calls Summary: Perl interface to the UNIX syslog(3) calls
License: Artistic 2.0 License: Artistic 2.0
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Unix-Syslog/ URL: http://search.cpan.org/dist/Unix-Syslog/
Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
%if %{with test} # Module Runtime
# Run-requires:
BuildRequires: perl(DynaLoader) BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
# Tests: BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Test Suite
%if %{with test}
BuildRequires: syslog BuildRequires: syslog
%endif %endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: syslog Requires: syslog
# Don't "provide" private Perl libs
%{?perl_default_filter} %{?perl_default_filter}
%description %description
This module provides an interface to the system logger syslogd(8) via This module provides an interface to the system logger syslogd(8) via
Perl's XSUBs. The implementation attempts to resemble the native libc- Perl's XSUBs. The implementation attempts to resemble the native
functions of your system, so that anyone being familiar with syslog.h libc-functions of your system, so that anyone being familiar with
should be able to use this module right away. syslog.h should be able to use this module right away.
%prep %prep
%setup -q -n Unix-Syslog-%{version} %setup -q -n Unix-Syslog-%{version}
%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
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' -a -empty -delete
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} %{buildroot}
%check %check
%if %{with test} %if %{with test}
@ -47,12 +58,22 @@ make test
%endif %endif
%files %files
%doc Artistic Changes README %if 0%{?_licensedir:1}
%{perl_vendorarch}/auto/* %license Artistic
%{perl_vendorarch}/Unix* %else
%{_mandir}/man3/* %doc Artistic
%endif
%doc README Changes
%{perl_vendorarch}/Unix/
%{perl_vendorarch}/auto/Unix/
%{_mandir}/man3/Unix::Syslog.3*
%changelog %changelog
* Tue Apr 19 2016 Paul Howarth <paul@city-fan.org> - 1.1-23
- Fix FTBFS due to missing buildreq perl-devel
- Simplify find commands using -empty and -delete
- Make %%files list more explicit
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-22 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
@ -147,7 +168,7 @@ make test
- Spec cleanup. - Spec cleanup.
- Disable "make test" by default (spams console). - Disable "make test" by default (spams console).
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> * Wed Apr 6 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt - rebuilt
* Mon Apr 26 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.100-0.fdr.4 * Mon Apr 26 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.100-0.fdr.4
@ -157,7 +178,7 @@ make test
* Thu Oct 2 2003 Michael Schwendt <rh0212ms[AT]arcor.de> 0:0.100-0.fdr.3 * Thu Oct 2 2003 Michael Schwendt <rh0212ms[AT]arcor.de> 0:0.100-0.fdr.3
- Vendor install - Vendor install
- Removing some files instead of excluding them - Removing some files instead of excluding them
- Own two additionnal directories to work around perl package bug - Own two additional directories to work around perl package bug
* Fri Jul 11 2003 Dams <anvil[AT]livna.org> 0:0.100-0.fdr.2 * Fri Jul 11 2003 Dams <anvil[AT]livna.org> 0:0.100-0.fdr.2
- Excluding empty Syslog.bs file - Excluding empty Syslog.bs file