1
0
forked from pool/libksysguard5
Files
libksysguard5/_service:set_version:libksysguard5.spec

117 lines
3.6 KiB
RPMSpec

#
# spec file for package libksysguard5
#
# 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: libksysguard5
Version: 4.95.0~20140509~87ae01f
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: libksysguard-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: kconfig-devel
BuildRequires: kdelibs4support-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: plasma-framework-devel
BuildRequires: xz
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2.0
BuildRequires: pkgconfig(Qt5PrintSupport) >= 5.2.0
BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0
BuildRequires: pkgconfig(Qt5Quick) >= 5.2.0
BuildRequires: pkgconfig(Qt5Script) >= 5.2.0
BuildRequires: pkgconfig(Qt5Sensors) >= 5.2.0
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
BuildRequires: pkgconfig(Qt5WebKit) >= 5.2.0
BuildRequires: pkgconfig(Qt5WebKitWidgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(zlib)
#BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides the interface and basic tools for the KDE workspace.
%package devel
Summary: KDE Base Libraries
Group: System/GUI/KDE
Requires: %{name} = %{version}
Requires: pkgconfig(Qt5DBus) >= 5.2.0
%description devel
Provides the interface and basic tools for the KDE workspace.
%prep
%setup -q -n libksysguard-%{version}
%build
mkdir -p build
pushd build
cmake \
-DCMAKE_INSTALL_PREFIX=/opt/kf5 \
-DCMAKE_PREFIX_PATH=/opt/kf5 \
-DKDE_SKIP_RPATH_SETTINGS=ON \
-DKCFG_INSTALL_DIR=share/config.kcfg \
-DLIB_INSTALL_DIR=%{_lib} \
-DQT_PLUGIN_INSTALL_DIR=/opt/kf5/%{_lib}/qt5/plugins \
-DQML_INSTALL_DIR=/opt/kf5/%{_lib}/qt5/qml \
-DIMPORTS_INSTALL_DIR=/opt/kf5/%{_lib}/qt5/imports \
-DCMAKE_C_FLAGS="%{optflags}" \
-DCMAKE_CXX_FLAGS="%{optflags}" \
-DSYSCONF_INSTALL_DIR=etc ..
%make_jobs
%install
%kf5_makeinstall -C build
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir /opt/kf5
%dir /opt/kf5/%{_lib}
%dir /opt/kf5/share
/opt/kf5/%{_lib}/libksgrd.so.*
/opt/kf5/%{_lib}/liblsofui.so.*
/opt/kf5/%{_lib}/libksignalplotter.so.*
/opt/kf5/%{_lib}/libprocesscore.so.*
/opt/kf5/%{_lib}/libprocessui.so.*
/opt/kf5/share/ksysguard/
%files devel
%defattr(-,root,root)
%dir /opt/kf5/%{_lib}/cmake
/opt/kf5/include/
/opt/kf5/%{_lib}/cmake/KF5SysGuard/
/opt/kf5/%{_lib}/libksgrd.so
/opt/kf5/%{_lib}/libksignalplotter.so
/opt/kf5/%{_lib}/liblsofui.so
/opt/kf5/%{_lib}/libprocesscore.so
/opt/kf5/%{_lib}/libprocessui.so
%changelog