perl-AppConfig-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Summary: Perl5 module for reading configuration files and parsing command line arguments
  2. Name: perl-AppConfig
  3. Version: 1.66
  4. Release: 1%{?_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 Sep 13 2008 Shu KONNO <owa@bg.wakwak.com> 1.65-1vl5
  49. - applied new versioning policy
  50. * Sun Jul 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.65-0vl1
  51. - new upstream release
  52. - s/Copyright/License/
  53. - changed Group to Development/Libraries
  54. - installed modules to vendor_perl dir
  55. * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 1.56-0vl1
  56. - new upstream release
  57. * Mon Dec 29 2003 IWAI, Masaharu <iwai@alib.jp> 1.55-0vl1
  58. - new upstream release
  59. - drop obsolete patch (Patch0): perl-AppConfig-pod-syntax.patch
  60. - drop obsolete examples directory in %%doc dir
  61. * Tue Apr 29 2003 IWAI Masaharu <iwai@alib.jp> 1.52-0vl2
  62. - build with perl-5.8.0
  63. * Mon Apr 15 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.52-0vl1
  64. - first build for Vine Linux