don't own system directories [release 0.45-2mamba;Sun Oct 20 2013]

This commit is contained in:
Silvan Calarco 2024-01-06 10:23:29 +01:00
parent a6fdab8612
commit 4ba52cb01f
2 changed files with 63 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# po4a # po4a
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.

61
po4a.spec Normal file
View File

@ -0,0 +1,61 @@
Name: po4a
Version: 0.45
Release: 2mamba
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: http://alioth.debian.org/frs/download.php/file/3942/po4a-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
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
* 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