cvsextras 32d25d5
Name:           perl-AppConfig
cce64eb
Version:        1.66
2265ac3
Release:        3%{?dist}
cvsextras 32d25d5
Summary:        Perl module for reading configuration files
cvsextras 32d25d5
cvsextras 32d25d5
Group:          Development/Libraries
cce64eb
License:        GPL+ or Artistic
cvsextras 32d25d5
URL:            http://search.cpan.org/dist/AppConfig/
cce64eb
Source0:        http://search.cpan.org/CPAN/authors/id/A/AB/ABW/AppConfig-%{version}.tar.gz
cvsextras 32d25d5
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras 32d25d5
cvsextras 32d25d5
BuildArch:      noarch
5ba51cc
BuildRequires:  perl(File::HomeDir) >= 0.61
e44fb6c
BuildRequires:  perl(Test::Pod)
53406c1
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
cvsextras 32d25d5
cvsextras 32d25d5
%description
cvsextras 32d25d5
AppConfig has a powerful but easy to use module for parsing
cvsextras 32d25d5
configuration files.  It also has a simple and efficient module for
cvsextras 32d25d5
parsing command line arguments.  For fully-featured command line
cvsextras 32d25d5
parsing, a module is provided for interfacing AppConfig to Johan
cvsextras 32d25d5
Vromans' extensive Getopt::Long module.  Johan will continue to
cvsextras 32d25d5
develop the functionality of this package and its features will
cvsextras 32d25d5
automatically become available through AppConfig.
cvsextras 32d25d5
cvsextras 32d25d5
cvsextras 32d25d5
%prep
cvsextras 32d25d5
%setup -q -n AppConfig-%{version}
cvsextras 32d25d5
f36d466
# Provides: exclude perl(AppConfig::State)
f36d466
cat <<__EOF__ > %{name}-perl.prov
f36d466
#!/bin/sh
f36d466
/usr/lib/rpm/perl.prov \$* | grep -v '^perl(AppConfig::State)$'
f36d466
__EOF__
f36d466
%define __perl_provides %{_builddir}/AppConfig-%{version}/%{name}-perl.prov
f36d466
chmod +x %{__perl_provides}
f36d466
cvsextras 32d25d5
cvsextras 32d25d5
%build
cvsextras 32d25d5
%{__perl} Makefile.PL INSTALLDIRS=vendor
cvsextras 32d25d5
make %{?_smp_mflags}
cvsextras 32d25d5
cvsextras 32d25d5
cvsextras 32d25d5
%install
cvsextras 32d25d5
rm -rf $RPM_BUILD_ROOT
cvsextras 32d25d5
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
cvsextras 32d25d5
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
c3b010c
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
cvsextras 32d25d5
chmod -R u+w $RPM_BUILD_ROOT/*
cvsextras 32d25d5
cvsextras 32d25d5
70e3569
%check
5ba51cc
AUTOMATED_TESTING=1 make test
cvsextras 32d25d5
cvsextras 32d25d5
cvsextras 32d25d5
%clean
cvsextras 32d25d5
rm -rf $RPM_BUILD_ROOT
cvsextras 32d25d5
cvsextras 32d25d5
cvsextras 32d25d5
%files
cvsextras 32d25d5
%defattr(-,root,root,-)
e44fb6c
%doc Changes LICENSE README TODO
cvsextras 32d25d5
%{perl_vendorlib}/*
e44fb6c
%{_mandir}/man3/*.3pm*
cvsextras 32d25d5
cvsextras 32d25d5
cvsextras 32d25d5
%changelog
2265ac3
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.66-3
2265ac3
- Rebuild for perl 5.10 (again)
2265ac3
b2cf4ab
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.66-2
b2cf4ab
- rebuild for new perl
b2cf4ab
cce64eb
* Wed Nov 28 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.66-1
cce64eb
- bump to 1.66
cce64eb
c3b010c
* Thu May 31 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.65-1
c3b010c
- Update to 1.65.
c3b010c
5ba51cc
* Thu Jan  4 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.64-1
5ba51cc
- Update to 1.64.
5ba51cc
f36d466
* Sun Oct  8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.63-2
f36d466
- Excluded the unversioned perl(AppConfig::State) provide.
f36d466
e44fb6c
* Thu Aug  3 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.63-1
e44fb6c
- Update to 1.63.
e44fb6c
- New upstream maintainer.
e44fb6c
53406c1
* Fri Feb 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.56-4
53406c1
- Rebuild for FC5 (perl 5.8.8).
53406c1
70e3569
* Wed Dec 28 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.56-3
70e3569
- Dist tag.
70e3569
70e3569
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.56-2
f71b095
- rebuilt
f71b095
cvsextras 32d25d5
* Sun May 23 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.56-0.fdr.1
cvsextras 32d25d5
- Update to 1.56.
cvsextras 32d25d5
- License corrected.
cvsextras 32d25d5
- Require perl >= 1:5.6.1 for vendor install dir support.
cvsextras 32d25d5
- Moved make test to section %check.
cvsextras 32d25d5
- Use pure_install to avoid perllocal.pod workarounds.
cvsextras 32d25d5
cvsextras 32d25d5
* Sun Oct 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.55-0.fdr.1
cvsextras 32d25d5
- First build.