|
|
41cbfa5 |
Name: po4a
|
|
|
40315f7 |
Version: 0.32
|
|
|
7a26677 |
Release: 6%{?dist}
|
|
|
41cbfa5 |
Summary: A tool maintaining translations anywhere
|
|
|
41cbfa5 |
Group: Applications/System
|
|
|
370bb44 |
# Nothing in the source tree specifies a version of the GPL.
|
|
|
370bb44 |
License: GPL+
|
|
|
41cbfa5 |
URL: http://alioth.debian.org/projects/po4a/
|
|
|
41cbfa5 |
Source0: http://alioth.debian.org/download.php/1798/%{name}-%{version}.tar.gz
|
|
|
41cbfa5 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
41cbfa5 |
BuildArch: noarch
|
|
|
41cbfa5 |
BuildRequires: perl(Module::Build)
|
|
|
41cbfa5 |
BuildRequires: perl(Text::WrapI18N)
|
|
|
41cbfa5 |
BuildRequires: perl(SGMLS) >= 1.03ii
|
|
|
41cbfa5 |
BuildRequires: perl(Locale::gettext) >= 1.01, gettext
|
|
|
41cbfa5 |
BuildRequires: perl(Term::ReadKey)
|
|
|
7a26677 |
|
|
|
7a26677 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
41cbfa5 |
Requires: gettext
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%description
|
|
|
41cbfa5 |
The po4a (po for anything) project goal is to ease translations (and
|
|
|
41cbfa5 |
more interestingly, the maintenance of translations) using gettext
|
|
|
41cbfa5 |
tools on areas where they were not expected like documentation.
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%prep
|
|
|
41cbfa5 |
%setup -q
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%build
|
|
|
41cbfa5 |
perl Build.PL --installdirs vendor
|
|
|
41cbfa5 |
./Build
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%install
|
|
|
41cbfa5 |
rm -rf %{buildroot}
|
|
|
41cbfa5 |
make install DESTDIR=%{buildroot}
|
|
|
41cbfa5 |
find %{buildroot} -type f \( -name .packlist -or -name perllocal.pod \
|
|
|
41cbfa5 |
-or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \;
|
|
|
41cbfa5 |
find %{buildroot} -depth -type d -exec rmdir {} \;
|
|
|
41cbfa5 |
chmod -R u+w %{buildroot}
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%find_lang %{name}
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
# ugly fix to get the translated man pages in utf-8
|
|
|
41cbfa5 |
for file in %{buildroot}%{_mandir}/*/man*/*.gz; do
|
|
|
41cbfa5 |
gunzip -c $file | iconv -f latin1 -t utf8 | gzip -c > $file.new
|
|
|
41cbfa5 |
mv -f $file.new $file
|
|
|
41cbfa5 |
done
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%check || :
|
|
|
41cbfa5 |
# check is currently broken due to absence of data-23/fonts
|
|
|
41cbfa5 |
#./Build test verbose=1
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%clean
|
|
|
41cbfa5 |
rm -rf %{buildroot}
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%files -f %{name}.lang
|
|
|
41cbfa5 |
%defattr(-,root,root,-)
|
|
|
41cbfa5 |
%doc README* COPYING TODO
|
|
|
41cbfa5 |
%{_bindir}/po4a*
|
|
|
41cbfa5 |
%{_bindir}/msguntypot
|
|
|
41cbfa5 |
%{perl_vendorlib}/Locale/Po4a
|
|
|
41cbfa5 |
%{_mandir}/man1/po4a*.1*
|
|
|
41cbfa5 |
%{_mandir}/man1/msguntypot.1*
|
|
|
41cbfa5 |
%{_mandir}/man3/Locale::Po4a::*.3pm*
|
|
|
41cbfa5 |
%{_mandir}/man7/po4a.7*
|
|
|
41cbfa5 |
%{_mandir}/*/man1/po4a*.1p*
|
|
|
41cbfa5 |
%{_mandir}/*/man1/msguntypot.1*
|
|
|
41cbfa5 |
%{_mandir}/*/man3/Locale::Po4a::*.3pm*
|
|
|
41cbfa5 |
%{_mandir}/*/man7/po4a.7*
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
%changelog
|
|
|
7a26677 |
* Thu May 22 2008 Ralf Cors├ępius <rc040203@freenet.de> - 0.32-6
|
|
|
7a26677 |
- Add: "Requires: perl(:MODULE_COMPAT_...)" (BZ 442548).
|
|
|
7a26677 |
|
|
|
370bb44 |
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.32-5
|
|
|
370bb44 |
- fix license tag
|
|
|
370bb44 |
|
|
|
40315f7 |
* Mon Aug 20 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.32-4
|
|
|
40315f7 |
- Update to 0.32.
|
|
|
40315f7 |
- fixes a possible race condition under /tmp (no CVE yet).
|
|
|
40315f7 |
|
|
|
41cbfa5 |
* Thu Dec 28 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.29-3
|
|
|
41cbfa5 |
- Update to 0.29.
|
|
|
41cbfa5 |
|
|
|
41cbfa5 |
* Sat Feb 18 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
|
|
|
41cbfa5 |
- Initial build.
|
|
|
41cbfa5 |
|