2007-01-07 00:25:54 +00:00
|
|
|
Name: po4a
|
2008-08-26 17:57:14 +00:00
|
|
|
Version: 0.34
|
2009-01-13 13:07:41 +00:00
|
|
|
Release: 1%{?dist}
|
2007-01-07 00:25:54 +00:00
|
|
|
Summary: A tool maintaining translations anywhere
|
|
|
|
Group: Applications/System
|
2008-05-21 20:12:38 +00:00
|
|
|
# Nothing in the source tree specifies a version of the GPL.
|
|
|
|
License: GPL+
|
2007-01-07 00:25:54 +00:00
|
|
|
URL: http://alioth.debian.org/projects/po4a/
|
2009-01-13 13:07:41 +00:00
|
|
|
Source0: http://alioth.debian.org/download.php/2518/%{name}-%{version}.tar.gz
|
2007-01-07 00:25:54 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Text::WrapI18N)
|
|
|
|
BuildRequires: perl(SGMLS) >= 1.03ii
|
|
|
|
BuildRequires: perl(Locale::gettext) >= 1.01, gettext
|
|
|
|
BuildRequires: perl(Term::ReadKey)
|
2008-05-22 06:01:49 +00:00
|
|
|
|
2009-01-13 13:07:41 +00:00
|
|
|
# Required by the tests.
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: docbook-dtds
|
|
|
|
|
2008-05-22 06:01:49 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2007-01-07 00:25:54 +00:00
|
|
|
Requires: gettext
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f \( -name .packlist -or -name perllocal.pod \
|
|
|
|
-or \( -name '*.bs' -a -empty \) \) -exec rm -f {} \;
|
2009-01-13 13:07:41 +00:00
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}
|
2007-01-07 00:25:54 +00:00
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
# ugly fix to get the translated man pages in utf-8
|
|
|
|
for file in %{buildroot}%{_mandir}/*/man*/*.gz; do
|
|
|
|
gunzip -c $file | iconv -f latin1 -t utf8 | gzip -c > $file.new
|
|
|
|
mv -f $file.new $file
|
|
|
|
done
|
|
|
|
|
2008-05-22 07:26:13 +00:00
|
|
|
%check
|
2009-01-13 13:07:41 +00:00
|
|
|
# The tests are unclean
|
|
|
|
./Build test ||:
|
2007-01-07 00:25:54 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README* COPYING TODO
|
|
|
|
%{_bindir}/po4a*
|
|
|
|
%{_bindir}/msguntypot
|
2008-06-01 05:40:40 +00:00
|
|
|
%{perl_vendorlib}/Locale
|
2007-01-07 00:25:54 +00:00
|
|
|
%{_mandir}/man1/po4a*.1*
|
|
|
|
%{_mandir}/man1/msguntypot.1*
|
|
|
|
%{_mandir}/man3/Locale::Po4a::*.3pm*
|
|
|
|
%{_mandir}/man7/po4a.7*
|
2008-08-26 17:57:14 +00:00
|
|
|
%{_mandir}/*/man1/po4a*.1*
|
2007-01-07 00:25:54 +00:00
|
|
|
%{_mandir}/*/man1/msguntypot.1*
|
|
|
|
%{_mandir}/*/man3/Locale::Po4a::*.3pm*
|
|
|
|
%{_mandir}/*/man7/po4a.7*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2009-01-13 13:07:41 +00:00
|
|
|
* Tue Jan 13 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.34-1
|
|
|
|
- Reset %%release.
|
|
|
|
- Add BuildRequires: perl(Test::More), BuildRequires: docbook-dtds.
|
|
|
|
- Activate tests.
|
|
|
|
- Fix Source0:-URL.
|
|
|
|
- Spec file cosmetics.
|
|
|
|
|
|
|
|
* Sun Aug 24 2008 Axel Thimm <Axel.Thimm@ATrpms.net>
|
2008-08-26 17:57:14 +00:00
|
|
|
- Update to 0.34.
|
|
|
|
|
2008-06-01 05:40:40 +00:00
|
|
|
* Sun Jun 01 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-8
|
|
|
|
- Let package own %%{perl_vendorlib}/Locale (BZ 449258).
|
|
|
|
|
2008-05-22 07:26:13 +00:00
|
|
|
* Thu May 22 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-7
|
|
|
|
- Remove || : in %%check due to rpm not accepting it anymore.
|
|
|
|
|
2008-05-22 06:01:49 +00:00
|
|
|
* Thu May 22 2008 Ralf Corsépius <rc040203@freenet.de> - 0.32-6
|
|
|
|
- Add: "Requires: perl(:MODULE_COMPAT_...)" (BZ 442548).
|
|
|
|
|
2008-05-21 20:12:38 +00:00
|
|
|
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.32-5
|
|
|
|
- fix license tag
|
|
|
|
|
2007-08-20 17:21:39 +00:00
|
|
|
* Mon Aug 20 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.32-4
|
|
|
|
- Update to 0.32.
|
|
|
|
- fixes a possible race condition under /tmp (no CVE yet).
|
|
|
|
|
2007-01-07 00:25:54 +00:00
|
|
|
* Thu Dec 28 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.29-3
|
|
|
|
- Update to 0.29.
|
|
|
|
|
|
|
|
* Sat Feb 18 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
|
|
|
|
- Initial build.
|
|
|
|
|