perl-YAML-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %define origname YAML
  2. Summary: YAML Ain't Markup Language (tm) for Perl
  3. Name: perl-YAML
  4. Version: 0.71
  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. %define __find_requires %{SOURCE1}
  19. %description
  20. This module has been released to CPAN as YAML::Old, and soon YAML.pm
  21. will be changed to just be a frontend interface module for all the
  22. various Perl YAML implementation modules, including YAML::Old.
  23. If you want robust and fast YAML processing using the normal Dump/Load
  24. API, please consider switching to YAML::XS. It is by far the best Perl
  25. module for YAML at this time. It requires that you have a C compiler,
  26. since it is written in C.
  27. %prep
  28. %setup -q -n %{origname}-%{version}
  29. %build
  30. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  37. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  38. sed "s@^$RPM_BUILD_ROOT@@g" |
  39. grep -v ^%{_mandir} |
  40. grep -v perllocal.pod |
  41. grep -v "\.packlist" > %{name}.files
  42. if [ "$(cat %{name}.files)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. %check
  47. make test
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files -f %{name}.files
  51. %defattr(-,root,root)
  52. %doc README Changes LICENSE
  53. %{perl_vendorlib}/YAML
  54. %{_mandir}/man3/*
  55. %changelog
  56. * Mon Feb 22 2010 IWAI, Masaharu <iwai@alib.jp>
  57. - first release for Vine Linux