[packages/translate-toolkit] up to 1.14.0-rc1
glen
glen at pld-linux.org
Tue Jun 21 22:54:36 CEST 2016
commit ddf0bb6668e236470cb72715f002ad4aec770031
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jun 21 23:48:48 2016 +0300
up to 1.14.0-rc1
there won't be 1.14.0 release, next one is 2.0.0b1
disable man build (broken, needs investigate)
translate-toolkit.spec | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/translate-toolkit.spec b/translate-toolkit.spec
index 24fa79a..d53f9b3 100644
--- a/translate-toolkit.spec
+++ b/translate-toolkit.spec
@@ -1,16 +1,16 @@
#
# Conditional build:
%bcond_with apidocs # do not package API docs
-%bcond_without doc # do not package user docs
+%bcond_with doc # do not package user docs
Summary: Tools to assist with translation and software localization
Name: translate-toolkit
-Version: 1.13.0
-Release: 2
+Version: 1.14.0
+Release: 1
License: GPL v2+
Group: Development/Tools
-Source0: https://github.com/translate/translate/releases/download/%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: f9997a0deb3f1767bb20665a47cd2708
+Source0: https://github.com/translate/translate/releases/download/%{version}-rc1/%{name}-%{version}-rc1.tar.bz2
+# Source0-md5: 5c9db1077098d7cc10a2704bf673c8b3
Patch0: %{name}-stoplist.patch
Patch1: %{name}-langmodel_dir.patch
Patch2: unbash.patch
@@ -75,7 +75,7 @@ Group: Documentation
Documentation for translate-toolkit.
%prep
-%setup -q
+%setup -q -n %{name}-%{version}-rc1
%patch0 -p1
%patch1 -p1
%patch2 -p1
@@ -90,6 +90,7 @@ checkbashisms $(grep -rl '#!/bin/sh' tools)
rm -r docs/_build/html/_sources
+%if %{with doc}
# create manpages
install -d man
for script in build-2/scripts-%{py_ver}/*; do
@@ -119,14 +120,17 @@ for script in build-2/scripts-%{py_ver}/*; do
# if this grep fails, you should exclude it above
grep 'Autogenerated manpage' man/$program.1
done
+%endif
%install
rm -rf $RPM_BUILD_ROOT
%py_install
%py_postclean
+%if %{with doc}
install -d $RPM_BUILD_ROOT%{_mandir}/man1
cp -a man/* $RPM_BUILD_ROOT%{_mandir}/man1
+%endif
# remove documentation files from site-packages
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/translate/docs
@@ -238,6 +242,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/xliff2odf
%attr(755,root,root) %{_bindir}/xliff2oo
%attr(755,root,root) %{_bindir}/xliff2po
+%if %{with doc}
%{_mandir}/man1/csv2po.1*
%{_mandir}/man1/csv2tbx.1*
%{_mandir}/man1/html2po.1*
@@ -294,6 +299,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/xliff2odf.1*
%{_mandir}/man1/xliff2oo.1*
%{_mandir}/man1/xliff2po.1*
+%endif
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/langmodels
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/translate-toolkit.git/commitdiff/040ffc0539ef8f0fd470eda632d28f7df5324279
More information about the pld-cvs-commit
mailing list