File libnepomukwidgets.spec of Package libnepomukwidgets
#
# spec file for package libnepomukwidgets
#
# 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: libnepomukwidgets
BuildRequires: fdupes
BuildRequires: libexiv2-devel
BuildRequires: libkde4-devel
BuildRequires: nepomuk-core-devel
BuildRequires: shared-desktop-ontologies-devel
BuildRequires: soprano-backend-redland
BuildRequires: soprano-backend-virtuoso
BuildRequires: strigi-devel
BuildRequires: xz
Summary: The Library containing the Nepomuk Widgets
License: GPL-2.0+ and LGPL-2.1+
Group: System/GUI/KDE
Url: http://nepomuk.kde.org/
Version: 4.12.0
Release: 0
Source0: nepomuk-widgets-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: kdelibs4 >= %version
Requires: soprano-backend-redland
Requires: libqt4-x11 >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-x11`)
%kde4_runtime_requires
%define debug_package_requires %name = %version-%release kdelibs4-debuginfo
%description
This package contains all the Nepomuk Widgets
%package -n libnepomukwidgets4
Summary: The Library containing the Nepomuk Widgets
Group: System/GUI/KDE
%description -n libnepomukwidgets4
This package contains all the Nepomuk Widgets
%package devel
Summary: NepomukWidgets
Group: System/GUI/KDE
Requires: libnepomukwidgets4 = %{version}
%description devel
The devel package of the Nepomuk Widgets
%prep
%setup -q -n nepomuk-widgets-%{version}
%build
%cmake_kde4 -d build -- -DKDE4_ENABLE_FPIE=1
%make_jobs
%install
cd build
%kde4_makeinstall
%fdupes -s %{buildroot}
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files devel
%defattr(-,root,root)
%{_libdir}/libnepomukwidgets.so
%{_includedir}/nepomuk2/
%{_libdir}/cmake/NepomukWidgets/
%files -n libnepomukwidgets4
%defattr(-,root,root)
%{_libdir}/libnepomukwidgets.so.*
%changelog