From 32b8cdbc114e3d0b4a2baba39f6901e5d61aaed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Tue, 26 Jan 2016 14:09:32 +0100 Subject: [PATCH] Package cleanup --- perl-Affix-Infix2Postfix.spec | 37 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/perl-Affix-Infix2Postfix.spec b/perl-Affix-Infix2Postfix.spec index 7c5981c..3db0cad 100644 --- a/perl-Affix-Infix2Postfix.spec +++ b/perl-Affix-Infix2Postfix.spec @@ -1,15 +1,23 @@ Name: perl-Affix-Infix2Postfix Version: 0.03 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Perl extension for converting from infix notation to postfix notation License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/Affix-Infix2Postfix/ Source0: http://www.cpan.org/authors/id/A/AD/ADDI/Affix-Infix2Postfix-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Build +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Runtime +BuildRequires: perl(AutoLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Tests only +# - +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %description Infix2Postfix as the name suggests converts from infix to postfix notation. @@ -23,32 +31,25 @@ as: a b + c d * +, where the variable names mean put variable on stack. %setup -q -n Affix-Infix2Postfix-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT - -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - -%{_fixperms} $RPM_BUILD_ROOT/* +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/* %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Tue Jan 26 2016 Petr Ĺ abata - 0.03-20 +- Package cleanup + * Thu Jun 18 2015 Fedora Release Engineering - 0.03-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild