86 lines
2.8 KiB
RPMSpec
86 lines
2.8 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Locale-Maketext-Gettext
|
|
Version: 1.32
|
|
Release: 1mamba
|
|
Summary: Locale::Maketext::Gettext - Perl support for Maketext and Gettext
|
|
Group: Development/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
Source: http://www.cpan.org/authors/id/I/IM/IMACAT/Locale-Maketext-Gettext-%{version}.tar.gz
|
|
URL: https://www.cpan.org
|
|
License: GPL
|
|
BuildRoot: %{_tmppath}/perl-root
|
|
Requires: perl >= %perl_major_ver
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
Perl support for Maketext and Gettext.
|
|
Locale::Maketext::Gettext joins the GNU gettext and Maketext frameworks.
|
|
It is a subclass of Locale::Maketext that follows the way GNU gettext works.
|
|
It works seamlessly, both in the sense of GNU gettext and Maketext.
|
|
As a result, you enjoy both their advantages, and get rid of both their problems, too.
|
|
|
|
%prep
|
|
%setup -q -n Locale-Maketext-Gettext-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
%make pure_install DESTDIR=%{buildroot}
|
|
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 Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 1.32-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Sep 10 2020 Automatic Build System <autodist@mambasoft.it> 1.30-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Sun Sep 15 2019 Automatic Build System <autodist@mambasoft.it> 1.29-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Tue Jul 16 2013 Automatic Build System <autodist@mambasoft.it> 1.28-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Sat Jul 04 2009 Automatic Build System <autodist@mambasoft.it> 1.28-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri May 01 2009 Automatic Build System <autodist@mambasoft.it> 1.27-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.26-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Jul 02 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.26-1mamba
|
|
- update to 1.26
|
|
|
|
* Wed Apr 27 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.15-1qilnx
|
|
- update to version 1.15 by autospec
|
|
- fixed perl requirement
|
|
|
|
* Wed Mar 31 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-1qilnx
|
|
- first build
|