2010-07-26 09:32:29 +02:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-Package-DeprecationManager
|
|
|
|
Version: 0.04
|
|
|
|
Release: 0
|
|
|
|
Summary: Manage deprecation warnings for your distribution
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz
|
2010-07-26 09:38:23 +02:00
|
|
|
Patch1: perl-Package-DeprecationManager-remove_done_testing.patch
|
2010-07-26 09:32:29 +02:00
|
|
|
URL: http://search.cpan.org/dist/Package-DeprecationManager/
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
BuildRequires: make perl
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
BuildRequires: perl(Params::Util)
|
|
|
|
BuildRequires: perl(Sub::Install)
|
|
|
|
BuildRequires: perl(Test::Warn)
|
2010-07-26 10:52:32 +02:00
|
|
|
%if 0%{?suse_version} < 1110
|
2010-07-26 09:43:18 +02:00
|
|
|
BuildRequires: perl-ExtUtils-MakeMaker
|
2010-07-26 10:52:32 +02:00
|
|
|
%endif
|
2010-07-26 09:32:29 +02:00
|
|
|
Requires: perl(Params::Util)
|
|
|
|
Requires: perl(Sub::Install)
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module allows you to manage a set of deprecations for one or more modules.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "Package-DeprecationManager-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
2010-07-26 09:38:23 +02:00
|
|
|
%patch1
|
2010-07-26 09:32:29 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README
|
|
|
|
%dir %{perl_vendorlib}/Package
|
|
|
|
%{perl_vendorlib}/Package/DeprecationManager.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Package
|
|
|
|
%{perl_vendorarch}/auto/Package/DeprecationManager
|
|
|
|
%doc %{perl_man3dir}/Package::DeprecationManager.%{perl_man3ext}%{ext_man}
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|