1
0
Stephan Kulow 2015-02-16 20:08:09 +00:00 committed by Git OBS Bridge
parent 53d96662da
commit 8710633a80
5 changed files with 50 additions and 9 deletions

View File

@ -0,0 +1,14 @@
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

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

View File

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Feb 9 21:22:35 UTC 2015 - sfalken@opensuse.org
- New upstream version 0.9.0
- Added -lang Subpackage
- Added Patch
+ fix_desktop_categories.patch to clear rpmlint warnings
-------------------------------------------------------------------
Mon Jan 26 00:11:53 UTC 2015 - sfalken@opensuse.org

View File

@ -17,20 +17,26 @@
Name: lxqt-powermanagement
Version: 0.8.0
Version: 0.9.0
Release: 0
Summary: Power Management and Auto-suspend
License: LGPL-2.1+
Group: System/GUI/LXDE-Qt
Url: http://www.lxde.org
Source: %{name}-%{version}.tar.xz
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: fdupes
BuildRequires: gcc-c++
BuildRequires: kwindowsystem-devel
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Xdg)
BuildRequires: pkgconfig(lxqt-qt5) >= 0.8.0
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Xdg)
BuildRequires: pkgconfig(lxqt) >= %{version}
BuildRequires: pkgconfig(xcb)
Requires(pre): desktop-file-utils
Requires(post): desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -38,14 +44,22 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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
%prep
%setup -q
%patch0 -p1
%build
mkdir build
pushd build
cmake \
-DUSE_QT5=ON \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
..
%__make %{?_smp_mflags}
@ -55,6 +69,7 @@ popd
pushd build
make DESTDIR=$RPM_BUILD_ROOT install
popd
%fdupes -s %{buildroot}%{_datadir}
%post
%desktop_database_post
@ -72,4 +87,8 @@ popd
%dir %{_datadir}/icons/hicolor/scalable/devices
%{_datadir}/icons/hicolor/scalable/devices/*.svg
%files -n %{name}-lang
%defattr(-,root,root)
%{_datadir}/lxqt/translations
%changelog