lxqt-powermanagement/lxqt-powermanagement.spec
Michael Vetter b21be3551c Accepting request 684485 from home:DocB:branches:X11:LXQt
- Requires: upower added
- Update to 0.14.1:
  * Only translations was changed
- Update to 0.14.0:
  * Don't use automatic string conversions
  * Improved cmake scripting
    - set cmake_minimum_required to 3.1.0
    - removed locale compile definitons
  * Moved translations from lxqt-l10n back to lxqt-powermanagement
    - removed obsolete translation fuctionality
    - Added translation promo in README.md
  * Translation updates
- Move translation from lxqt-l10n into package
- Update to 0.13.0:
  * Add support for turning monitor(s) off
- Update to 0.12.0:
  * Set patch version
  * Spell check (add "," and "-")
  * Don't export github templates
  * Adding missing "Comment" section to .desktop files. Fix for https://github.com/lxde/lxqt/issues/1339
  * Added Lithuanian language
  * Drops Qt5Core_VERSION_STRING
  * lxqt-config-powermanagement: set Qt::AA_UseHighDpiPixmaps to true
  * Added QCommandLineParser and basic cli interface to lxqt-config-powermanagement and lxqt-powermanagement
  * Added default CMAKE_BUILD_TYPE and LXQT_POWERMANAGEMENT_PATCH_VERSION
  * added *pl.desktop
  * Fixes a FTBFS in superbuild mode
  * Added merged autostart to CMakeLists.txt
  * Updated *_da.desktop files and removed *_da_DK.desktop files
  * Update desktop entries and Replace fr_FR by fr
  * Move Italian desktop entry to correct path
  * Update Greek translation (el) Remove country variant from language code
  * Rename LxQt to LXQt everywhere
  * CMake: Adds Runtime and Devel install COMPONENTs
  * Coding style changes
  * Updates the build system to use the Targets infrastructure
  * Rename Power Management module name again
  * Rename LXQt Power Management module name
  * Drops hardcoded /etc/xdg paths
  * Updated german translation, replaced Qt4 by Qt in all xsession/translations
  * Portuguese update for .desktop files
  * Updates translations infrastructure
  * Update the required minimum cmake version
  * remove dead template lines switch OnlyShowIn from Razor -> LXQt stringchanges LxQt -> LXQt
  * Renamed lxqt-autosuspend.desktop.in --> lxqt-powermanagement.desktop.in
  * Support lxqt-session and add necessary xdg autostart desktop entry files.
  * Default to no action if the action is not specified in the config file
  * BatteryWatcher: Fix indentation
  * Bump year
- Remove post and postun
- Update to 0.11.1:
  * Add lxqt-config-powermanagement_da.desktop
  * Create lxqt-config-powermanagement_fr.desktop
  * Make CMakeLists.txt more uniform.
  * Remove cpack (#43)
- Update to 0.11.0:
  * README.md: Replace dependency XCB with KIdleTime
  * Idleness Watcher: rely on KIdleTime instead of XCB (#33)
  * fix indents
  * Update and extend README.md
  * Add Catalan translation
  * Add Arabic Translation for Desktop File
  * I18N: Fix Plural Strings (#38)
  * Removes the QEventLoop from the Watcher class
  * build: Use external translations
  * ts-files removal (#34)
  * Bump year Fix licenses, lxqt-powermanagement is LGPL only
  * Fix source language in Italian translation file
  * Italian translation update
  * Update Russian translation Remove ru_RU files
  * Fix typo in Greek translation
  * update: lxqt-powermanagement_hu.ts
  * Add German translation
- Add keyring
- Remove BuildRequirs pkgconfig(xcb), got replaced by KF5IdleTime
- Upstream release 0.10.0
- Removing patches:
 * fix_desktop_categories.patch - Using sed in spec file now.
- lxqt-powermanagement is using private QPA API, which can, and
  does break BC even in point releases, so we need to hardcode
  libQt5Gui5 version
- Changed %build and %install to use cmake macros 
- New upstream version 0.9.0
- Added -lang Subpackage
- Added Patch
  + fix_desktop_categories.patch to clear rpmlint warnings
- Added conditionals to enable Fedora builds 
- Added license and other documentation
- new upstream version 0.8.0 
- Specfile and Patch cleanup 
- removed fedora spec, split into subproject
  Del:  lxqt-powermanagement-Fedora_20.spec 
- Ran spec-cleaner on openSUSE spec 
- Added specfile for Fedora_20
  Add:  lxqt-powermanagement-Fedora_20.spec 
- Added patch to fix random data error in idlenesswatcher.cpp
  Add:  0003-fix_idlenesswatcher_cpp.patch 
- Added patches to fix bad includes in sources
  Add:  0001-fix_lid_cpp.patch
  Add:  0002-fix_lidwatcher_cpp.patch 
- Added tarball for new stable release
  Add:  lxqt-powermanagement-0.7.0.tar.xz
  Del:  _service 
- Initial Source Upload
  Add: _service
  Add: lxqt-powermanagement.spec
  Add: lxqt-powermanagement.changes

OBS-URL: https://build.opensuse.org/request/show/684485
OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-powermanagement?expand=0&rev=13
2019-03-13 08:26:58 +00:00

86 lines
2.7 KiB
RPMSpec

#
# spec file for package lxqt-powermanagement
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: lxqt-powermanagement
Version: 0.14.1
Release: 0
Summary: Power Management and Auto-suspend
License: LGPL-2.1-or-later
Group: System/GUI/LXQt
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
Source2: %{name}.keyring
BuildRequires: cmake >= 3.1.0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: lxqt-build-tools-devel >= 0.6.0
BuildRequires: pkgconfig
BuildRequires: cmake(KF5IdleTime)
BuildRequires: cmake(KF5Solid)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Xdg)
BuildRequires: pkgconfig(lxqt) >= %{version}
%requires_eq libQt5Gui5
#BuildRequires: pkgconfig(xcb)
Requires: upower
Recommends: %{name}-lang
%description
LXQt daemon for power management and auto-suspend
%lang_package
%prep
%setup -q
# 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 -DPULL_TRANSLATIONS=No
make %{?_smp_mflags}
%install
%cmake_install
%fdupes -s %{buildroot}%{_datadir}
%find_lang %{name} --with-qt
%files
%license LICENSE
%doc AUTHORS README.md
%{_bindir}/lxqt*
%{_datadir}/applications/*.desktop
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/devices
%{_datadir}/icons/hicolor/scalable/devices/*.svg
%{_sysconfdir}/xdg/autostart/lxqt-powermanagement.desktop
%files lang -f %{name}.lang
%dir %{_datadir}/lxqt
%dir %{_datadir}/lxqt/translations
%{_datadir}/lxqt/translations/lxqt-powermanagement
%{_datadir}/lxqt/translations/lxqt-config-powermanagement
%changelog