osc copypac from project:KDE:Unstable:Frameworks package:powerdevil5 revision:37

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/powerdevil5?expand=0&rev=1
This commit is contained in:
Hrvoje Senjan
2014-06-06 19:13:19 +00:00
committed by Git OBS Bridge
commit 630fdcd069
7 changed files with 247 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

12
_service Normal file
View File

@@ -0,0 +1,12 @@
<services>
<service name="tar_scm">
<param name="url">git://anongit.kde.org/powerdevil.git</param>
<param name="scm">git</param>
<param name="versionformat">4.95.0~%cd~%h</param>
</service>
<service name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version"/>
</services>

View File

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

View File

@@ -0,0 +1,90 @@
#
# spec file for package powerdevil5
#
# Copyright (c) 2014 SUSE LINUX Products 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: powerdevil5
Version: 4.95.0~20140606~91225ea
Release: 0
Summary: Provides the interface and basic tools for the KDE workspace
License: LGPL-2.0+
Group: System/GUI/KDE
Url: git://anongit.kde.org/kde-workspace.git
Source0: powerdevil-%{version}.tar.xz
Patch0: soversion.diff
BuildRequires: plasma-workspace5-devel
BuildRequires: kf5-filesystem
BuildRequires: kauth-devel
BuildRequires: kidletime-devel
BuildRequires: kconfig-devel
BuildRequires: solid-devel
BuildRequires: ki18n-devel
BuildRequires: kglobalaccel-devel
BuildRequires: kio-devel
BuildRequires: kwindowsystem-devel
BuildRequires: plasma-framework-devel
BuildRequires: knotifyconfig-devel
BuildRequires: kdelibs4support-devel
BuildRequires: pkgconfig(libudev)
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0
BuildRequires: pkgconfig(x11)
BuildRequires: libxcb-devel
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-icccm)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides the interface and basic tools for the KDE workspace.
%prep
%setup -q -n powerdevil-%{version}
%patch0 -p1
%build
%cmake_kf5 -d build -- -DCMAKE_MODULE_PATH=/opt/kf5/%{_lib}/cmake -DCMAKE_PREFIX_PATH=/opt/kf5/%{_lib}/cmake
%make_jobs
%install
%kf5_makeinstall -C build
rm -rfv %buildroot/etc/dbus-1/
rm -rfv %buildroot/usr/share/dbus-1/
rm -rfv %buildroot/usr/share/polkit-1/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kf5_libdir}/libexec/kauth/
%{_kf5_libdir}/libpowerdevilconfigcommonprivate.so.*
%exclude %{_kf5_libdir}/libpowerdevilconfigcommonprivate.so
%{_kf5_libdir}/libpowerdevilcore.so.*
%exclude %{_kf5_libdir}/libpowerdevilcore.so
%{_kf5_libdir}/libpowerdevilui.so.*
%exclude %{_kf5_libdir}/libpowerdevilui.so
%{_kf5_plugindir}/
%{_kf5_notifydir}/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%changelog

90
powerdevil5.spec Normal file
View File

@@ -0,0 +1,90 @@
#
# spec file for package powerdevil5
#
# Copyright (c) 2014 SUSE LINUX Products 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: powerdevil5
Version: 4.95.0~git
Release: 0
Summary: Provides the interface and basic tools for the KDE workspace
License: LGPL-2.0+
Group: System/GUI/KDE
Url: git://anongit.kde.org/kde-workspace.git
Source0: powerdevil-%{version}.tar.xz
Patch0: soversion.diff
BuildRequires: plasma-workspace5-devel
BuildRequires: kf5-filesystem
BuildRequires: kauth-devel
BuildRequires: kidletime-devel
BuildRequires: kconfig-devel
BuildRequires: solid-devel
BuildRequires: ki18n-devel
BuildRequires: kglobalaccel-devel
BuildRequires: kio-devel
BuildRequires: kwindowsystem-devel
BuildRequires: plasma-framework-devel
BuildRequires: knotifyconfig-devel
BuildRequires: kdelibs4support-devel
BuildRequires: pkgconfig(libudev)
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0
BuildRequires: pkgconfig(x11)
BuildRequires: libxcb-devel
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-icccm)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides the interface and basic tools for the KDE workspace.
%prep
%setup -q -n powerdevil-%{version}
%patch0 -p1
%build
%cmake_kf5 -d build -- -DCMAKE_MODULE_PATH=/opt/kf5/%{_lib}/cmake -DCMAKE_PREFIX_PATH=/opt/kf5/%{_lib}/cmake
%make_jobs
%install
%kf5_makeinstall -C build
rm -rfv %buildroot/etc/dbus-1/
rm -rfv %buildroot/usr/share/dbus-1/
rm -rfv %buildroot/usr/share/polkit-1/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kf5_libdir}/libexec/kauth/
%{_kf5_libdir}/libpowerdevilconfigcommonprivate.so.*
%exclude %{_kf5_libdir}/libpowerdevilconfigcommonprivate.so
%{_kf5_libdir}/libpowerdevilcore.so.*
%exclude %{_kf5_libdir}/libpowerdevilcore.so
%{_kf5_libdir}/libpowerdevilui.so.*
%exclude %{_kf5_libdir}/libpowerdevilui.so
%{_kf5_plugindir}/
%{_kf5_notifydir}/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%changelog

28
soversion.diff Normal file
View File

@@ -0,0 +1,28 @@
diff --git a/daemon/BackendConfig.cmake b/daemon/BackendConfig.cmake
index 54094e0..c9e4dc5 100644
--- a/daemon/BackendConfig.cmake
+++ b/daemon/BackendConfig.cmake
@@ -18,6 +18,8 @@ if (UDEV_FOUND)
backends/upower/udevqtdevice.cpp
)
+ add_definitions(-DHAVE_UDEV)
+
set_source_files_properties(
${CMAKE_CURRENT_SOURCE_DIR}/backends/upower/dbus/org.freedesktop.UPower.xml
${CMAKE_CURRENT_SOURCE_DIR}/backends/upower/dbus/org.freedesktop.UPower.Device.xml
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt
index cdb0d82..d2ae8c1 100644
--- a/daemon/CMakeLists.txt
+++ b/daemon/CMakeLists.txt
@@ -3,8 +3,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
add_subdirectory(actions)
-set(POWERDEVIL_CORE_VERSION_MAJOR 1)
-set(POWERDEVIL_CORE_VERSION_MINOR 1)
+set(POWERDEVIL_CORE_VERSION_MAJOR 2)
+set(POWERDEVIL_CORE_VERSION_MINOR 0)
set(POWERDEVIL_CORE_VERSION_MICRO 0)
set(POWERDEVIL_CORE_VERSION_STRING ${POWERDEVIL_CORE_VERSION_MAJOR}.${POWERDEVIL_CORE_VERSION_MINOR}.${POWERDEVIL_CORE_VERSION_MICRO})