KDE Applications 18.12.0 Beta (last try; fix any other issue post acceptance)

OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/poxml?expand=0&rev=84
This commit is contained in:
Wolfgang Bauer
2018-11-24 23:45:36 +00:00
committed by Git OBS Bridge
parent e274b90907
commit 9d0b40d116
4 changed files with 31 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package poxml
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,22 +12,21 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without lang
Name: poxml
Version: 18.08.3
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang
Name: poxml
Version: 18.11.80
Release: 0
Summary: Tools for translating DocBook XML files with Gettext
License: GPL-2.0 and GFDL-1.2
License: GPL-2.0-only AND GFDL-1.2-only
Group: System/GUI/KDE
Url: http://www.kde.org/
URL: http://www.kde.org/
Source0: %{name}-%{version}.tar.xz
BuildRequires: antlr
BuildRequires: antlr-devel
@@ -37,7 +36,6 @@ BuildRequires: kdoctools-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Xml)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a collection of tools that facilitate translating DocBook XML
@@ -46,9 +44,9 @@ files using Gettext message files (PO files).
%package -n kde-l10n-devel
Summary: Tools for translating DocBook XML files with Gettext
Group: System/GUI/KDE
Recommends: %{name}-lang
Obsoletes: kde4-l10n-devel < %{version}
Provides: kde4-l10n-devel = %{version}
Recommends: %{name}-lang
Provides: %{name} = %{version}
%description -n kde-l10n-devel
@@ -68,9 +66,8 @@ RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
export CXXFLAGS="%{optflags} -fPIC"
export CFLAGS="%{optflags} -fPIC"
%cmake_kf5 -d build -- -DCMAKE_CXXFLAGS="%{optflags}" -DCMAKE_CFLAGS="%{optflags}"
%make_jobs
make
%cmake_kf5 -d build -- -DCMAKE_CXXFLAGS="%{optflags}" -DCMAKE_CFLAGS="%{optflags}"
%make_jobs
%install
%kf5_makeinstall -C build
@@ -82,8 +79,7 @@ export CFLAGS="%{optflags} -fPIC"
%postun -n kde-l10n-devel -p /sbin/ldconfig
%files -n kde-l10n-devel
%defattr(-,root,root)
%doc COPYING*
%license COPYING*
%{_kf5_bindir}/po2xml
%{_kf5_bindir}/split2po
%{_kf5_bindir}/swappo
@@ -92,7 +88,7 @@ export CFLAGS="%{optflags} -fPIC"
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%license COPYING*
%endif
%changelog