From 052bae878dc70b6337caa7ef436b2f668e823023 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 2 Jul 2017 13:23:46 +0200 Subject: [PATCH] - new --- perl-Constant-Generate.spec | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 perl-Constant-Generate.spec diff --git a/perl-Constant-Generate.spec b/perl-Constant-Generate.spec new file mode 100644 index 0000000..db202db --- /dev/null +++ b/perl-Constant-Generate.spec @@ -0,0 +1,64 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir Constant +%define pnam Generate +%include /usr/lib/rpm/macros.perl +Summary: Constant::Generate - Common tasks for symbolic constants +Summary(pl.UTF-8): Constant::Generate - wspólne zadania dla stałych symbolicznych +Name: perl-Constant-Generate +Version: 0.17 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/M/MN/MNUNBERG/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 61636afc1c0be17bc8a26ec4031eae13 +URL: http://search.cpan.org/dist/Constant-Generate/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl(constant) >= 1.17 +BuildRequires: perl-Scalar-List-Utils >= 1.20 +BuildRequires: perl-Test-Simple +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Constant::Generate provides useful utilities for handling, debugging, +and generating opaque, 'magic-cookie' type constants as well as +value-significant constants. + +%description -l pl.UTF-8 +Constant::Generate udostępnia proste narzędzia do obsługi, diagnostyki +i generowania nieprzejrzystych stałych typu "magic cookie" oraz +stałych o znaczeniu zmiennych. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%dir %{perl_vendorlib}/Constant +%{perl_vendorlib}/Constant/Generate.pm +%{perl_vendorlib}/Constant/Generate +%{_mandir}/man3/Constant::Generate.3pm* -- 2.44.0