File perl-Config-General.spec of Package perl-Config-General

#
# spec file for package perl-Config-General (Version 2.33)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           perl-Config-General
%define module_name Config-General
Summary:        Generic Config Module
Version:        2.33
Release:        1
Requires:       perl = %{perl_version}
Autoreqprov:    on
License:        Artistic License, GPL v2 or later
Group:          Development/Libraries/Perl
Source0:        %{module_name}-%{version}.tar.bz2
#Patch: Config-General-%{version}.dif
URL:            http://search.cpan.org/~tlinden/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Generic Config Module



Authors:
--------
    Thomas Linden <tom@daemon.de>

%prep
%setup -q -n %{module_name}-%{version}
#%patch

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%check
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Config
%{perl_vendorlib}/Config
/var/adm/perl-modules/%{name}

%changelog
* Sun Aug 05 2007 - mrueckert@suse.de
- update to 2.33
  - fixed rt.cpan.org#26333 - just return $con if env var is
  undefined.
  - applied part of a patch supplied by
  Vincent Rivellino <vince@cuz.cx> which turns off explicit empty
  block support if in apache compatibility mode, see next.
  - added new option -ApacheCompatible, which makes the module
  behave really apache compatible by setting the required
  options.
  - a little bit re-organized the code, most of the stuff in new()
  is now outsourced into several extra subs to make maintenance
  of the code easier. The old new() sub in fact was a nightmare.
  - fixed a bug reported by Otto Hirr <otto.hirr@olabinc.com>:
  the _store() sub used sort() to sort the keys, which conflicts
  with sorted hashes (eg. tied using Tie::IxHash).
  - fixed tie bug reported by King, Jason <kingj@newsltd.com.au>,
  loading of the tie module didn't work.
- additional changes from 2.32
  - fixed rt.cpan.org#24232 - import ENV vars only if defined
  - fixed rt.cpan.org#20742 - dont' overwrite a var if re-defined
  in current scope, interpolation failed for re-defined vars and
  used the value of the var defined in outer scope, not the
  current one.
  - fixed rt.cpan.org#17852 - a 0 as blockname were ignored.
  applied patch by SCOP to t/run.t to test for 0 in blocks.
  - applied most hints Perl::Critic had about Config::General:
  o the functions ParseConfig SaveConfig SaveConfigString must
  now imported implicitly. This might break existing code, but
  is easily to fix.
  o using IO::File instead of open().
  o General.pm qualifies for "stern" level after all.
  - added much more tests to t/run.t for 'make test'.
  - using Test::More now.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 - mrueckert@suse.de
- update to version 2.31
* Fri Jul 29 2005 - cthiel@suse.de
- update to version 2.29
* Sun Jan 18 2004 - nashif@suse.de
- update to version 2.24
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Fri Aug 22 2003 - mjancar@suse.cz
- require the perl version we build with
* Fri Jul 18 2003 - nashif@suse.de
- use DESTDIR
- Fixed filelist
* Tue Jul 01 2003 - ro@suse.de
- use new macro perl_process_packlist
* Fri Jun 13 2003 - nashif@suse.de
- Update to 2.19
- Fixed file list
* Mon Jul 08 2002 - nashif@suse.de
- Update to version 2.04
* Mon Apr 09 2001 - nashif@suse.de
- Removed %%version macro
* Thu Mar 08 2001 - nashif@suse.de
- fixed %%files in spec
* Fri Feb 23 2001 - nashif@suse.de
- removed buildroot from pod file
* Fri Feb 16 2001 - nashif@suse.de
- Initial Release (1.18)