perl-Config-IniFiles-vl.spec 2.1 KB

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