Files
powerdevil5/powerdevil5.spec

91 lines
2.8 KiB
RPMSpec

#
# spec file for package powerdevil5
#
# Copyright (c) 2014 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/
#
Name: powerdevil5
Version: 4.95.0~git
Release: 0
Summary: Provides the interface and basic tools for the KDE workspace
License: LGPL-2.0+
Group: System/GUI/KDE
Url: git://anongit.kde.org/kde-workspace.git
Source0: powerdevil-%{version}.tar.xz
Patch0: soversion.diff
BuildRequires: plasma-workspace5-devel
BuildRequires: kf5-filesystem
BuildRequires: kauth-devel
BuildRequires: kidletime-devel
BuildRequires: kconfig-devel
BuildRequires: solid-devel
BuildRequires: ki18n-devel
BuildRequires: kglobalaccel-devel
BuildRequires: kio-devel
BuildRequires: kwindowsystem-devel
BuildRequires: plasma-framework-devel
BuildRequires: knotifyconfig-devel
BuildRequires: kdelibs4support-devel
BuildRequires: pkgconfig(libudev)
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0
BuildRequires: pkgconfig(x11)
BuildRequires: libxcb-devel
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-icccm)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides the interface and basic tools for the KDE workspace.
%prep
%setup -q -n powerdevil-%{version}
%patch0 -p1
%build
%cmake_kf5 -d build -- -DCMAKE_MODULE_PATH=/opt/kf5/%{_lib}/cmake -DCMAKE_PREFIX_PATH=/opt/kf5/%{_lib}/cmake
%make_jobs
%install
%kf5_makeinstall -C build
rm -rfv %buildroot/etc/dbus-1/
rm -rfv %buildroot/usr/share/dbus-1/
rm -rfv %buildroot/usr/share/polkit-1/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kf5_libdir}/libexec/kauth/
%{_kf5_libdir}/libpowerdevilconfigcommonprivate.so.*
%exclude %{_kf5_libdir}/libpowerdevilconfigcommonprivate.so
%{_kf5_libdir}/libpowerdevilcore.so.*
%exclude %{_kf5_libdir}/libpowerdevilcore.so
%{_kf5_libdir}/libpowerdevilui.so.*
%exclude %{_kf5_libdir}/libpowerdevilui.so
%{_kf5_plugindir}/
%{_kf5_notifydir}/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%changelog