]> git.pld-linux.org Git - packages/perl-Package-DeprecationManager.git/blob - perl-Package-DeprecationManager.spec
- macros for perl autodeps
[packages/perl-Package-DeprecationManager.git] / perl-Package-DeprecationManager.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Package
6 %define         pnam    DeprecationManager
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
10 Version:        0.17
11 Release:        2
12 License:        Artistic v2.0
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Package/Package-DeprecationManager-%{version}.tar.gz
15 # Source0-md5:  7b46e92aaae3047ede3c67c1714ab88e
16 URL:            https://metacpan.org/release/Package-DeprecationManager
17 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.30
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  rpmbuild(macros) >= 1.745
21 %if %{with tests}
22 BuildRequires:  perl-Params-Util
23 BuildRequires:  perl-Scalar-List-Utils >= 1.33
24 BuildRequires:  perl-Sub-Install
25 BuildRequires:  perl-Sub-Name
26 BuildRequires:  perl-Test-Fatal
27 BuildRequires:  perl-Test-Requires
28 BuildRequires:  perl-Test-Simple >= 0.96
29 BuildRequires:  perl-Test-Warnings
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)
63 %doc Changes
64 %{perl_vendorlib}/Package/DeprecationManager.pm
65 %{_mandir}/man3/Package::DeprecationManager.3pm*
This page took 0.115203 seconds and 4 git commands to generate.