File poxml.spec of Package poxml4

#
# spec file for package poxml
#
# Copyright (c) 2015 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#


Name:           poxml
BuildRequires:  antlr
BuildRequires:  antlr-devel
BuildRequires:  libkde4-devel
Summary:        KDE SDK POXML Package
License:        GPL-2.0 and GFDL-1.2
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Version:        15.08.3
Release:        0
Source0:        %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This package suggests the packages, built from the kdesdk poxml module.

%prep
%setup -q -n %{name}-%{version}

%build
%ifarch ppc64
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
  %cmake_kde4 -d build -- -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS" 
 %make_jobs
  make

%install
  cd build
  %makeinstall
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf $RPM_BUILD_ROOT

%package -n kde4-l10n-devel
Summary:        KDE SDK Package
Group:          System/GUI/KDE
%kde4_runtime_requires

%description -n kde4-l10n-devel
This package suggests the packages, built from the kdesdk module.

%post -n kde4-l10n-devel -p /sbin/ldconfig

%postun -n kde4-l10n-devel -p /sbin/ldconfig

%files -n kde4-l10n-devel
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%{_kde4_bindir}/po2xml
%{_kde4_bindir}/split2po
%{_kde4_bindir}/swappo
%{_kde4_bindir}/xml2pot
%{_mandir}/man1/po2xml.1.gz
%{_mandir}/man1/split2po.1.gz
%{_mandir}/man1/swappo.1.gz
%{_mandir}/man1/xml2pot.1.gz

%changelog