perl-XML-Dumper-vl.spec 3.7 KB

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