forked from pool/lxqt-powermanagement
Accepting request 284981 from X11:lxde
1 OBS-URL: https://build.opensuse.org/request/show/284981 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lxqt-powermanagement?expand=0&rev=3
This commit is contained in:
parent
53d96662da
commit
8710633a80
14
fix_desktop_categories.patch
Normal file
14
fix_desktop_categories.patch
Normal 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
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:eb2605326c0598331e0c84624e319ef574c6dffc73d0bbc21782cb61a468d40c
|
|
||||||
size 30236
|
|
3
lxqt-powermanagement-0.9.0.tar.xz
Normal file
3
lxqt-powermanagement-0.9.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4602de9a9976307a74568cc729c6970c73dc06be5f972ade21eea6afb0c3006b
|
||||||
|
size 36292
|
@ -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
|
Mon Jan 26 00:11:53 UTC 2015 - sfalken@opensuse.org
|
||||||
|
|
||||||
|
@ -17,20 +17,26 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: lxqt-powermanagement
|
Name: lxqt-powermanagement
|
||||||
Version: 0.8.0
|
Version: 0.9.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Power Management and Auto-suspend
|
Summary: Power Management and Auto-suspend
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: System/GUI/LXDE-Qt
|
Group: System/GUI/LXDE-Qt
|
||||||
Url: http://www.lxde.org
|
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: cmake
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: kwindowsystem-devel
|
||||||
|
BuildRequires: libQt5Gui-private-headers-devel
|
||||||
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
BuildRequires: pkgconfig(Qt5Svg)
|
BuildRequires: pkgconfig(Qt5Svg)
|
||||||
BuildRequires: pkgconfig(Qt5Xdg)
|
|
||||||
BuildRequires: pkgconfig(lxqt-qt5) >= 0.8.0
|
|
||||||
BuildRequires: pkgconfig(xcb)
|
|
||||||
BuildRequires: pkgconfig(Qt5UiTools)
|
BuildRequires: pkgconfig(Qt5UiTools)
|
||||||
|
BuildRequires: pkgconfig(Qt5Xdg)
|
||||||
|
BuildRequires: pkgconfig(lxqt) >= %{version}
|
||||||
|
BuildRequires: pkgconfig(xcb)
|
||||||
Requires(pre): desktop-file-utils
|
Requires(pre): desktop-file-utils
|
||||||
Requires(post): desktop-file-utils
|
Requires(post): desktop-file-utils
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -38,14 +44,22 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
%description
|
%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
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
pushd build
|
pushd build
|
||||||
cmake \
|
cmake \
|
||||||
-DUSE_QT5=ON \
|
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||||
..
|
..
|
||||||
%__make %{?_smp_mflags}
|
%__make %{?_smp_mflags}
|
||||||
@ -55,6 +69,7 @@ popd
|
|||||||
pushd build
|
pushd build
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
popd
|
popd
|
||||||
|
%fdupes -s %{buildroot}%{_datadir}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%desktop_database_post
|
%desktop_database_post
|
||||||
@ -72,4 +87,8 @@ popd
|
|||||||
%dir %{_datadir}/icons/hicolor/scalable/devices
|
%dir %{_datadir}/icons/hicolor/scalable/devices
|
||||||
%{_datadir}/icons/hicolor/scalable/devices/*.svg
|
%{_datadir}/icons/hicolor/scalable/devices/*.svg
|
||||||
|
|
||||||
|
%files -n %{name}-lang
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_datadir}/lxqt/translations
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user