]> git.pld-linux.org Git - packages/translate-toolkit.git/blobdiff - translate-toolkit.spec
up to 1.14.0-rc1
[packages/translate-toolkit.git] / translate-toolkit.spec
index 24fa79a604b4c180d39340f00025c2b2c12d990d..d53f9b347e991affb91c60e404caaf087e09bd9b 100644 (file)
@@ -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
This page took 0.124057 seconds and 4 git commands to generate.