perl-Package-DeprecationMan.../perl-Package-DeprecationManager.spec

53 lines
1.5 KiB
RPMSpec
Raw Normal View History

# 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
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)
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
%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}