From 38d93f12639ad35caa536531e72c41997e3f8884a3b62a7e25d9e1e1f2a382b9 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Apr 2017 13:29:10 +0000 Subject: [PATCH] Make a merry car great again OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/poxml?expand=0&rev=50 --- poxml.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/poxml.spec b/poxml.spec index e02ca39..ca012fb 100644 --- a/poxml.spec +++ b/poxml.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without lang Name: poxml Version: 17.03.90 @@ -41,6 +42,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build This is a collection of tools that facilitate translating DocBook XML files using Gettext message files (PO files). +%if %{with lang} +%lang_package +%endif + %prep %setup -q @@ -56,6 +61,9 @@ export CFLAGS="%{optflags} -fPIC" %install %kf5_makeinstall -C build + %if %{with lang} + %find_lang %{name} --with-man --all-name + %endif %package -n kde-l10n-devel Summary: Tools for translating DocBook XML files with Gettext @@ -79,4 +87,9 @@ files using Gettext message files (PO files). %{_bindir}/xml2pot %{_mandir}/man1/*.*%{ext_man} +%if %{with lang} +%files lang -f %{name}.lang +%doc COPYING* +%endif + %changelog