commit 630fdcd06928aa03bf8fa58e3f211cbb68e7431e42c6e6b0f63eae23136f8960 Author: Hrvoje Senjan Date: Fri Jun 6 19:13:19 2014 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..3664f7f --- /dev/null +++ b/_service @@ -0,0 +1,12 @@ + + + git://anongit.kde.org/powerdevil.git + git + 4.95.0~%cd~%h + + + *.tar + xz + + + \ No newline at end of file diff --git a/_service:recompress:tar_scm:powerdevil-4.95.0~20140606~91225ea.tar.xz b/_service:recompress:tar_scm:powerdevil-4.95.0~20140606~91225ea.tar.xz new file mode 100644 index 0000000..71cd9e0 --- /dev/null +++ b/_service:recompress:tar_scm:powerdevil-4.95.0~20140606~91225ea.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c7f3dae81a0863bfe0a5d2efda616a34baffa87e5f6b648db740c71af69569b +size 275628 diff --git a/_service:set_version:powerdevil5.spec b/_service:set_version:powerdevil5.spec new file mode 100644 index 0000000..35a226e --- /dev/null +++ b/_service:set_version:powerdevil5.spec @@ -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 diff --git a/powerdevil5.spec b/powerdevil5.spec new file mode 100644 index 0000000..680a2f7 --- /dev/null +++ b/powerdevil5.spec @@ -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 diff --git a/soversion.diff b/soversion.diff new file mode 100644 index 0000000..0aa4d66 --- /dev/null +++ b/soversion.diff @@ -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}) +