perl-YAML-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. %define origname YAML
  2. Summary: YAML Ain't Markup Language (tm) for Perl
  3. Name: perl-YAML
  4. Version: 0.72
  5. Release: 1%{?_dist_release}
  6. License: perl's
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{origname}-%{version}.tar.gz
  9. Source1: filter-requires-perl-YAML.sh
  10. Url: http://search.cpan.org/dist/YAML/
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. BuildRequires: perl
  14. Requires: perl
  15. Distribution: Vine Linux
  16. Vendor: Project Vine
  17. Packager: iwaim
  18. %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
  19. %define __find_requires %{SOURCE1}
  20. %else
  21. %define __perl_requires %{SOURCE1}
  22. %endif
  23. %description
  24. This module has been released to CPAN as YAML::Old, and soon YAML.pm
  25. will be changed to just be a frontend interface module for all the
  26. various Perl YAML implementation modules, including YAML::Old.
  27. If you want robust and fast YAML processing using the normal Dump/Load
  28. API, please consider switching to YAML::XS. It is by far the best Perl
  29. module for YAML at this time. It requires that you have a C compiler,
  30. since it is written in C.
  31. %prep
  32. %setup -q -n %{origname}-%{version}
  33. %build
  34. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  35. make
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  39. make DESTDIR=$RPM_BUILD_ROOT install
  40. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  41. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  42. sed "s@^$RPM_BUILD_ROOT@@g" |
  43. grep -v ^%{_mandir} |
  44. grep -v perllocal.pod |
  45. grep -v "\.packlist" > %{name}.files
  46. if [ "$(cat %{name}.files)X" = "X" ] ; then
  47. echo "ERROR: EMPTY FILE LIST"
  48. exit -1
  49. fi
  50. %check
  51. make test
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %files -f %{name}.files
  55. %defattr(-,root,root)
  56. %doc README Changes LICENSE
  57. %dir %{perl_vendorlib}/YAML
  58. %{_mandir}/man3/*
  59. %changelog
  60. * Sat Mar 26 2011 IWAI, Masaharu <iwai@alib.jp> 0.72-1
  61. - new upstream release
  62. - using __perl_requires macro for VineSeed (vl6)
  63. * Mon Feb 22 2010 IWAI, Masaharu <iwai@alib.jp> 0.71-1
  64. - first release for Vine Linux