diff --git a/.cvsignore b/.cvsignore index e69de29..5aa4b87 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +po4a-0.29.tar.gz diff --git a/po4a.spec b/po4a.spec new file mode 100644 index 0000000..381a24a --- /dev/null +++ b/po4a.spec @@ -0,0 +1,76 @@ +Name: po4a +Version: 0.29 +Release: 3%{?dist} +Summary: A tool maintaining translations anywhere +Group: Applications/System +License: GPL +URL: http://alioth.debian.org/projects/po4a/ +Source0: http://alioth.debian.org/download.php/1798/%{name}-%{version}.tar.gz +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) +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 {} \; +find %{buildroot} -depth -type d -exec rmdir {} \; +chmod -R u+w %{buildroot} + +%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 + +%check || : +# check is currently broken due to absence of data-23/fonts +#./Build test verbose=1 + +%clean +rm -rf %{buildroot} + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc README* COPYING TODO +%{_bindir}/po4a* +%{_bindir}/msguntypot +%{perl_vendorlib}/Locale/Po4a +%{_mandir}/man1/po4a*.1* +%{_mandir}/man1/msguntypot.1* +%{_mandir}/man3/Locale::Po4a::*.3pm* +%{_mandir}/man7/po4a.7* +%{_mandir}/*/man1/po4a*.1p* +%{_mandir}/*/man1/msguntypot.1* +%{_mandir}/*/man3/Locale::Po4a::*.3pm* +%{_mandir}/*/man7/po4a.7* + + +%changelog +* Thu Dec 28 2006 Axel Thimm - 0.29-3 +- Update to 0.29. + +* Sat Feb 18 2006 Axel Thimm +- Initial build. + diff --git a/sources b/sources index e69de29..1e42ae1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +522c94f4c25e0d18bb00f33d209fe2a8 po4a-0.29.tar.gz