perl-XML-RSS-vl.spec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. %define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib)
  2. Summary: creates and updates RSS files with Perl
  3. Name: perl-XML-RSS
  4. Version: 1.05
  5. Release: 0vl1
  6. Copyright: distributable
  7. Group: Development/Languages
  8. Source0: http://www.cpan.org/authors/id/E/EI/EISEN/XML-RSS-%{version}.tar.gz
  9. Url: http://search.cpan.org/search?dist=XML-RSS
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl >= 5.004, perl-XML-Parser
  13. Requires: perl >= 5.004, perl-XML-Parser
  14. %description
  15. XML-RSS module for perl
  16. %prep
  17. %setup -q -n XML-RSS-%{version}
  18. %build
  19. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
  20. make
  21. %clean
  22. rm -rf $RPM_BUILD_ROOT
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  26. make DESTDIR=$RPM_BUILD_ROOT install
  27. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  28. sed "s@^$RPM_BUILD_ROOT@@g" |
  29. grep -v ^%{_mandir} |
  30. grep -v perllocal.pod |
  31. grep -v "\.packlist" > %{name}.files
  32. if [ "$(cat %{name}.files)X" = "X" ] ; then
  33. echo "ERROR: EMPTY FILE LIST"
  34. exit -1
  35. fi
  36. %files -f %{name}.files
  37. %defattr(-,root,root)
  38. %doc README Changes TODO examples
  39. %{_mandir}/man?/*
  40. %dir %{perl_sitelib}/XML
  41. %changelog
  42. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 1.05-0vl1
  43. - new upstream release
  44. - build on perl-5.8.6-0vl1
  45. * Mon Dec 15 2003 IWAI, Masaharu <iwai@alib.jp> 1.02-0vl1
  46. - new upstream release
  47. - add %%{perl_sitelib}/XML directory in %%files
  48. - add TODO and examples if %%doc dir
  49. - drop BUGS in %%doc dir: because it lost.
  50. * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.97-0vl1
  51. - first build for Vine Linux