|
|
|
@ -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 <contyk@redhat.com> - 0.03-20
|
|
|
|
|
- Package cleanup
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|