perl-Config-General-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. Name: perl-Config-General
  2. Version: 2.50
  3. Release: 1%{?_dist_release}
  4. Summary: Generic configuration module for Perl
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Config-General/
  8. Source0: http://www.cpan.org/authors/id/T/TL/TLINDEN/Config-General-%{version}.tar.gz
  9. Patch0: %{name}-2.50-system-ixhash.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildArch: noarch
  12. BuildRequires: perl(Carp)
  13. BuildRequires: perl(Carp::Heavy)
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(Test::More)
  16. BuildRequires: perl(Tie::IxHash)
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. %description
  19. This module opens a config file and parses its contents for
  20. you. After parsing the module returns a hash structure which contains
  21. the representation of the config file.
  22. The format of config files supported by Config::General is inspired by
  23. the well known Apache config format, in fact, this module is 100%
  24. read-compatible with Apache configs, but you can also just use simple
  25. name/value pairs in your config files.
  26. In addition to the capabilities of an Apache config file it supports
  27. some enhancements such as here-documents, C-style comments or
  28. multiline options. It is also possible to save the config back to
  29. disk, which makes the module a perfect backend for configuration
  30. interfaces.
  31. It is possible to use variables in config files and there exists also
  32. support for object oriented access to the configuration.
  33. %prep
  34. %setup -q -n Config-General-%{version}
  35. %patch0 -p1
  36. rm -r t/Tie # see patch0
  37. f=Changelog ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f ; mv $f.utf8 $f
  38. %build
  39. %{__perl} Makefile.PL INSTALLDIRS=vendor
  40. make %{?_smp_mflags}
  41. %install
  42. rm -rf %{buildroot}
  43. make pure_install DESTDIR=%{buildroot}
  44. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  45. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
  46. %{_fixperms} %{buildroot}/*
  47. %check
  48. make test
  49. %clean
  50. rm -rf %{buildroot}
  51. %files
  52. %defattr(-,root,root,-)
  53. %doc Changelog README example.cfg
  54. %{perl_vendorlib}/Config/
  55. %{_mandir}/man3/Config::*.3*
  56. %changelog
  57. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.50-1
  58. - initial build for Vine Linux
  59. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.50-6
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  61. * Tue Sep 13 2011 Petr Pisar <ppisar@redhat.com> - 2.50-5
  62. - Build-require Carp because Carp dual-lives now (bug #736768)
  63. * Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.50-4
  64. - Perl mass rebuild
  65. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.50-3
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  67. * Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.50-2
  68. - 661697 rebuild for fixing problems with vendorach/lib
  69. * Thu Dec 2 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.50-1
  70. - Update to 2.50, fixes #658945, #659046.
  71. * Tue Jun 29 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.49-2
  72. - Rebuild.
  73. * Tue Jun 8 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.49-1
  74. - Update to 2.49 (#601611).
  75. * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.48-2
  76. - Mass rebuild with perl-5.12.0
  77. * Fri Apr 23 2010 Ville Skyttä <ville.skytta@iki.fi> - 2.48-1
  78. - Update to 2.48.
  79. - Sync with current rpmdevtools Perl spec template.
  80. * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.44-2
  81. - rebuild against perl 5.10.1
  82. * Tue Sep 8 2009 Ville Skyttä <ville.skytta@iki.fi> - 2.44-1
  83. - Update to 2.44 (#521756).
  84. - Prune pre-2005 %%changelog entries.
  85. * Sun Jul 26 2009 Ville Skyttä <ville.skytta@iki.fi> - 2.43-1
  86. - Update to 2.43 (#513796).
  87. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.42-3
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  89. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.42-2
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  91. * Sun Jan 4 2009 Ville Skyttä <ville.skytta@iki.fi> - 2.42-1
  92. - 2.42.
  93. - Patch test suite to use system installed Tie::IxHash.
  94. - Fix some spelling errors in %%description.
  95. - Use Source0: instead of Source:.
  96. * Sat Jun 21 2008 Ville Skyttä <ville.skytta@iki.fi> - 2.40-1
  97. - 2.40.
  98. * Tue Jun 17 2008 Ville Skyttä <ville.skytta@iki.fi> - 2.39-1
  99. - 2.39.
  100. * Tue Mar 4 2008 Ville Skyttä <ville.skytta@iki.fi> - 2.38-1
  101. - 2.38.
  102. * Fri Feb 8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.37-2
  103. - rebuild for new perl
  104. * Tue Nov 27 2007 Ville Skyttä <ville.skytta@iki.fi> - 2.37-1
  105. - 2.37 (#398801).
  106. - Convert docs to UTF-8.
  107. * Tue Aug 7 2007 Ville Skyttä <ville.skytta@iki.fi> - 2.33-2
  108. - License: GPL+ or Artistic
  109. * Wed Apr 18 2007 Ville Skyttä <ville.skytta@iki.fi> - 2.33-1
  110. - 2.33.
  111. - BuildRequire perl(ExtUtils::MakeMaker) and perl(Test::More).
  112. * Sat Feb 24 2007 Ville Skyttä <ville.skytta@iki.fi> - 2.32-1
  113. - 2.32.
  114. * Tue Aug 29 2006 Ville Skyttä <ville.skytta@iki.fi> - 2.31-2
  115. - Fix order of arguments to find(1).
  116. - Drop version from perl build dependency.
  117. * Thu Jan 12 2006 Ville Skyttä <ville.skytta@iki.fi> - 2.31-1
  118. - 2.31.
  119. * Fri Sep 16 2005 Ville Skyttä <ville.skytta@iki.fi> - 2.30-1
  120. - 2.30.
  121. * Wed May 18 2005 Ville Skyttä <ville.skytta@iki.fi> - 2.28-2
  122. - 2.28.
  123. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.27-2
  124. - rebuilt