Add missing buildtime dependencies

This commit is contained in:
Petr Šabata 2012-11-26 15:07:06 +01:00
parent 3c96747356
commit a67a1a6aaf

View File

@ -3,30 +3,29 @@ Summary: FastCGI Perl bindings
# needed to properly replace/obsolete fcgi-perl
Epoch: 1
Version: 0.74
Release: 5%{?dist}
Release: 6%{?dist}
# same as fcgi
License: OML
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/FCGI-%{version}.tar.gz
URL: http://search.cpan.org/dist/FCGI
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildRequires: perl(constant)
BuildRequires: perl(Cwd)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::Liblist)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Copy)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(IO::File)
# Run-requires:
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
# Tests:
BuildRequires: perl(Test)
Provides: fcgi-perl = %{epoch}:%{version}-%{release}
Obsoletes: fcgi-perl =< 2.4.0
# Dropped during f19 development cycle
Obsoletes: %{name}-tests <= 0.74-6
%{?perl_default_filter}
%{?perl_subpackage_tests: %perl_subpackage_tests test.pl .proverc test.t }
%description
%{summary}.
@ -35,20 +34,14 @@ Obsoletes: fcgi-perl =< 2.4.0
%setup -q -n FCGI-%{version}
find . -type f -exec chmod -c -x {} +
echo "test.pl" > .proverc
# limitation in the macros, currently -- must have at least one .t :\
cp test.pl test.t
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
@ -61,6 +54,11 @@ make test
%{_mandir}/man3/*.3*
%changelog
* Mon Nov 26 2012 Petr Šabata <contyk@redhat.com> - 1:0.74-6
- Add missing buildtime dependencies
- Drop command macros
- Drop the tests subpackage
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.74-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild