Package cleanup

f38
Petr Šabata 9 years ago
parent f9bebea4d5
commit 32b8cdbc11

@ -1,15 +1,23 @@
Name: perl-Affix-Infix2Postfix Name: perl-Affix-Infix2Postfix
Version: 0.03 Version: 0.03
Release: 19%{?dist} Release: 20%{?dist}
Summary: Perl extension for converting from infix notation to postfix notation Summary: Perl extension for converting from infix notation to postfix notation
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Affix-Infix2Postfix/ URL: http://search.cpan.org/dist/Affix-Infix2Postfix/
Source0: http://www.cpan.org/authors/id/A/AD/ADDI/Affix-Infix2Postfix-%{version}.tar.gz 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 BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) # Build
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 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 %description
Infix2Postfix as the name suggests converts from infix to postfix notation. 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} %setup -q -n Affix-Infix2Postfix-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
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/*
%check %check
make test make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc Changes README %doc Changes README
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Tue Jan 26 2016 Petr Šabata <contyk@redhat.com> - 0.03-20
- Package cleanup
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-19 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

Loading…
Cancel
Save