# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir common %define pnam sense Summary: common::sense - save a tree AND a kitten, use common::sense! Summary(pl.UTF-8): common::sense - zdroworozsądkowe ustawienia domyślne dla programów w Perlu Name: perl-common-sense Version: 3.75 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 0929c6b03455ca988a9b4219aca15292 Patch0: install.patch URL: https://metacpan.org/release/common-sense BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.745 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module implements some sane defaults for Perl programs, as defined by two typical (or not so typical - use your common sense) specimens of Perl coders. %description -l pl.UTF-8 Moduł ten implementuje pewne zdroworozsądkowe ustawienia domyślne dla programów perlowych. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %patch0 -p1 %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/common/sense.pod %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes LICENSE README %dir %{perl_vendorlib}/common %{perl_vendorlib}/common/sense.pm %{_mandir}/man3/common::sense.3pm*