po4a/po4a.spec

68 lines
2.0 KiB
RPMSpec

Name: po4a
Version: 0.48
Release: 1mamba
Summary: Tools to ease translations
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://po4a.alioth.debian.org/
Source: https://alioth.debian.org/anonscm/git/po4a/po4a.git/v%{version}/po4a-%{version}.tar.bz2
#Source: http://alioth.debian.org/frs/download.php/file/3942/po4a-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-HTML-Parser
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The po4a (PO for anything) project goal is to ease translations (and more interestingly, the maintenance of translations) using gettext tools on areas where they were not expected like documentation.
%prep
%setup -q
%build
%{__perl} Build.PL installdirs=vendor
./Build
./Build test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install destdir=%{buildroot}
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&\*,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
#% find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f .packlist
%defattr(-,root,root)
%doc COPYING
#% doc NEWS README README.maintainers README.tests README.translators TODO
%changelog
* Tue Nov 22 2016 Automatic Build System <autodist@mambasoft.it> 0.48-1mamba
- automatic version update by autodist
* Sun Oct 20 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.45-2mamba
- don't own system directories
* Mon Sep 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.45-1mamba
- package created by silvan using the webbuild interface