added a patch from arch to fix dbus files installation directory [release 4.0.0-2mamba;Sat Oct 05 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 02:40:46 +01:00
parent 402739f030
commit 60c7cd42ae
2 changed files with 22 additions and 6 deletions

View File

@ -0,0 +1,15 @@
diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt
index d616933..b3f2ee2 100644
--- a/src/util/CMakeLists.txt
+++ b/src/util/CMakeLists.txt
@@ -50,8 +50,8 @@ target_link_libraries(kpmcore_externalcommand
)
install(TARGETS kpmcore_externalcommand DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
-install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d )
-install( FILES util/org.kde.kpmcore.applicationinterface.conf DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d )
+install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d )
+install( FILES util/org.kde.kpmcore.applicationinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d )
kauth_install_helper_files(kpmcore_externalcommand org.kde.kpmcore.externalcommand root)
kauth_install_actions(org.kde.kpmcore.externalcommand util/org.kde.kpmcore.externalcommand.actions)

View File

@ -1,6 +1,6 @@
Name: kpmcore Name: kpmcore
Version: 4.0.0 Version: 4.0.0
Release: 1mamba Release: 2mamba
Summary: Library for managing partitions Summary: Library for managing partitions
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -9,6 +9,7 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/KDE/kpmcore.git URL: https://github.com/KDE/kpmcore.git
## GITSOURCE https://github.com/KDE/kpmcore.git v2.2.1 ## GITSOURCE https://github.com/KDE/kpmcore.git v2.2.1
Source: https://github.com/KDE/kpmcore.git/v%{version}/kpmcore-%{version}.tar.bz2 Source: https://github.com/KDE/kpmcore.git/v%{version}/kpmcore-%{version}.tar.bz2
Patch0: kpmcore-4.0.0-dbusdir.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -49,11 +50,11 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel %description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}. This package contains libraries and header files for developing applications that use %{name}.
%debug_package %debug_package
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%cmake_kde5 -d build %cmake_kde5 -d build
@ -71,14 +72,11 @@ This package contains libraries and header files for developing applications tha
%files -n lib%{name} %files -n lib%{name}
%defattr(-,root,root) %defattr(-,root,root)
%{_sysconfdir}/dbus-1/system.d/org.kde.kpmcore.*.conf
%{_libdir}/libkpmcore.so.* %{_libdir}/libkpmcore.so.*
%{_qt5_plugindir}/libpmdummybackendplugin.so %{_qt5_plugindir}/libpmdummybackendplugin.so
%{_qt5_plugindir}/libpmsfdiskbackendplugin.so %{_qt5_plugindir}/libpmsfdiskbackendplugin.so
%{_libexecdir}/kf5/kauth/kpmcore_externalcommand %{_libexecdir}/kf5/kauth/kpmcore_externalcommand
%ifarch arm %{_datadir}/dbus-1/system.d/org.kde.kpmcore.*.conf
%{_datadir}/dbus-1/system.d/org.kde.kpmcore.externalcommand.conf
%endif
%{_datadir}/dbus-1/system-services/org.kde.kpmcore.externalcommand.service %{_datadir}/dbus-1/system-services/org.kde.kpmcore.externalcommand.service
%{_datadir}/polkit-1/actions/org.kde.kpmcore.externalcommand.policy %{_datadir}/polkit-1/actions/org.kde.kpmcore.externalcommand.policy
@ -91,6 +89,9 @@ This package contains libraries and header files for developing applications tha
%{_libdir}/libkpmcore.so %{_libdir}/libkpmcore.so
%changelog %changelog
* Sat Oct 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.0-2mamba
- added a patch from arch to fix dbus files installation directory
* Sun May 26 2019 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba * Sun May 26 2019 Automatic Build System <autodist@mambasoft.it> 4.0.0-1mamba
- automatic version update by autodist - automatic version update by autodist