Dominique Leuenberger 2015-11-13 22:35:38 +00:00 committed by Git OBS Bridge
parent f92922cf74
commit 1e5cbf6c8a
5 changed files with 19 additions and 32 deletions

View File

@ -1,14 +0,0 @@
Index: lxqt-powermanagement-0.9.0/config/lxqt-config-powermanagement.desktop.in
===================================================================
--- lxqt-powermanagement-0.9.0.orig/config/lxqt-config-powermanagement.desktop.in
+++ lxqt-powermanagement-0.9.0/config/lxqt-config-powermanagement.desktop.in
@@ -4,7 +4,7 @@ Name=Power Management
GenericName=Power Management Settings
Exec=lxqt-config-powermanagement
Icon=preferences-system-power-management
-Categories=Settings;DesktopSettings;Qt;LXQt;
-OnlyShowIn=LXQt;LXDE;
+Categories=Settings;DesktopSettings;Qt;X-LXQt;
+OnlyShowIn=X-LXQt;LXDE;
#TRANSLATIONS_DIR=translations

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:85f67c1ee443f7a028a2bd63b9430fc55823a0cb9ce33cd23d97ccba31e05aa9
size 39036

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4602de9a9976307a74568cc729c6970c73dc06be5f972ade21eea6afb0c3006b
size 36292

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Nov 6 16:25:33 UTC 2015 - mvetter@suse.com
- Upstream release 0.10.0
- Removing patches:
* fix_desktop_categories.patch - Using sed in spec file now.
-------------------------------------------------------------------
Sat Feb 21 18:01:24 UTC 2015 - hrvoje.senjan@gmail.com

View File

@ -17,20 +17,19 @@
Name: lxqt-powermanagement
Version: 0.9.0
Version: 0.10.0
Release: 0
Summary: Power Management and Auto-suspend
License: LGPL-2.1+
Group: System/GUI/LXDE-Qt
Url: http://www.lxde.org
Source: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE fix_desktop_categories.patch sfalken@opensuse.org -- Fix desktop categories
Patch0: fix_desktop_categories.patch
BuildRequires: cmake
BuildRequires: cmake >= 3.0.2
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: kwindowsystem-devel
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: solid-devel
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5UiTools)
@ -43,23 +42,18 @@ Requires(post): desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Lxqt daemon for power management and Auto-suspend
LXQt daemon for power management and Auto-suspend
%package -n %{name}-lang
Summary: Translations for lxqt-powermanagement
Group: System/GUI/LXDE-Qt
Requires: %{name} = %{version}
%description -n %{name}-lang
Translation files for lxqt-powermanagement
%lang_package
%prep
%setup -q
%patch0 -p1
# 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/' {} +
%build
%cmake
%__make %{?_smp_mflags}
make %{?_smp_mflags}
%install
%cmake_install
@ -81,7 +75,7 @@ Translation files for lxqt-powermanagement
%dir %{_datadir}/icons/hicolor/scalable/devices
%{_datadir}/icons/hicolor/scalable/devices/*.svg
%files -n %{name}-lang
%files lang
%defattr(-,root,root)
%{_datadir}/lxqt/translations