diff --git a/.cvsignore b/.cvsignore index e69de29..44e0c62 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Affix-Infix2Postfix-0.03.tar.gz diff --git a/perl-Affix-Infix2Postfix.spec b/perl-Affix-Infix2Postfix.spec new file mode 100644 index 0000000..16b8a41 --- /dev/null +++ b/perl-Affix-Infix2Postfix.spec @@ -0,0 +1,54 @@ +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. diff --git a/sources b/sources index e69de29..e0d5584 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +93cde6953a95a52a08cbfde1260c3436 Affix-Infix2Postfix-0.03.tar.gz