]> git.pld-linux.org Git - SPECS.git/blob - perl-common-sense.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-common-sense.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    common
6 %define pnam    sense
7 Summary:        common::sense - save a tree AND a kitten, use common::sense!
8 Summary(pl.UTF-8):      common::sense - zdroworozsądkowe ustawienia domyślne dla programów w Perlu
9 Name:           perl-common-sense
10 Version:        3.75
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/ML/MLEHMANN/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  0929c6b03455ca988a9b4219aca15292
17 Patch0:         install.patch
18 URL:            https://metacpan.org/release/common-sense
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRequires:  rpmbuild(macros) >= 1.745
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 This module implements some sane defaults for Perl programs, as
27 defined by two typical (or not so typical - use your common sense)
28 specimens of Perl coders.
29
30 %description -l pl.UTF-8
31 Moduł ten implementuje pewne zdroworozsądkowe ustawienia domyślne dla
32 programów perlowych.
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %patch0 -p1
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} pure_install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/common/sense.pod
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc Changes LICENSE README
59 %dir %{perl_vendorlib}/common
60 %{perl_vendorlib}/common/sense.pm
61 %{_mandir}/man3/common::sense.3pm*
This page took 0.046184 seconds and 3 git commands to generate.