From e199da5cedb128f9b1f23b1e8d7867545b15b251 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Feb 17 2016 18:58:33 +0000 Subject: disable nepomuk f24+ --- diff --git a/pykde4.spec b/pykde4.spec index 8b49cd9..d8af445 100644 --- a/pykde4.spec +++ b/pykde4.spec @@ -7,6 +7,9 @@ %define qscintilla 1 %define webkit 1 %endif +%if 0%{?fedora} < 24 +%define nepomuk 1 +%endif %{!?__python2:%global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} @@ -15,7 +18,7 @@ Name: pykde4 Version: 4.14.3 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Python bindings for KDE4 # http://techbase.kde.org/Policies/Licensing_Policy @@ -55,6 +58,9 @@ Patch209: kubuntu_kpythonpluginfactory_3.2support.diff Patch300: pykde4-4.8.3-webkit.patch BuildRequires: kdelibs4-devel >= 4.14 +%if 0%{?nepomuk} +BuildRequires: nepomuk-devel +%endif BuildRequires: kdepimlibs-devel >= 4.14 BuildRequires: pkgconfig(akonadi) BuildRequires: pkgconfig(qimageblitz) @@ -237,6 +243,12 @@ sed -i \ -e "s|@PYTHON2@|%{__python2}|g" \ %{buildroot}%{_bindir}/pykdeuic4 +## unpackaged files +%if ! 0%{?nepomuk} +rm -fv %{buildroot}%{python2_sitearch}/PyKDE4/nepomuk.so +rm -fv %{python3_sitearch}/PyKDE4/nepomuk.so +%endif + %files %dir %{python2_sitearch}/PyKDE4/ @@ -251,7 +263,9 @@ sed -i \ %{python2_sitearch}/PyKDE4/kterminal.so %{python2_sitearch}/PyKDE4/ktexteditor.so %{python2_sitearch}/PyKDE4/kutils.so +%if 0%{?nepomuk} %{python2_sitearch}/PyKDE4/nepomuk.so +%endif %{python2_sitearch}/PyKDE4/phonon.so %{python2_sitearch}/PyKDE4/plasma.so %{python2_sitearch}/PyKDE4/pykdeconfig.py* @@ -288,7 +302,9 @@ sed -i \ %{python3_sitearch}/PyKDE4/kterminal.so %{python3_sitearch}/PyKDE4/ktexteditor.so %{python3_sitearch}/PyKDE4/kutils.so +%if 0%{?nepomuk} %{python3_sitearch}/PyKDE4/nepomuk.so +%endif %{python3_sitearch}/PyKDE4/phonon.so %{python3_sitearch}/PyKDE4/plasma.so %{python3_sitearch}/PyKDE4/pykdeconfig.py @@ -311,6 +327,9 @@ sed -i \ %changelog +* Wed Feb 17 2016 Rex Dieter 4.14.3-11 +- disable nepomuk f24+ + * Thu Feb 04 2016 Fedora Release Engineering - 4.14.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild