2014-11-15 11:41:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package lxqt-powermanagement
|
|
|
|
#
|
2019-01-31 11:19:37 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-11-15 11:41:22 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-01 10:58:24 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2014-11-15 11:41:22 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: lxqt-powermanagement
|
2019-03-01 10:58:24 +01:00
|
|
|
Version: 0.14.1
|
2014-11-15 11:41:22 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Power Management and Auto-suspend
|
2018-05-22 17:11:45 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2016-09-24 23:41:57 +02:00
|
|
|
Group: System/GUI/LXQt
|
2018-05-22 17:11:45 +02:00
|
|
|
URL: http://www.lxqt.org
|
|
|
|
Source: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
|
2016-09-24 23:41:57 +02:00
|
|
|
Source2: %{name}.keyring
|
2019-01-31 11:19:37 +01:00
|
|
|
BuildRequires: cmake >= 3.1.0
|
2015-02-16 21:08:09 +01:00
|
|
|
BuildRequires: fdupes
|
2014-11-15 11:41:22 +01:00
|
|
|
BuildRequires: gcc-c++
|
2015-02-16 21:08:09 +01:00
|
|
|
BuildRequires: libQt5Gui-private-headers-devel
|
2019-01-31 11:19:37 +01:00
|
|
|
BuildRequires: lxqt-build-tools-devel >= 0.6.0
|
2018-05-22 17:11:45 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: cmake(KF5IdleTime)
|
2016-09-24 23:41:57 +02:00
|
|
|
BuildRequires: cmake(KF5Solid)
|
2018-05-22 17:11:45 +02:00
|
|
|
BuildRequires: cmake(KF5WindowSystem)
|
2015-02-16 21:08:09 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
2015-02-03 11:39:35 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
2015-02-16 21:08:09 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5UiTools)
|
2014-11-15 11:41:22 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Xdg)
|
2015-02-16 21:08:09 +01:00
|
|
|
BuildRequires: pkgconfig(lxqt) >= %{version}
|
2018-05-22 17:11:45 +02:00
|
|
|
%requires_eq libQt5Gui5
|
2017-10-23 13:23:51 +02:00
|
|
|
#BuildRequires: pkgconfig(xcb)
|
2016-09-24 23:41:57 +02:00
|
|
|
Recommends: %{name}-lang
|
2014-11-15 11:41:22 +01:00
|
|
|
|
|
|
|
%description
|
2016-09-24 23:41:57 +02:00
|
|
|
LXQt daemon for power management and auto-suspend
|
2015-02-16 21:08:09 +01:00
|
|
|
|
2019-01-31 11:19:37 +01:00
|
|
|
%lang_package
|
|
|
|
|
2014-11-15 11:41:22 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-11-13 23:35:38 +01:00
|
|
|
# Changing LXQt into X-LXQt in desktop files to be freedesktop compliant and shut rpmlint warnings
|
|
|
|
#find -name '*desktop.in*' -exec sed -ri 's/(LXQt;)/X-\1/' {} +
|
2014-11-15 11:41:22 +01:00
|
|
|
|
|
|
|
%build
|
2016-09-24 23:41:57 +02:00
|
|
|
%cmake -DPULL_TRANSLATIONS=No
|
2015-11-13 23:35:38 +01:00
|
|
|
make %{?_smp_mflags}
|
2014-11-15 11:41:22 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-25 02:17:24 +01:00
|
|
|
%cmake_install
|
2015-02-16 21:08:09 +01:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}
|
2014-11-15 11:41:22 +01:00
|
|
|
|
2019-01-31 11:19:37 +01:00
|
|
|
%find_lang %{name} --with-qt
|
|
|
|
|
2014-11-15 11:41:22 +01:00
|
|
|
%files
|
2018-05-22 17:11:45 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS README.md
|
2014-11-15 11:41:22 +01:00
|
|
|
%{_bindir}/lxqt*
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%dir %{_datadir}/icons/hicolor
|
|
|
|
%dir %{_datadir}/icons/hicolor/scalable
|
|
|
|
%dir %{_datadir}/icons/hicolor/scalable/devices
|
|
|
|
%{_datadir}/icons/hicolor/scalable/devices/*.svg
|
2017-10-23 13:23:51 +02:00
|
|
|
%{_sysconfdir}/xdg/autostart/lxqt-powermanagement.desktop
|
2014-11-15 11:41:22 +01:00
|
|
|
|
2019-01-31 11:19:37 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%dir %{_datadir}/lxqt
|
|
|
|
%dir %{_datadir}/lxqt/translations
|
|
|
|
%{_datadir}/lxqt/translations/lxqt-powermanagement
|
|
|
|
%{_datadir}/lxqt/translations/lxqt-config-powermanagement
|
|
|
|
|
2014-11-15 11:41:22 +01:00
|
|
|
%changelog
|