2014-11-15 11:41:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package lxqt-powermanagement
|
|
|
|
#
|
2023-04-19 16:51:08 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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.
|
|
|
|
|
2020-01-27 11:31:45 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-11-15 11:41:22 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: lxqt-powermanagement
|
2023-04-19 16:51:08 +02:00
|
|
|
Version: 1.3.0
|
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
|
2023-04-19 16:51:08 +02:00
|
|
|
BuildRequires: lxqt-build-tools-devel >= 0.13.0
|
2020-11-04 15:30:48 +01:00
|
|
|
BuildRequires: lxqt-globalkeys-devel
|
2018-05-22 17:11:45 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: cmake(KF5IdleTime)
|
2016-09-24 23:41:57 +02:00
|
|
|
BuildRequires: cmake(KF5Solid)
|
2020-11-04 14:44:55 +01:00
|
|
|
BuildRequires: cmake(KF5WindowSystem) >= 5.36.0
|
2020-11-04 15:30:48 +01:00
|
|
|
BuildRequires: cmake(Qt5LinguistTools)
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
2021-11-08 10:51:15 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Gui) >= 5.15.0
|
2015-02-03 11:39:35 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
2015-02-16 21:08:09 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5UiTools)
|
2020-11-04 15:30:48 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
2014-11-15 11:41:22 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Xdg)
|
2020-01-27 11:31:45 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2015-02-16 21:08:09 +01:00
|
|
|
BuildRequires: pkgconfig(lxqt) >= %{version}
|
2017-10-23 13:23:51 +02:00
|
|
|
#BuildRequires: pkgconfig(xcb)
|
2019-03-13 09:26:58 +01:00
|
|
|
Requires: upower
|
2020-11-04 14:44:55 +01:00
|
|
|
%requires_eq libQt5Gui5
|
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
|
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
|
|
|
|
%{_datadir}/icons/hicolor/scalable/devices/*.svg
|
2022-11-06 09:52:54 +01:00
|
|
|
%config %{_sysconfdir}/xdg/autostart/lxqt-powermanagement.desktop
|
2014-11-15 11:41:22 +01:00
|
|
|
|
2020-11-04 14:44:55 +01:00
|
|
|
%files lang -f %{name}.lang
|
2019-01-31 11:19:37 +01:00
|
|
|
%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
|