perl-Data-Phrasebook-Loader-YAML-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. %define real_name Data-Phrasebook-Loader-YAML
  2. Summary: Absract your phrases with YAML
  3. Name: perl-%{real_name}
  4. Version: 0.09
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL+
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Data-Phrasebook-Loader-YAML/
  9. Source0: http://www.cpan.org/modules/by-module/Data/Data-Phrasebook-Loader-YAML-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: perl
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(Data::Phrasebook) >= 0.18
  15. BuildRequires: perl(Test::More) >= 0.47
  16. BuildRequires: perl(YAML) >= 0.35
  17. %description
  18. Absract your phrases with YAML.
  19. %prep
  20. %setup -q -n %{real_name}-%{version}
  21. %build
  22. CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
  23. make %{?_smp_mflags} OPTIMIZE="%{optflags}"
  24. %install
  25. rm -rf %{buildroot}
  26. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  27. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  28. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  29. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  30. chmod -R u+w %{buildroot}/*
  31. %clean
  32. rm -rf %{buildroot}
  33. %files
  34. %defattr(-, root, root, -)
  35. %doc Artistic COPYING Changes INSTALL LICENSE MANIFEST MANIFEST.SKIP META.yml README examples
  36. %{_mandir}/man3/*
  37. %{perl_vendorlib}/*
  38. %changelog
  39. * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.09-1
  40. - initial build for Vine Linux