perl-XML-Dumper-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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: 2%{?_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. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.81-2
  55. - rebuild with perl-5.12.3
  56. * Fri Aug 1 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.81-1
  57. - applied new versioning policy
  58. - rebuilt with perl-5.10.0
  59. - changed Group to Development/Libraries
  60. * Wed Jul 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.81-0vl1
  61. - new upstream release
  62. - rebuilt with perl-5.8.6
  63. - changed Group to Development/Languages
  64. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 0.71-0vl1
  65. - new upstream release
  66. * Sat Dec 13 2003 Satoshi MACHINO <machino@vinelinux.org> 0.67-0vl2
  67. - built on perl-5.8.2
  68. * Thu Nov 06 2003 Satoshi MACHINO <machino@vinelinux.org> 0.67-0vl1
  69. - new upstream version
  70. - built on perl-5.8.1
  71. * Sun Apr 20 2003 Satoshi MACHINO <machino@vinelinux.org> 0.4-25vl2
  72. - build on perl-5.8.0
  73. * Sun Mar 02 2003 Satoshi MACHINO <machino@vinelinux.org> 0.4-25vl1
  74. - build for VineLinux
  75. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  76. - automated release bump and build
  77. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  78. - automated rebuild
  79. * Mon Jul 23 2001 Crutcher Dunnavant <crutcher@redhat.com> 2.30-5
  80. - got it to work.
  81. * Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 2.30-4
  82. - imported from mandrake. tweaked man path.
  83. * Thu Jun 21 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.4-3mdk
  84. - Fixed an error in changelog.
  85. * Thu Jun 21 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.4-2mdk
  86. - Clean up spec.
  87. - Fixed distribution tag.
  88. - Needed by eGrail.
  89. * Mon Jun 18 2001 Till Kamppeter <till@mandrakesoft.com> 0.4-1mdk
  90. - Newly introduced for Foomatic.