perl-XML-Encoding-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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.08
  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. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. This module, which is built as a subclass of XML::Parser, provides a
  19. parser for encoding map files, which are XML files. The file
  20. maps/encmap.dtd in the distribution describes the structure of these
  21. files.
  22. %prep
  23. %setup -q -n %{module}-%{version}
  24. %build
  25. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  26. make
  27. make test || /bin/true
  28. %clean
  29. rm -rf $RPM_BUILD_ROOT
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  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 "\.packlist" > XML-Encoding-%{version}-filelist
  39. if [ "$(cat XML-Encoding-%{version}-filelist)X" = "X" ] ; then
  40. echo "ERROR: EMPTY FILE LIST"
  41. exit -1
  42. fi
  43. %check
  44. make test
  45. %files -f XML-Encoding-%{version}-filelist
  46. %defattr(-,root,root)
  47. %changelog
  48. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.08-1
  49. - new upstream release
  50. - add Vendor and Distribution tags
  51. * Sun Feb 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.07-1
  52. - new upstream release
  53. - updated URL
  54. - changed Group to Development/Libraries
  55. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-24vl5
  56. - applied new versioning policy
  57. * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.01-23vl6
  58. - changed Group to Development/Languages
  59. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.01-23vl5
  60. - build on perl-5.8.6-0vl1
  61. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl4
  62. - rebuilt on perl-5.8.2
  63. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl3
  64. - rebuilt on perl-5.8.1
  65. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl2
  66. - build on perl-5.8.0
  67. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 1.01-23vl1
  68. - build for VineLinux
  69. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  70. - automated release bump and build
  71. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  72. - automated rebuild
  73. * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.01-2
  74. - imported from mandrake. tweaked man path.
  75. * Mon Jun 18 2001 Till Kamppeter <till@mandrakesoft.com> 1.01-1mdk
  76. - Newly introduced for Foomatic.