perl-Config-IniFiles-vl.spec 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. %define pkgname Config-IniFiles
  2. Summary: A perl module for reading .ini-style configuration files.
  3. Name: perl-%{pkgname}
  4. Version: 2.39
  5. Release: 2%{?_dist_release}
  6. Group: Development/Libraries
  7. License: distributable
  8. URL: http://config-inifiles.sourceforge.net/
  9. Source0: %{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. %description
  13. Config::IniFiles provides a way to have readable configuration files
  14. outside your Perl script. Configurations can be imported (inherited,
  15. stacked,...), sections can be grouped, and settings can be accessed
  16. from a tied hash.
  17. %prep
  18. %setup -q -n %{pkgname}-%{version}
  19. %build
  20. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor
  21. make
  22. make test
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. make install
  26. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  27. find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
  28. sed "s@^$RPM_BUILD_ROOT@@g" | \
  29. grep -v perllocal.pod | \
  30. grep -v "\.packlist" > %{pkgname}-%{version}-filelist
  31. if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
  32. echo "ERROR: EMPTY FILE LIST"
  33. exit -1
  34. fi
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %files -f %{pkgname}-%{version}-filelist
  38. %defattr(-,root,root)
  39. %doc README MANIFEST
  40. %changelog
  41. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.39-2
  42. - rebuild with perl-5.12.3
  43. * Tue Jan 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.39-1
  44. - apply new versioning policy
  45. * Wed May 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.39-0vl1
  46. - new upstream release
  47. * Sun Oct 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.38-0vl1
  48. - initial build for Vine Linux