]> git.pld-linux.org Git - packages/perl-common-sense.git/blob - perl-common-sense.spec
37263b2031bdceae2444da722459e6d3a712b3e2
[packages/perl-common-sense.git] / perl-common-sense.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    common
7 %define pnam    sense
8 Summary:        common::sense - save a tree AND a kitten, use common::sense!
9 Summary(pl.UTF-8):      common::sense - zdroworozsądkowe ustawienia domyślne dla programów w Perlu
10 Name:           perl-common-sense
11 Version:        3.73
12 Release:        4
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  6da7455a43ab60ed21c2a5e3b3ddeda8
18 URL:            http://search.cpan.org/dist/common-sense/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This module implements some sane defaults for Perl programs, as
25 defined by two typical (or not so typical - use your common sense)
26 specimens of Perl coders.
27
28 %description -l pl.UTF-8
29 Moduł ten implementuje pewne zdroworozsądkowe ustawienia domyślne dla
30 programów perlowych.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} pure_install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/common/sense.pod
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changes LICENSE README
56 %dir %{perl_vendorarch}/common
57 %{perl_vendorarch}/common/sense.pm
58 %{_mandir}/man3/common::sense.3pm*
This page took 0.078179 seconds and 2 git commands to generate.