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:
parent
9c07228f28
commit
46ffede3a2
@ -3,43 +3,54 @@
|
||||
|
||||
Name: perl-Unix-Syslog
|
||||
Version: 1.1
|
||||
Release: 22%{?dist}
|
||||
Release: 23%{?dist}
|
||||
Summary: Perl interface to the UNIX syslog(3) calls
|
||||
License: Artistic 2.0
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Unix-Syslog/
|
||||
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)
|
||||
%if %{with test}
|
||||
# Run-requires:
|
||||
# Module Runtime
|
||||
BuildRequires: perl(DynaLoader)
|
||||
BuildRequires: perl(Exporter)
|
||||
# Tests:
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(vars)
|
||||
# Test Suite
|
||||
%if %{with test}
|
||||
BuildRequires: syslog
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: syslog
|
||||
|
||||
# Don't "provide" private Perl libs
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
This module provides an interface to the system logger syslogd(8) via
|
||||
Perl's XSUBs. The implementation attempts to resemble the native libc-
|
||||
functions of your system, so that anyone being familiar with syslog.h
|
||||
should be able to use this module right away.
|
||||
Perl's XSUBs. The implementation attempts to resemble the native
|
||||
libc-functions of your system, so that anyone being familiar with
|
||||
syslog.h should be able to use this module right away.
|
||||
|
||||
%prep
|
||||
%setup -q -n Unix-Syslog-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
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/*
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
find %{buildroot} -type f -name '*.bs' -a -empty -delete
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
@ -47,12 +58,22 @@ make test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc Artistic Changes README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Unix*
|
||||
%{_mandir}/man3/*
|
||||
%if 0%{?_licensedir:1}
|
||||
%license Artistic
|
||||
%else
|
||||
%doc Artistic
|
||||
%endif
|
||||
%doc README Changes
|
||||
%{perl_vendorarch}/Unix/
|
||||
%{perl_vendorarch}/auto/Unix/
|
||||
%{_mandir}/man3/Unix::Syslog.3*
|
||||
|
||||
%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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
@ -147,7 +168,7 @@ make test
|
||||
- Spec cleanup.
|
||||
- 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
|
||||
|
||||
* 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
|
||||
- Vendor install
|
||||
- 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
|
||||
- Excluding empty Syslog.bs file
|
||||
|
Loading…
Reference in New Issue
Block a user