File nepomuk-core.spec of Package nepomuk-core

#
# spec file for package nepomuk-core
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           nepomuk-core
BuildRequires:  fdupes
BuildRequires:  libexiv2-devel
BuildRequires:  libkde4-devel
BuildRequires:  libpoppler-qt4-devel
BuildRequires:  libsoprano-devel >= 2.7.56
BuildRequires:  libtag-devel
BuildRequires:  shared-desktop-ontologies-devel >= 0.10.0
BuildRequires:  soprano-backend-redland >= 2.7.56
BuildRequires:  soprano-backend-virtuoso >= 2.7.56
BuildRequires:  xz
BuildRequires:  xz-devel
Summary:        The KDE Nepomuk Core Library
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://nepomuk.kde.org/
Version:        4.10.0
Release:        0
Source0:        %{name}-%{version}.tar.xz
Source99:       nepomuk.png
# PATCH-FIX-UPSTREAM Revert-BasicIndexingQueue-Use-stacks-instead-of-queu.patch fixes indexer not working recursively (kde#314559)
Patch0:         Revert-BasicIndexingQueue-Use-stacks-instead-of-queu.patch
# PATCH-FIX-UPSTREAM initialize-objects-in-correct-order.diff Object where initialized in the wrong order, and this always caused a crash for users that enabled nepomuk with clean db (kde#314589)
Patch1:         initialize-objects-in-correct-order.diff
# PATCH-FIX-UPSTREAM connect-both-the-queues-together.diff
Patch2:         connect-both-the-queues-together.diff
# PATCH-FIX-UPSTREAM emit-the-current-signals-in-propertychanged.diff
Patch3:         emit-the-current-signals-in-propertychanged.diff
# PATCH-FIX-UPSTREAM do-not-auto-update-the-cache-by-default.diff
Patch4:         do-not-auto-update-the-cache-by-default.diff
# PATCH-FIX-UPSTREAM fileindexer-do-not-use-QDirIterators-in-the-queues.patch
Patch5:         fileindexer-do-not-use-QDirIterators-in-the-queues.patch
# PATCH-FIX-UPSTREAM initialize-the-m_indexhidden-variable.patch
Patch6:         initialize-the-m_indexhidden-variable.patch
# PATCH-FIX-UPSTREAM initialize-m_state-to-its-correct-value.patch
Patch7:         initialize-m_state-to-its-correct-value.patch
# PATCH-FIX-UPSTREAM Check-DateTime-for-negative-years.patch
Patch8:         Check-DateTime-for-negative-years.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       kdelibs4 >= %version
Requires:       soprano-backend-redland
Requires:       libqt4-x11 >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-x11`)
Suggests:       cagibi
%define debug_package_requires %name = %version-%release kdelibs4-debuginfo

%description
This package contains all the core libraries for nepomuk

%package devel
Summary:        The Nepomuk Core Library
Group:          System/GUI/KDE
Requires:       %{name} = %{version}

%description devel
The devel package of the core library for nepomuk

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build
  %cmake_kde4 -d build -- -DKDE4_ENABLE_FPIE=1
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
  install $RPM_SOURCE_DIR/nepomuk.png %{buildroot}%{_datadir}/pixmaps/
  %suse_update_desktop_file -r nepomukcleaner             Utility Archiving
  %fdupes -s %{buildroot}
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files devel
%defattr(-,root,root)
/usr/include/Nepomuk2/
/usr/include/nepomuk2/
%{_libdir}/cmake/NepomukCore/
%{_libdir}/libnepomukcore.so

%files
%defattr(-,root,root)
%_kde4_bindir/nepomuk-simpleresource-rcgen
%_kde4_bindir/nepomukbackup
%_kde4_bindir/nepomukcleaner
%_kde4_bindir/nepomukindexer
%_kde4_bindir/nepomukserver
%_kde4_bindir/nepomukservicestub
%_kde4_bindir/nepomuk2-rcgen
%_kde4_modulesdir/nepomuk*.so
%{_libdir}/libnepomukcommon.so
%{_libdir}/libnepomukcore.so.*
%{_libdir}/libkdeinit4_nepomukserver.so
%{_kde4_applicationsdir}/nepomukbackup.desktop
%{_kde4_applicationsdir}/nepomukcleaner.desktop
%{_datadir}/autostart/nepomukserver.desktop
%{_datadir}/dbus-1/interfaces/org.kde.nepomuk.*.xml
%{_datadir}/dbus-1/interfaces/org.kde.NepomukServer.xml
%{_kde4_appsdir}/fileindexerservice/
%{_kde4_appsdir}/nepomukfilewatch/
%{_kde4_appsdir}/nepomukstorage/
%{_kde4_servicesdir}/nepomuk*.desktop
%{_kde4_servicetypesdir}/nepomukservice.desktop
%{_kde4_servicetypesdir}/nepomukextractor.desktop
%{_datadir}/ontology/
%{_datadir}/pixmaps/nepomuk.png

%changelog
openSUSE Build Service is sponsored by