File vacuum-im-plugins-laptopsupport.spec of Package vacuum-im-plugins-laptopsupport

#
# spec file for package vacuum-im-plugins-laptopsupport
#
# Copyright (c) 2017 SUSE LINUX 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/
#

%define app_name vacuum-im
Name:           vacuum-im-plugins-laptopsupport
Version:        0.2.0
Release:        0
Summary:        Vacuum-im plugin watch for hibernate and resume system
License:        GPL-3.0
Group:          System/Libraries
Url:            http://www.vacuum-im.org/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  vacuum-im-devel
BuildRequires:  libqt5-qttools-devel
BuildRequires:  libQt5Core-devel libQt5DBus-devel libQt5Xml-devel libQt5Gui-devel
BuildRequires:  cmake xz
BuildRequires:  fdupes

%description


%prep
%setup -q -n %{name}

%build
%cmake \
	 -DINSTALL_LIB_DIR=%{_lib}\
	 -DINSTALL_APP_DIR=%{app_name}\
	 -DINSTALL_DOC_DIR=%{_defaultdocdir}\
	 -DVACUUM_LIB_PATH=%{_prefix}/%{_lib}\
	 -DVACUUM_SDK_PATH=%{_includedir}/%{app_name}
%{__make} %{?_smp_mflags}

%install
%cmake_install


%files
%defattr(-,root,root)
%{_libdir}/%{app_name}
%dir %{_libdir}/%{app_name}/plugins
%{_datadir}/%{app_name}

%changelog
openSUSE Build Service is sponsored by