Raymond Wooninck 2015-12-15 19:03:19 +00:00 committed by Git OBS Bridge
parent 51e9ba0c9f
commit cbf2a64b25

View File

@ -19,7 +19,11 @@
Name: poxml
BuildRequires: antlr
BuildRequires: antlr-devel
BuildRequires: libkde4-devel
BuildRequires: extra-cmake-modules
BuildRequires: gettext-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: kdoctools-devel
Summary: KDE SDK POXML Package
License: GPL-2.0 and GFDL-1.2
Group: System/GUI/KDE
@ -28,7 +32,6 @@ Version: 15.12.0
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.
@ -42,14 +45,12 @@ 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"
%cmake_kf5 -d build -- -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS"
%make_jobs
make
%install
cd build
%makeinstall
%kde_post_install
%kf5_makeinstall -C build
%post -p /sbin/ldconfig
@ -58,28 +59,21 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC"
%clean
rm -rf $RPM_BUILD_ROOT
%package -n kde4-l10n-devel
%package -n kde-l10n-devel
Summary: KDE SDK Package
Group: System/GUI/KDE
%kde4_runtime_requires
Obsoletes: kde4-l10n-devel < %{version}
Provides: kde4-l10n-devel = %{version}
%description -n kde4-l10n-devel
%description -n kde-l10n-devel
This package suggests the packages, built from the kdesdk module.
%post -n kde4-l10n-devel -p /sbin/ldconfig
%post -n kde-l10n-devel -p /sbin/ldconfig
%postun -n kde4-l10n-devel -p /sbin/ldconfig
%postun -n kde-l10n-devel -p /sbin/ldconfig
%files -n kde4-l10n-devel
%files -n kde-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