]>
Commit | Line | Data |
---|---|---|
90b3273b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Package | |
6 | %define pnam DeprecationManager | |
90b3273b JB |
7 | Summary: Package::DeprecationManager - manage deprecation warnings for your distribution |
8 | Summary(pl.UTF-8): Package::DeprecationManager - zarządzanie ostrzeżeniami o przestarzałych elementach | |
9 | Name: perl-Package-DeprecationManager | |
45499947 | 10 | Version: 0.17 |
758d645f | 11 | Release: 2 |
45499947 | 12 | License: Artistic v2.0 |
90b3273b | 13 | Group: Development/Languages/Perl |
555dfb5e | 14 | Source0: http://www.cpan.org/modules/by-module/Package/Package-DeprecationManager-%{version}.tar.gz |
45499947 | 15 | # Source0-md5: 7b46e92aaae3047ede3c67c1714ab88e |
37f1f6af | 16 | URL: https://metacpan.org/release/Package-DeprecationManager |
555dfb5e | 17 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 |
90b3273b JB |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
37f1f6af | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
90b3273b | 21 | %if %{with tests} |
90b3273b | 22 | BuildRequires: perl-Params-Util |
45499947 | 23 | BuildRequires: perl-Scalar-List-Utils >= 1.33 |
90b3273b | 24 | BuildRequires: perl-Sub-Install |
45499947 | 25 | BuildRequires: perl-Sub-Name |
90b3273b JB |
26 | BuildRequires: perl-Test-Fatal |
27 | BuildRequires: perl-Test-Requires | |
45499947 | 28 | BuildRequires: perl-Test-Simple >= 0.96 |
758d645f | 29 | BuildRequires: perl-Test-Warnings |
90b3273b JB |
30 | %endif |
31 | BuildArch: noarch | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | This module allows you to manage a set of deprecations for one or more | |
36 | modules. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Ten moduł pozwala na zarządzanie zbiorem przestarzałych elementów dla | |
40 | jednego lub większej liczby modułów. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
45 | %build | |
46 | %{__perl} Makefile.PL \ | |
47 | INSTALLDIRS=vendor | |
48 | %{__make} | |
49 | ||
50 | %{?with_tests:%{__make} test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} pure_install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
45499947 | 63 | %doc Changes |
90b3273b JB |
64 | %{perl_vendorlib}/Package/DeprecationManager.pm |
65 | %{_mandir}/man3/Package::DeprecationManager.3pm* |