perl-XML-Encoding-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %define _use_internal_dependency_generator 0
  2. %define module XML-Encoding
  3. Summary: A module for parsing encoded map XML files.
  4. Name: perl-%{module}
  5. Version: 2.07
  6. Release: 1%{?_dist_release}
  7. License: Artistic and GPL
  8. Group: Development/Libraries
  9. Source0: %{module}-%{version}.tar.gz
  10. URL: http://search.cpan.org/~shay/XML-Encoding/
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: perl-XML-Parser
  13. Requires: perl >= 5.8.2, perl-XML-Parser
  14. BuildArch: noarch
  15. %description
  16. This module, which is built as a subclass of XML::Parser, provides a
  17. parser for encoding map files, which are XML files. The file
  18. maps/encmap.dtd in the distribution describes the structure of these
  19. files.
  20. %prep
  21. %setup -q -n %{module}-%{version}
  22. %build
  23. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  24. make
  25. make test || /bin/true
  26. %clean
  27. rm -rf $RPM_BUILD_ROOT
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. make DESTDIR=$RPM_BUILD_ROOT install
  31. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  32. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  33. find $RPM_BUILD_ROOT/usr -type f -print |
  34. sed "s@^$RPM_BUILD_ROOT@@g" |
  35. grep -v perllocal.pod |
  36. grep -v "\.packlist" > XML-Encoding-%{version}-filelist
  37. if [ "$(cat XML-Encoding-%{version}-filelist)X" = "X" ] ; then
  38. echo "ERROR: EMPTY FILE LIST"
  39. exit -1
  40. fi
  41. %check
  42. make test
  43. %files -f XML-Encoding-%{version}-filelist
  44. %defattr(-,root,root)
  45. %changelog
  46. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.07-1
  47. - new upstream release
  48. - updated URL
  49. - changed Group to Development/Libraries
  50. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-24vl5
  51. - applied new versioning policy
  52. * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-23vl6
  53. - changed Group to Development/Languages
  54. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.01-23vl5
  55. - build on perl-5.8.6-0vl1
  56. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl4
  57. - rebuilt on perl-5.8.2
  58. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl3
  59. - rebuilt on perl-5.8.1
  60. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl2
  61. - build on perl-5.8.0
  62. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl1
  63. - build for VineLinux
  64. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  65. - automated release bump and build
  66. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  67. - automated rebuild
  68. * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.01-2
  69. - imported from mandrake. tweaked man path.
  70. * Mon Jun 18 2001 Till Kamppeter <till@mandrakesoft.com> 1.01-1mdk
  71. - Newly introduced for Foomatic.