Name: perl-Affix-Infix2Postfix Version: 0.03 Release: 1%{?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)) %description Infix2Postfix as the name suggests converts from infix to postfix notation. The reason why someone would like to do this is that postfix notation is generally much easier to do in computers. For example take an expression like: a+b+c*d. For us humans it's pretty easy to do that calculation. But it's actually much better for computers to get a string of operations such as: a b + c d * +, where the variable names mean put variable on stack. %prep %setup -q -n Affix-Infix2Postfix-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor 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/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Mon Apr 02 2007 Steven Pritchard 0.03-1 - Specfile autogenerated by cpanspec 1.70. - Fix License.