perl-common-sense/perl-common-sense.spec

60 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-03-06 16:24:32 +08:00
%global debug_package %{nil}
Name: perl-common-sense
2021-01-27 11:28:30 +08:00
Version: 3.75
Release: 1
2020-03-06 16:24:32 +08:00
Summary: save a tree AND a kitten, use common::sense
License: GPL+ or Artistic
URL: https://metacpan.org/release/common-sense
2021-01-27 11:28:30 +08:00
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/common-sense-%{version}.tar.gz
2020-03-06 16:24:32 +08:00
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Obsoletes: %{name}-tests < %{version}-%{release}
Provides: %{name}-tests = %{version}-%{release}
%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. In fact, after working out details on
which warnings and strict modes to enable and make fatal, we found
that we (and our code written so far, and others) fully agree on
every option, even though we never used warnings before, so it
seems this module indeed reflects a "common" sense among some
long-time Perl coders.
%package_help
%prep
2021-01-27 11:28:30 +08:00
%autosetup -n common-sense-%{version} -p1
2020-03-06 16:24:32 +08:00
%build
perl Makefile.PL NO_PACKLIST=1 INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%defattr(-,root,root)
%license LICENSE
%dir %{perl_vendorarch}/common/
%{perl_vendorarch}/common/sense.pm
%files help
%defattr(-,root,root)
%doc Changes README t/
%doc %{perl_vendorarch}/common/sense.pod
%{_mandir}/man3/common::sense.3*
%changelog
2021-01-27 11:28:30 +08:00
* Wed Jan 27 2021 liudabo <liudabo1@huawei.com> - 3.75-1
- upgrade version to 3.75
2020-03-06 16:24:32 +08:00
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.7.4-14
- Package init