parent
8d4752ace4
commit
c20c47d888
@ -0,0 +1 @@
|
|||||||
|
/kauth-4.100.0.tar.xz
|
@ -0,0 +1,94 @@
|
|||||||
|
diff --git a/cmake/FindPolkitQt-1.cmake b/cmake/FindPolkitQt-1.cmake
|
||||||
|
index 4e90537..6503ec1 100644
|
||||||
|
--- a/cmake/FindPolkitQt-1.cmake
|
||||||
|
+++ b/cmake/FindPolkitQt-1.cmake
|
||||||
|
@@ -23,15 +23,16 @@ if ( NOT PolkitQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION )
|
||||||
|
endif ( NOT PolkitQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION )
|
||||||
|
|
||||||
|
set( _PolkitQt-1_FIND_QUIETLY ${PolkitQt-1_FIND_QUIETLY} )
|
||||||
|
-find_package( PolkitQt-1 ${PolkitQt-1_FIND_VERSION} QUIET NO_MODULE PATHS ${LIB_INSTALL_DIR}/PolkitQt-1/cmake )
|
||||||
|
+find_package( PolkitQt5-1 ${PolkitQt-1_FIND_VERSION} QUIET NO_MODULE PATHS ${LIB_INSTALL_DIR}/PolkitQt5-1/cmake )
|
||||||
|
set( PolkitQt-1_FIND_QUIETLY ${_PolkitQt-1_FIND_QUIETLY} )
|
||||||
|
|
||||||
|
+
|
||||||
|
include( FindPackageHandleStandardArgs )
|
||||||
|
-find_package_handle_standard_args( PolkitQt-1 DEFAULT_MSG PolkitQt-1_CONFIG )
|
||||||
|
+find_package_handle_standard_args( PolkitQt5-1 DEFAULT_MSG PolkitQt5-1_CONFIG )
|
||||||
|
|
||||||
|
-if (POLKITQT-1_FOUND)
|
||||||
|
+if (POLKITQT5-1_FOUND)
|
||||||
|
if (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
|
||||||
|
message("WARNING: Installation prefix does not match PolicyKit install prefixes. You probably will need to move files installed "
|
||||||
|
"in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the ${PC_POLKITQT-1_PREFIX} prefix")
|
||||||
|
endif (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
|
||||||
|
-endif (POLKITQT-1_FOUND)
|
||||||
|
+endif (POLKITQT5-1_FOUND)
|
||||||
|
diff --git a/src/ConfigureChecks.cmake b/src/ConfigureChecks.cmake
|
||||||
|
index f3dc6a6..6042b97 100644
|
||||||
|
--- a/src/ConfigureChecks.cmake
|
||||||
|
+++ b/src/ConfigureChecks.cmake
|
||||||
|
@@ -14,19 +14,19 @@ if(NOT KAUTH_BACKEND)
|
||||||
|
if (APPLE)
|
||||||
|
set (KAUTH_BACKEND "OSX")
|
||||||
|
elseif (UNIX)
|
||||||
|
- find_package(PolkitQt-1 0.99.0)
|
||||||
|
+ find_package(PolkitQt5-1 0.103.0)
|
||||||
|
|
||||||
|
- if (PolkitQt-1_FOUND)
|
||||||
|
+ if (PolkitQt5-1_FOUND)
|
||||||
|
set (KAUTH_BACKEND "PolkitQt-1")
|
||||||
|
|
||||||
|
- set_package_properties(PolkitQt-1 PROPERTIES
|
||||||
|
+ set_package_properties(PolkitQt5-1 PROPERTIES
|
||||||
|
URL "http://techbase.kde.org/Polkit-Qt-1"
|
||||||
|
DESCRIPTION "PolicyKit API for Qt"
|
||||||
|
TYPE RECOMMENDED
|
||||||
|
PURPOSE "Support for executing priviledged actions in a controlled way (KAuth)"
|
||||||
|
)
|
||||||
|
|
||||||
|
- else (PolkitQt-1_FOUND)
|
||||||
|
+ else (PolkitQt5-1_FOUND)
|
||||||
|
find_package(PolkitQt)
|
||||||
|
|
||||||
|
if (POLKITQT_FOUND)
|
||||||
|
@@ -40,7 +40,7 @@ if(NOT KAUTH_BACKEND)
|
||||||
|
|
||||||
|
else (POLKITQT_FOUND)
|
||||||
|
# Nothing was found: notify and log the missing features
|
||||||
|
- set_package_properties(PolkitQt-1 PROPERTIES
|
||||||
|
+ set_package_properties(PolkitQt5-1 PROPERTIES
|
||||||
|
URL "http://techbase.kde.org/Polkit-Qt-1"
|
||||||
|
DESCRIPTION "PolicyKit API for Qt"
|
||||||
|
TYPE RECOMMENDED
|
||||||
|
@@ -54,7 +54,7 @@ if(NOT KAUTH_BACKEND)
|
||||||
|
)
|
||||||
|
set (KAUTH_BACKEND "Fake")
|
||||||
|
endif (POLKITQT_FOUND)
|
||||||
|
- endif (PolkitQt-1_FOUND)
|
||||||
|
+ endif (PolkitQt5-1_FOUND)
|
||||||
|
else(UNIX)
|
||||||
|
set (KAUTH_BACKEND "Fake")
|
||||||
|
endif(APPLE)
|
||||||
|
@@ -94,18 +94,18 @@ else(NOT KAUTH_BACKEND)
|
||||||
|
endif (NOT POLKITQT_FOUND)
|
||||||
|
endif (KAUTH_BACKEND STREQUAL "POLKITQT")
|
||||||
|
if (KAUTH_BACKEND STREQUAL "POLKITQT-1")
|
||||||
|
- find_package(PolkitQt-1 0.99.0)
|
||||||
|
- set_package_properties(PolkitQt-1 PROPERTIES
|
||||||
|
+ find_package(PolkitQt5-1 0.103.0)
|
||||||
|
+ set_package_properties(PolkitQt5-1 PROPERTIES
|
||||||
|
URL "http://techbase.kde.org/Polkit-Qt-1"
|
||||||
|
DESCRIPTION "PolicyKit API for Qt"
|
||||||
|
TYPE RECOMMENDED
|
||||||
|
PURPOSE "Support for executing priviledged actions in a controlled way (KAuth). Either this or PolkitQt is required to make KAuth work, and hence enable certain workspace functionalities"
|
||||||
|
)
|
||||||
|
- if (NOT POLKITQT-1_FOUND)
|
||||||
|
+ if (NOT POLKITQT5-1_FOUND)
|
||||||
|
message ("WARNING: You chose the PolkitQt-1 KAuth backend but you don't have PolkitQt-1 installed.
|
||||||
|
Falling back to Fake backend")
|
||||||
|
set (KAUTH_BACKEND "FAKE")
|
||||||
|
- endif (NOT POLKITQT-1_FOUND)
|
||||||
|
+ endif (NOT POLKITQT5-1_FOUND)
|
||||||
|
endif (KAUTH_BACKEND STREQUAL "POLKITQT-1")
|
||||||
|
endif(NOT KAUTH_BACKEND)
|
||||||
|
|
@ -0,0 +1,114 @@
|
|||||||
|
#%define snapshot 20140205
|
||||||
|
%define framework kauth
|
||||||
|
|
||||||
|
Name: kf5-%{framework}
|
||||||
|
Version: 4.100.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: KDE Frameworks 5 Tier 2 integration module to perform actions as privileged user
|
||||||
|
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://www.kde.org
|
||||||
|
# git archive --format=tar --prefix=%{framework}-%{version}/ \
|
||||||
|
# --remote=git://anongit.kde.org/%{framework}.git master | \
|
||||||
|
# bzip2 -c > %{name}-%{version}-%{snapshot}git.tar.bz2
|
||||||
|
#Source0: %{name}-%{version}-%{snapshot}git.tar.bz2
|
||||||
|
Source0: http://download.kde.org/unstable/frameworks/%{version}/%{framework}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Patch0: kauth-find-polkit-qt5.patch
|
||||||
|
|
||||||
|
BuildRequires: polkit-qt5-1-devel
|
||||||
|
|
||||||
|
BuildRequires: kf5-rpm-macros
|
||||||
|
BuildRequires: extra-cmake-modules
|
||||||
|
BuildRequires: qt5-qtbase-devel
|
||||||
|
BuildRequires: qt5-qttools-devel
|
||||||
|
|
||||||
|
BuildRequires: kf5-kcoreaddons-devel
|
||||||
|
|
||||||
|
Requires: kf5-filesystem
|
||||||
|
|
||||||
|
%description
|
||||||
|
KAuth is a framework to let applications perform actions as a privileged user.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: kf5-kcoreaddons-devel
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{framework}-%{version}
|
||||||
|
|
||||||
|
%patch0 -p1 -b .polkitqt5
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir -p %{_target_platform}
|
||||||
|
pushd %{_target_platform}
|
||||||
|
|
||||||
|
# Remove once 9be07165 is fixed/explained
|
||||||
|
%{cmake_kf5} .. -DLIBEXEC_INSTALL_DIR=%{_kf5_libexecdir}
|
||||||
|
popd
|
||||||
|
|
||||||
|
make %{?_smp_mflags} -C %{_target_platform}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install -C %{_target_platform}
|
||||||
|
%find_lang kauth5_qt --with-qt --all-name
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files -f kauth5_qt.lang
|
||||||
|
%doc COPYING.LIB README.md
|
||||||
|
%{_kf5_libdir}/libKF5Auth.so.*
|
||||||
|
%config %{_kf5_sysconfdir}/dbus-1/system.d/*
|
||||||
|
%{_kf5_qtplugindir}/kauth/helper/kauth_helper_plugin.so
|
||||||
|
%{_kf5_qtplugindir}/kauth/backend/kauth_backend_plugin.so
|
||||||
|
%{_kf5_datadir}/kf5/kauth/
|
||||||
|
%{_kf5_libexecdir}/kauth/kauth-policy-gen
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_kf5_includedir}/kauth_version.h
|
||||||
|
%{_kf5_includedir}/KAuth
|
||||||
|
%{_kf5_libdir}/libKF5Auth.so
|
||||||
|
%{_kf5_libdir}/cmake/KF5Auth
|
||||||
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KAuth.pri
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Jun 03 2014 Daniel Vrátil <dvratil@redhat.com> - 4.100.0-1
|
||||||
|
- KDE Frameworks 4.100.0
|
||||||
|
|
||||||
|
* Mon May 05 2014 Daniel Vrátil <dvratil@redhat.com> - 4.99.0-1
|
||||||
|
- KDE Frameworks 4.99.0
|
||||||
|
|
||||||
|
* Mon Apr 28 2014 Daniel Vrátil <dvratil@redhat.com> - 4.98.0-20140418git84a2c68a
|
||||||
|
- Rebuild against kf5-rpm-macros
|
||||||
|
|
||||||
|
* Mon Mar 31 2014 Jan Grulich <jgrulich@redhat.com> 4.98.0-1
|
||||||
|
- Update to KDE Frameworks 5 Beta 1 (4.98.0)
|
||||||
|
|
||||||
|
* Wed Mar 05 2014 Jan Grulich <jgrulich@redhat.com> 4.97.0-1
|
||||||
|
- Update to KDE Frameworks 5 Alpha 1 (4.97.0)
|
||||||
|
|
||||||
|
* Wed Feb 12 2014 Daniel Vrátil <dvratil@redhat.com> 4.96.0-1
|
||||||
|
- Update to KDE Frameworks 5 Alpha 1 (4.96.0)
|
||||||
|
|
||||||
|
* Wed Feb 05 2014 Daniel Vrátil <dvratil@redhat.com> 4.96.0-0.1.20140205git
|
||||||
|
- Update to pre-relase snapshot of 4.96.0
|
||||||
|
|
||||||
|
* Wed Jan 15 2014 Daniel Vr8til <dvratil@redhat.com> 4.95.0-2
|
||||||
|
- Rebuilt against polkit-qt5
|
||||||
|
|
||||||
|
* Thu Jan 09 2014 Daniel Vrátil <dvratil@redhat.com> 4.95.0-1
|
||||||
|
- Update to KDE Frameworks 5 TP1 (4.95.0)
|
||||||
|
|
||||||
|
* Sat Jan 4 2014 Daniel Vrátil <dvratil@redhat.com>
|
||||||
|
- initial version
|
Loading…
Reference in new issue