perl-Config-IniFiles/perl-Config-IniFiles.spec

130 lines
4.2 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Config-IniFiles
Version: 2.94
Release: 1mamba
Summary: Config::IniFiles - A module for reading .ini-style configuration files
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Config-IniFiles-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
BuildRequires: perl-List-MoreUtils
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Config::IniFiles - A module for reading .ini-style configuration files.
%prep
%setup -q -n Config-IniFiles-%{version}
%build
perl Build.PL installdirs=vendor
./Build
./Build test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install \
destdir="%{buildroot}" \
--install_path bindoc="%{_mandir}/man1" \
--install_path libdoc="%{_mandir}/man3"
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
find %{buildroot}%{perl_vendorlib} \
-type d -depth -exec rmdir {} 2>/dev/null \;
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 Oct 22 2017 Automatic Build System <autodist@mambasoft.it> 2.94-1mamba
- automatic update by autodist
* Sun May 31 2015 Automatic Build System <autodist@mambasoft.it> 2.86-1mamba
- automatic update by autodist
* Tue Feb 18 2014 Automatic Build System <autodist@mambasoft.it> 2.83-1mamba
- automatic update by autodist
* Fri Jun 07 2013 Automatic Build System <autodist@mambasoft.it> 2.82-1mamba
- automatic version update by autodist
* Mon May 13 2013 Automatic Build System <autodist@mambasoft.it> 2.79-1mamba
- automatic version update by autodist
* Sat Oct 27 2012 Automatic Build System <autodist@mambasoft.it> 2.78-1mamba
- automatic version update by autodist
* Sat Aug 11 2012 Automatic Build System <autodist@mambasoft.it> 2.77-1mamba
- automatic version update by autodist
* Thu Apr 26 2012 Automatic Build System <autodist@mambasoft.it> 2.70-1mamba
- automatic version update by autodist
* Sat Jul 23 2011 Automatic Build System <autodist@mambasoft.it> 2.68-1mamba
- automatic update to 3.0.3.0 by autodist
* Mon Jan 31 2011 Automatic Build System <autodist@mambasoft.it> 2.66-1mamba
- automatic update by autodist
* Tue Nov 30 2010 Automatic Build System <autodist@mambasoft.it> 2.65-1mamba
- automatic update by autodist
* Mon Nov 22 2010 Automatic Build System <autodist@mambasoft.it> 2.64-1mamba
- automatic update by autodist
* Thu Nov 18 2010 Automatic Build System <autodist@mambasoft.it> 2.61-1mamba
- automatic update by autodist
* Sun Nov 14 2010 Automatic Build System <autodist@mambasoft.it> 2.60-1mamba
- automatic update by autodist
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 2.58-1mamba
- automatic update by autodist
* Tue May 11 2010 Automatic Build System <autodist@mambasoft.it> 2.57-1mamba
- automatic update by autodist
* Thu Jan 14 2010 Automatic Build System <autodist@mambasoft.it> 2.56-1mamba
- automatic update by autodist
* Thu Jul 02 2009 Automatic Build System <autodist@mambasoft.it> 2.52-1mamba
- automatic update by autodist
* Fri Jun 12 2009 Automatic Build System <autodist@mambasoft.it> 2.51-1mamba
- automatic update by autodist
* Tue May 19 2009 Automatic Build System <autodist@mambasoft.it> 2.49-1mamba
- automatic update by autodist
* Fri Apr 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.48-1mamba
- automatic update by autodist
* Fri Mar 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.47-1mamba
- automatic update by autodist
* Sat Jan 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.45-1mamba
- package created by autospec