From 8710633a80c54dbcf2c95b59fd086798af1b98e9e1161a0df36b81bd16fff1e8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 16 Feb 2015 20:08:09 +0000 Subject: [PATCH] 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 --- fix_desktop_categories.patch | 14 ++++++++++++++ lxqt-powermanagement-0.8.0.tar.xz | 3 --- lxqt-powermanagement-0.9.0.tar.xz | 3 +++ lxqt-powermanagement.changes | 8 ++++++++ lxqt-powermanagement.spec | 31 +++++++++++++++++++++++++------ 5 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 fix_desktop_categories.patch delete mode 100644 lxqt-powermanagement-0.8.0.tar.xz create mode 100644 lxqt-powermanagement-0.9.0.tar.xz diff --git a/fix_desktop_categories.patch b/fix_desktop_categories.patch new file mode 100644 index 0000000..59e685d --- /dev/null +++ b/fix_desktop_categories.patch @@ -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 diff --git a/lxqt-powermanagement-0.8.0.tar.xz b/lxqt-powermanagement-0.8.0.tar.xz deleted file mode 100644 index 5386b02..0000000 --- a/lxqt-powermanagement-0.8.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb2605326c0598331e0c84624e319ef574c6dffc73d0bbc21782cb61a468d40c -size 30236 diff --git a/lxqt-powermanagement-0.9.0.tar.xz b/lxqt-powermanagement-0.9.0.tar.xz new file mode 100644 index 0000000..d2dad12 --- /dev/null +++ b/lxqt-powermanagement-0.9.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4602de9a9976307a74568cc729c6970c73dc06be5f972ade21eea6afb0c3006b +size 36292 diff --git a/lxqt-powermanagement.changes b/lxqt-powermanagement.changes index cde7114..f1b133e 100644 --- a/lxqt-powermanagement.changes +++ b/lxqt-powermanagement.changes @@ -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 diff --git a/lxqt-powermanagement.spec b/lxqt-powermanagement.spec index fed26dc..1b56120 100644 --- a/lxqt-powermanagement.spec +++ b/lxqt-powermanagement.spec @@ -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