perl-XML-Twig-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. %define _use_internal_dependency_generator 0
  2. Name: perl-XML-Twig
  3. Version: 3.29
  4. Release: 1%{?_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. * Sun Jul 27 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-1
  54. - rebuilt with perl-5.10.0
  55. - applied new versioning policy
  56. * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.29-0vl1
  57. - new upstream
  58. - changed Group to Development/Libraries
  59. * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.15-0vl2
  60. - rebuilt for VineSeed (4.0)
  61. - changed Group to Development/Languages
  62. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 3.15-0vl1
  63. - new upstream release
  64. - build on perl-5.8.6-0vl1
  65. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl2
  66. - built on perl-5.8.2
  67. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 3.11-0vl1
  68. - new updtream version
  69. - built on perl-5.8.1
  70. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl2
  71. - build on perl-5.8.0
  72. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 3.09-3vl1
  73. - build for VineLinux
  74. * Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
  75. - update to latest version from CPAN
  76. * Mon Aug 26 2002 Chip Turner <cturner@redhat.com>
  77. - rebuild for build failure
  78. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  79. - automated release bump and build
  80. * Wed May 29 2002 cturner@redhat.com
  81. - Specfile autogenerated