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