perl-libintl/perl-libintl.spec

78 lines
2.4 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-libintl
Version: 1.26
Release: 1mamba
Summary: An internationalization library for Perl
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/G/GU/GUIDO/libintl-perl-%{version}.tar.gz
License: GPL/Artistic License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/perl-root
%description
The package libintl-perl is an internationalization library for Perl that aims to be compatible with the Uniforum message translations system as implemented for example in GNU gettext.
%prep
%setup -q -n libintl-perl-%{version}
%build
perl Makefile.PL
%make
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 Aug 30 2016 Automatic Build System <autodist@mambasoft.it> 1.26-1mamba
- automatic update by autodist
* Wed Apr 22 2015 Automatic Build System <autodist@mambasoft.it> 1.24-1mamba
- automatic update by autodist
* Fri Mar 01 2013 Automatic Build System <autodist@mambasoft.it> 1.23-1mamba
- automatic version update by autodist
* Mon Jan 21 2013 Automatic Build System <autodist@mambasoft.it> 1.21-1mamba
- automatic version update by autodist
* Fri Nov 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20-1mamba
- perl 5.16 mass rebuild
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.16-2mamba
- automatic rebuild by autodist
* Thu Jun 19 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.16-1mamba
- update to 1.16
* Wed Feb 16 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11-1qilnx
- package created by autospec