File perl-AppConfig-SLES_9.spec of Package perl-AppConfig
# $Id: perl-AppConfig.spec 5669 2007-08-02 16:45:50Z dries $
# Authority: dries
# Upstream: Andy Wardley <abw$wardley,org>
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
%define real_name AppConfig
Summary: Module for reading configuration files and parsing command line args
Name: perl-AppConfig
Version: 1.65
%define releasesuffix sles9
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/AppConfig/
Packager: Dries Verachtert <dries@ulyssis.org>
Vendor: Dries RPM Repository http://dries.ulyssis.org/rpm/
Source: http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker), perl
%description
AppConfig is a bundle of Perl5 modules for reading configuration files
and parsing command line arguments. This is a descendant of, and
supercedes the App::Config module. Functionality is extended over the
final version of App::Config (1.09) and includes many new features. This
module has been developed and in the process, renamed, as part of an
effort to unify the various Perl modules for parsing configuration files
and command line arguments.
AppConfig has a powerful but easy to use module for parsing configuration
files. It also has a simple and efficient module for parsing command line
arguments. For fully-featured command line parsing, a module is provided
for interfacing AppConfig to Johan Vromans' extensive Getopt::Long module.
Johan will continue to develop the functionality of this package and its
features will automatically become available through AppConfig.
All of the modules and features of the AppConfig bundle are easily
accessible through the AppConfig.pm module.
%prep
%setup -n %{real_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"
%install
%{__rm} -rf %{buildroot}
%{__make} install
%{__rm} -f %{buildroot}%{perl_archlib}/perllocal.pod
%{__rm} -f %{buildroot}%{perl_vendorarch}/auto/*/.packlist
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc Changes README TODO
%doc %{_mandir}/man3/*
%{perl_vendorlib}/AppConfig.pm
%{perl_vendorlib}/AppConfig/*
%changelog
* Mon Jun 18 2007 Dries Verachtert <dries@ulyssis.org> - 1.65-1
- Updated to release 1.65.
* Wed Jan 03 2007 Dries Verachtert <dries@ulyssis.org> - 1.64-1
- Updated to release 1.64.
* Mon Sep 18 2006 Dries Verachtert <dries@ulyssis.org> - 1.63-1
- Updated to release 1.63.
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.56-2.2
- Rebuild for Fedora Core 5.
* Sat Jan 01 2005 Dries Verachtert <dries@ulyssis.org> - 1.56-2
- Fixed the license tag (Thanks to David Necas !)
* Thu Jul 22 2004 Dries Verachtert <dries@ulyssis.org> - 1.56-1
- Initial package.