perl-AppConfig-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Summary: Perl5 module for reading configuration files and parsing command line arguments
  2. Name: perl-AppConfig
  3. Version: 1.66
  4. Release: 2%{?_dist_release}
  5. License: distributable
  6. Group: Development/Libraries
  7. Source0: http://www.cpan.org/authors/id/ABW/AppConfig-%{version}.tar.gz
  8. URL: http://search.cpan.org/~abw/AppConfig/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl >= 5.004
  12. %description
  13. AppConfig is a bundle of Perl5 modules for reading configuration files
  14. and parsing command line arguments. This is a descendant of, and
  15. supercedes the App::Config module. Functionality is extended over the
  16. final version of App::Config (1.09) and includes many new features. This
  17. module has been developed and in the process, renamed, as part of an
  18. effort to unify the various Perl modules for parsing configuration files
  19. and command line arguments.
  20. %prep
  21. %setup -q -n AppConfig-%{version}
  22. %build
  23. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  24. make
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  28. make DESTDIR=$RPM_BUILD_ROOT install
  29. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  30. sed "s@^$RPM_BUILD_ROOT@@g" |
  31. grep -v ^%{_mandir} |
  32. grep -v perllocal.pod |
  33. grep -v "\.packlist" > %{name}.files
  34. if [ "$(cat %{name}.files)X" = "X" ] ; then
  35. echo "ERROR: EMPTY FILE LIST"
  36. exit -1
  37. fi
  38. %check
  39. make test
  40. %clean
  41. rm -rf $RPM_BUILD_ROOT
  42. %files -f %{name}.files
  43. %defattr(-,root,root)
  44. %doc README Changes TODO
  45. %dir %{perl_vendorlib}/AppConfig
  46. %{_mandir}/man3/*3pm*
  47. %changelog
  48. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.65-2
  49. - rebuild with perl-5.12.3
  50. * Sat Sep 13 2008 Shu KONNO <owa@bg.wakwak.com> 1.65-1vl5
  51. - applied new versioning policy
  52. * Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.65-0vl1
  53. - new upstream release
  54. - s/Copyright/License/
  55. - changed Group to Development/Libraries
  56. - installed modules to vendor_perl dir
  57. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.56-0vl1
  58. - new upstream release
  59. * Mon Dec 29 2003 IWAI, Masaharu <iwai@alib.jp> 1.55-0vl1
  60. - new upstream release
  61. - drop obsolete patch (Patch0): perl-AppConfig-pod-syntax.patch
  62. - drop obsolete examples directory in %%doc dir
  63. * Tue Apr 29 2003 IWAI Masaharu <iwai@alib.jp> 1.52-0vl2
  64. - build with perl-5.8.0
  65. * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.52-0vl1
  66. - first build for Vine Linux