perl-XML-Dumper-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. %define _use_internal_dependency_generator 0
  2. %define name perl-XML-Dumper
  3. %define module XML-Dumper
  4. Summary: Perl module for dumping Perl objects from/to XML
  5. Name: %{name}
  6. Version: 0.81
  7. Release: 1%{?_dist_release}
  8. License: GPL
  9. Group: Development/Libraries
  10. Source0: http://www.cpan.org/authors/id/E/EI/EISEN/%{module}-%{version}.tar.gz
  11. Url: http://www.cpan.org
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root/
  13. Requires: perl >= 5.8.2, perl-XML-Parser
  14. BuildRequires: perl >= 5.8.2, perl-XML-Parser >= 2.34
  15. BuildArch: noarch
  16. %description
  17. XML::Dumper dumps Perl data to XML format. XML::Dumper can also read
  18. XML data that was previously dumped by the module and convert it back
  19. to Perl. Perl objects are blessed back to their original packaging;
  20. if the modules are installed on the system where the perl objects are
  21. reconstituted from xml, they will behave as expected. Intuitively, if
  22. the perl objects are converted and reconstituted in the same
  23. environment, all should be well.
  24. %prep
  25. %setup -q -n %{module}-%{version}
  26. %build
  27. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  28. make
  29. find ./ -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!%{__perl}|g"
  30. %clean
  31. rm -rf $RPM_BUILD_ROOT
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. mkdir -p $RPM_BUILD_ROOT{%{_prefix},%{_mandir}/man3}
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. #make PREFIX=$RPM_BUILD_ROOT%{_prefix} \
  37. # NSTALLSITEARCH=%{buildroot}%{perl_sitearch} install
  38. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  39. find $RPM_BUILD_ROOT/usr -type f -print |
  40. sed "s@^$RPM_BUILD_ROOT@@g" |
  41. grep -v ^%{_mandir} |
  42. grep -v perllocal.pod |
  43. grep -v "\.packlist" > XML-Dumper-%{version}-filelist
  44. if [ "$(cat XML-Dumper-%{version}-filelist)X" = "X" ] ; then
  45. echo "ERROR: EMPTY FILE LIST"
  46. exit -1
  47. fi
  48. install -m 644 blib/man3/* %{buildroot}%{_mandir}/man3
  49. %files -f XML-Dumper-%{version}-filelist
  50. %defattr(-,root,root)
  51. %doc README Changes MANIFEST
  52. %{_mandir}/man3/*3pm*
  53. %changelog
  54. * Fri Aug 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.81-1
  55. - applied new versioning policy
  56. - rebuilt with perl-5.10.0
  57. - changed Group to Development/Libraries
  58. * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.81-0vl1
  59. - new upstream release
  60. - rebuilt with perl-5.8.6
  61. - changed Group to Development/Languages
  62. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 0.71-0vl1
  63. - new upstream release
  64. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 0.67-0vl2
  65. - built on perl-5.8.2
  66. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 0.67-0vl1
  67. - new upstream version
  68. - built on perl-5.8.1
  69. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 0.4-25vl2
  70. - build on perl-5.8.0
  71. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 0.4-25vl1
  72. - build for VineLinux
  73. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  74. - automated release bump and build
  75. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  76. - automated rebuild
  77. * Mon Jul 23 2001 Crutcher Dunnavant <crutcher@redhat.com> 2.30-5
  78. - got it to work.
  79. * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 2.30-4
  80. - imported from mandrake. tweaked man path.
  81. * Thu Jun 21 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.4-3mdk
  82. - Fixed an error in changelog.
  83. * Thu Jun 21 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.4-2mdk
  84. - Clean up spec.
  85. - Fixed distribution tag.
  86. - Needed by eGrail.
  87. * Mon Jun 18 2001 Till Kamppeter <till@mandrakesoft.com> 0.4-1mdk
  88. - Newly introduced for Foomatic.