86 lines
2.6 KiB
RPMSpec
86 lines
2.6 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-AppConfig
|
|
Version: 1.66
|
|
Release: 3mamba
|
|
Summary: Perl modules for reading configuration files and parsing command line arguments
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.cpan.org
|
|
Source: http://www.cpan.org/authors/id/A/AB/ABW/AppConfig-%{version}.tar.gz
|
|
License: GPL
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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.
|
|
|
|
%prep
|
|
|
|
%setup -q -n AppConfig-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make %{_smp_mflags}
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
done
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
rm -f .packlist
|
|
|
|
%files -f .packlist
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.66-3mamba
|
|
- perl 5.16 mass rebuild
|
|
|
|
* Mon Nov 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.66-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Fri May 30 2008 gil <puntogil@libero.it> 1.66-1mamba
|
|
- package created by autospec
|
|
|
|
* Fri Jan 21 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-2qilnx
|
|
- rebuilt to remove strict dependency on perl 5.8.2
|
|
|
|
* Tue Jan 18 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.56-1qilnx
|
|
- update to version 1.56 by autospec
|
|
|
|
* Thu Jan 08 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.55-3qilnx
|
|
- rebuilt with perl 5.8.2
|
|
|
|
* Wed Dec 31 2003 Davide Madrisan <davide.madrisan@qilinux.it> 1.55-2qilnx
|
|
- rebuilt with Perl 5.8.1
|
|
- specfile updates
|
|
|
|
* Wed Sep 03 2003 Silvan Calarco <silvan.calarco@qinet.it> 1.55-1qilnx
|
|
- first build
|
|
|