perl-Config-IniFiles-vl.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. %define pkgname Config-IniFiles
  2. Summary: A perl module for reading .ini-style configuration files.
  3. Name: perl-%{pkgname}
  4. Version: 2.83
  5. Release: 1%{?_dist_release}
  6. Group: Development/Libraries
  7. License: GPL+ or Artistic
  8. URL: http://config-inifiles.sourceforge.net/
  9. Source0: %{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Module::Build::Compat)
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(File::Basename)
  15. BuildRequires: perl(File::Temp)
  16. BuildRequires: perl(List::MoreUtils) >= 0.33
  17. BuildRequires: perl(Test::More)
  18. BuildArch: noarch
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. %description
  21. Config::IniFiles provides a way to have readable configuration files
  22. outside your Perl script. Configurations can be imported (inherited,
  23. stacked,...), sections can be grouped, and settings can be accessed
  24. from a tied hash.
  25. %prep
  26. %setup -q -n %{pkgname}-%{version}
  27. %build
  28. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  29. make %{?_smp_mflags}
  30. %install
  31. rm -rf %{buildroot}
  32. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  33. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  34. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  35. chmod -R u+w %{buildroot}/*
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find %{buildroot}%{_prefix} -type f -print | \
  38. sed "s@^%{buildroot}@@g" | \
  39. grep -v perllocal.pod | \
  40. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  41. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %check
  46. make test
  47. %clean
  48. rm -rf %{buildroot}
  49. %files -f %{pkgname}-%{version}-filelist
  50. %defattr(-,root,root)
  51. %doc README MANIFEST
  52. %changelog
  53. * Sun Dec 7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.83-1
  54. - new upstream release
  55. - added BR: perl(List::MoreUtils)
  56. - built with perl 5.16.3
  57. * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.68-1
  58. - updated to 2.68
  59. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.39-2
  60. - rebuild with perl-5.12.3
  61. * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.39-1
  62. - apply new versioning policy
  63. * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.39-0vl1
  64. - new upstream release
  65. * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.38-0vl1
  66. - initial build for Vine Linux