nepomuk(-devel) subpkgs on < f24, drop on f24+

This commit is contained in:
Rex Dieter 2016-02-26 14:27:33 -06:00
parent ce522328fb
commit 8335d68389

View File

@ -6,8 +6,6 @@
%define dbusmenu_qt_ver 0.9.0
%define phonon_ver 4.6.0
%define qt4_ver 4.8.1
%define shared_desktop_ontologies_ver 0.10.0
%define soprano_ver 2.8.0
%define strigi_ver 0.7.0
%if ! 0%{?bootstrap}
%define apidocs 1
@ -18,7 +16,7 @@
%if 0%{?fedora}
%define herqq 1
%endif
%if 0%{?fedora} > 23
%if 0%{?fedora} < 24
%define nepomuk 1
%endif
# to build/include QCH apidocs or not (currently broken)
@ -41,8 +39,6 @@
%global _hardened_build 1
%global phonon_version %(pkg-config --modversion phonon 2>/dev/null || echo %{phonon_ver})
%global shared_desktop_ontologies_version %(pkg-config --modversion shared-desktop-ontologies 2>/dev/null || echo %{shared_desktop_ontologies_ver})
%global soprano_version %(pkg-config --modversion soprano 2>/dev/null || echo %{soprano_ver})
%global strigi_version %(pkg-config --modversion libstreams 2>/dev/null || echo %{strigi_ver})
%global dbusmenu_qt_version %(pkg-config --modversion dbusmenu-qt 2>/dev/null || echo %{dbusmenu_qt_ver})
%global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
@ -54,7 +50,7 @@ Summary: KDE Libraries
# shipped with kde applications, version...
%global apps_version 15.12.2
Version: 4.14.17
Release: 4%{?dist}
Release: 5%{?dist}
Name: kdelibs
Epoch: 6
@ -100,11 +96,6 @@ Requires: kde-l10n
Requires: phonon%{?_isa} >= %{phonon_version}
Requires: shared-mime-info
Requires: strigi-libs%{?_isa} >= %{strigi_version}
%if ! 0%{?nepomuk}
BuildRequires: pkgconfig(shared-desktop-ontologies) >= %{shared_desktop_ontologies_ver}
Requires: shared-desktop-ontologies >= %{shared_desktop_ontologies_version}
Requires: soprano%{?_isa} >= %{soprano_version}
%endif
# make kdelibs-devel parallel-installable with kdelibs3-devel
Patch0: kdelibs-4.9.95-parallel_devel.patch
@ -261,7 +252,6 @@ BuildRequires: pkgconfig(phonon) >= %{phonon_ver}
BuildRequires: pkgconfig(polkit-qt-1)
BuildRequires: pkgconfig(qca2)
BuildRequires: pkgconfig(shared-mime-info)
BuildRequires: pkgconfig(soprano) >= %{soprano_ver}
BuildRequires: pkgconfig(zlib)
# extra X deps (seemingly needed and/or checked-for by most kde4 buildscripts)
%define x_deps pkgconfig(sm) pkgconfig(xcomposite) pkgconfig(xdamage) pkgconfig(xkbfile) pkgconfig(xpm) pkgconfig(xproto) pkgconfig(xscrnsaver) pkgconfig(xtst) pkgconfig(xv) pkgconfig(xxf86misc)
@ -298,6 +288,13 @@ Provides: kdelibs-experimental = %{version}-%{release}
Obsoletes: kdelibs-experimental < 4.3.75
%endif
%if 0%{?nepomuk}
# upgrade path, when -nepomuk was introduced
Obsoletes: kdelibs < 6:4.14.17-5
%else
Obsoletes: kdelibs-nepomuk < %{?epoch:%{epoch}:}%{version}-%{release}
%endif
Requires: kde-apps-rpm-macros = %{?epoch:%{epoch}:}%{version}-%{release}
%description
@ -323,19 +320,17 @@ Conflicts: kdebase-workspace-devel < 4.3.80
Obsoletes: kdelibs-experimental-devel < 4.3.75
Provides: kdelibs-experimental-devel = %{version}-%{release}
%endif
%if 0%{?nepomuk}
# upgrade path, when -nepomuk was introduced
Obsoletes: kdelibs-devel < 6:4.14.17-5
%else
Obsoletes: kdelibs-nepomuk-devel < %{?epoch:%{epoch}:}%{version}-%{release}
%endif
Requires: automoc4 >= 0.9.88
Requires: cmake >= 2.8.9
Requires: pkgconfig(libattica) >= %{attica_ver}
Requires: pkgconfig(openssl)
Requires: pkgconfig(phonon)
%if ! 0%{?nepomuk}
Provides: kdelibs4-nepomuk-devel = %{version}-%{release}
%{?_isa:Provides: kdelibs4-nepomuk-devel%{?_isa} = %{version}-%{release}}
Provides: nepomuk-devel = %{version}-%{release}
Requires: pkgconfig(shared-desktop-ontologies)
## Can consider dropping, thanks to Drop-Nepomuk-from-KParts-LINK_INTERFACE_LIBRARIES.patch
Requires: pkgconfig(soprano)
%endif
Requires: qt4-devel
%{?x_deps:Requires: %{x_deps}}
@ -346,16 +341,26 @@ applications for KDE 4.
%if 0%{?nepomuk}
%package nepomuk
Summary: KDE Nepomuk library
# upgrade path, when -nepomuk was introduced
Obsoletes: kdelibs < 6:4.14.17-5
Provides: kdelibs4-nepomuk = %{version}-%{release}
%{?_isa:Provides: kdelibs4-nepomuk%{?_isa} = %{version}-%{release}}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%global shared_desktop_ontologies_ver 0.10.0
BuildRequires: pkgconfig(shared-desktop-ontologies) >= %{shared_desktop_ontologies_ver}
%global shared_desktop_ontologies_version %(pkg-config --modversion shared-desktop-ontologies 2>/dev/null || echo %{shared_desktop_ontologies_ver})
Requires: shared-desktop-ontologies >= %{shared_desktop_ontologies_version}
%global soprano_ver 2.8.0
BuildRequires: pkgconfig(soprano) >= %{soprano_ver}
%global soprano_version %(pkg-config --modversion soprano 2>/dev/null || echo %{soprano_ver})
Requires: soprano%{?_isa} >= %{soprano_version}
%description nepomuk
%{summary}.
%package nepomuk-devel
Summary: Development files for KDE Nepomuk
# upgrade path, when -nepomuk was introduced
Obsoletes: kdelibs-devel < 6:4.14.17-5
Provides: kdelibs4-nepomuk-devel = %{version}-%{release}
%{?_isa:Provides: kdelibs4-nepomuk-devel%{?_isa} = %{version}-%{release}}
Requires: %{name}-nepomuk%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
@ -629,7 +634,6 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%{_kde4_bindir}/kdeinit4
%{_kde4_bindir}/kdeinit4_shutdown
%{_kde4_bindir}/kdeinit4_wrapper
%{_kde4_bindir}/kfilemetadatareader
%{_kde4_bindir}/kjs
%{_kde4_bindir}/kjscmd
%{_kde4_bindir}/kmailservice
@ -696,9 +700,6 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%{_kde4_libdir}/libkunitconversion.so.4*
%{_kde4_libdir}/libkunittest.so.4*
%{_kde4_libdir}/libkutils.so.4*
%{_kde4_libdir}/libnepomukquery.so.4*
%{_kde4_libdir}/libnepomuk.so.4*
%{_kde4_libdir}/libnepomukutils.so.4*
%{_kde4_libdir}/libplasma.so.3*
%{_kde4_libdir}/libsolid.so.4*
%{_kde4_libdir}/libthreadweaver.so.4*
@ -747,6 +748,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%postun nepomuk -p /sbin/ldconfig
%files nepomuk
%{_kde4_bindir}/kfilemetadatareader
%{_kde4_libdir}/libnepomukquery.so.4*
%{_kde4_libdir}/libnepomuk.so.4*
%{_kde4_libdir}/libnepomukutils.so.4*
@ -799,9 +801,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%{_kde4_libdir}/cmake/KDeclarative/
%{_kde4_libdir}/kde4/devel/
%if ! 0%{?nepomuk}
%{_kde4_bindir}/nepomuk-rcgen
%else
%if 0%{?nepomuk}
%exclude %{_kde4_includedir}/config-nepomuk.h
%exclude %{_kde4_includedir}/KDE/Nepomuk
%exclude %{_kde4_includedir}/nepomuk/
@ -852,6 +852,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%changelog
* Fri Feb 26 2016 Rex Dieter <rdieter@fedoraproject.org> - 6:4.14.17-5
- -nepomuk(-devel) subpkgs on < f24, drop on f24+
* Fri Feb 26 2016 Rex Dieter <rdieter@fedoraproject.org> - 6:4.14.17-4
- Recommends: media-player-info (f24+)
- drop BR: shared-desktop-ontologies (f24+)