perl-AppConfig/perl-AppConfig.spec

93 lines
2.9 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-AppConfig
Version: 1.71
Release: 2mamba
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: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/AppConfig/AppConfig-%{version}.tar.gz
License: GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
%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
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 1.71-2mamba
- rebuilt with perl 5.36.0
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 1.71-1mamba
- automatic version update by autodist
* 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