]> git.pld-linux.org Git - packages/perl-Constant-Generate.git/blob - perl-Constant-Generate.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Constant-Generate.git] / perl-Constant-Generate.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Constant
6 %define         pnam    Generate
7 Summary:        Constant::Generate - Common tasks for symbolic constants
8 Summary(pl.UTF-8):      Constant::Generate - wspólne zadania dla stałych symbolicznych
9 Name:           perl-Constant-Generate
10 Version:        0.17
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-authors/id/M/MN/MNUNBERG/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  61636afc1c0be17bc8a26ec4031eae13
17 URL:            http://search.cpan.org/dist/Constant-Generate/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(constant) >= 1.17
22 BuildRequires:  perl-Scalar-List-Utils >= 1.20
23 BuildRequires:  perl-Test-Simple
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Constant::Generate provides useful utilities for handling, debugging,
30 and generating opaque, 'magic-cookie' type constants as well as
31 value-significant constants.
32
33 %description -l pl.UTF-8
34 Constant::Generate udostępnia proste narzędzia do obsługi, diagnostyki
35 i generowania nieprzejrzystych stałych typu "magic cookie" oraz
36 stałych o znaczeniu zmiennych.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} pure_install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %dir %{perl_vendorlib}/Constant
61 %{perl_vendorlib}/Constant/Generate.pm
62 %{perl_vendorlib}/Constant/Generate
63 %{_mandir}/man3/Constant::Generate.3pm*
This page took 0.075473 seconds and 4 git commands to generate.