perl-XML-Twig-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %define _use_internal_dependency_generator 0
  2. Name: perl-XML-Twig
  3. Version: 3.29
  4. Release: 2%{?_dist_release}
  5. Summary: A perl module for processing huge XML documents in tree mode.
  6. License: distributable
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/~mirod/XML-Twig/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 5.8.2, perl-XML-Parser >= 2.23
  11. Requires: perl >= 5.8.2, perl-XML-Parser >= 2.23
  12. Buildarch: noarch
  13. Source0: XML-Twig-%{version}.tar.gz
  14. %description
  15. This module provides a way to process XML documents. It is build on
  16. top of XML::Parser. XML::Twig offers a tree interface to the
  17. document, while allowing you to output the parts of it that have been
  18. completely processed. It allows minimal resource (CPU and memory)
  19. usage by building the tree only for the parts of the documents that
  20. need actual processing, through the use of the twig_roots and
  21. twig_print_outside_roots options.
  22. %prep
  23. %setup -q -n XML-Twig-%{version}
  24. %build
  25. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor <<_OPT_
  26. y
  27. _OPT_
  28. make
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  32. make DESTDIR=$RPM_BUILD_ROOT install
  33. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  34. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  35. find $RPM_BUILD_ROOT/usr -type f -print | \
  36. sed "s@^$RPM_BUILD_ROOT@@g" | \
  37. grep -v perllocal.pod | \
  38. grep -v %{_mandir} | \
  39. grep -v "\.packlist" > XML-Twig-%{version}-filelist
  40. if [ "$(cat XML-Twig-%{version}-filelist)X" = "X" ] ; then
  41. echo "ERROR: EMPTY FILE LIST"
  42. exit 1
  43. fi
  44. #%check
  45. #make test || /bin/true
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %files -f XML-Twig-%{version}-filelist
  49. %defattr(-,root,root)
  50. %{_mandir}/man1/xml*.1*
  51. %{_mandir}/man3/*3pm*
  52. %changelog
  53. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.29-2
  54. - rebuilt with perl-5.10.0
  55. * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-1
  56. - rebuilt with perl-5.10.0
  57. - applied new versioning policy
  58. * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-0vl1
  59. - new upstream
  60. - changed Group to Development/Libraries
  61. * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.15-0vl2
  62. - rebuilt for VineSeed (4.0)
  63. - changed Group to Development/Languages
  64. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 3.15-0vl1
  65. - new upstream release
  66. - build on perl-5.8.6-0vl1
  67. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl2
  68. - built on perl-5.8.2
  69. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl1
  70. - new updtream version
  71. - built on perl-5.8.1
  72. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl2
  73. - build on perl-5.8.0
  74. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl1
  75. - build for VineLinux
  76. * Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
  77. - update to latest version from CPAN
  78. * Mon Aug 26 2002 Chip Turner <cturner@redhat.com>
  79. - rebuild for build failure
  80. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  81. - automated release bump and build
  82. * Wed May 29 2002 cturner@redhat.com
  83. - Specfile autogenerated