diff --git a/kauth.spec b/kauth.spec index 34f0956..28e3673 100644 --- a/kauth.spec +++ b/kauth.spec @@ -1,7 +1,8 @@ %define majver %(echo %version | cut -d. -f1-2) + Name: kauth Version: 5.9.0 -Release: 1mamba +Release: 2mamba Summary: Execute actions as privileged user Group: System/Libraries Vendor: openmamba @@ -18,6 +19,14 @@ BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: cmake +BuildRequires: extra-cmake-modules +BuildRequires: rpm-macros-kde5 +BuildRequires: libQt5Core +BuildRequires: libQt5Gui +BuildRequires: libQt5Widgets +BuildRequires: libQt5DBus +BuildRequires: libkcoreaddons-devel +BuildRequires: libpolkit-qt5-1-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -44,14 +53,15 @@ This package contains libraries and header files for developing applications tha %setup -q %build -%cmake -d build +%cmake_kde5 -d build \ + -DLIBEXEC_INSTALL_DIR=%{_kde5_libexecdir} %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build -#%find_lang kauth5-qt +%find_lang kauth5-qt --with-qt --all-name || touch kcodecs5_qt.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -59,32 +69,30 @@ This package contains libraries and header files for developing applications tha %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig -%files -n lib%{name} +%files -n lib%{name} -f kauth5-qt.lang %defattr(-,root,root) -%{_sysconfdir}/dbus-1/system.d/org.kde.kf5auth.conf -%{_libdir}/libKF5Auth.so.* -%dir %{_libdir}/plugins/kauth -%dir %{_libdir}/plugins/kauth/helper -%{_libdir}/plugins/kauth/helper/kauth_helper_plugin.so -%{_libdir}/plugins/kauth/backend/kauth_backend_plugin.so -%{_libdir}/libexec/kauth/kauth-policy-gen -%{_datadir}/locale/*/LC_MESSAGES/kauth5_qt.qm +%{_kde5_libdir}/libKF5Auth.so.* +%{_kde5_qtplugindir}/kauth +%{_kde5_libexecdir}/kauth/kauth-policy-gen +%{_kde5_sysconfdir}/dbus-1/system.d/org.kde.kf5auth.conf %doc COPYING.LIB %files -n lib%{name}-devel %defattr(-,root,root) -%{_includedir}/KF5/kauth_version.h -%dir %{_includedir}/KF5/KAuth -%{_includedir}/KF5/KAuth/* -%dir %{_libdir}/cmake/KF5Auth -%{_libdir}/cmake/KF5Auth/KF5Auth*.cmake -%{_libdir}/libKF5Auth.so -/usr/mkspecs/modules/qt_KAuth.pri -%{_datadir}/kf5/kauth/dbus_policy.stub -%{_datadir}/kf5/kauth/dbus_service.stub +%{_kde5_includedir}/kauth_version.h +%{_kde5_includedir}/KAuth +%{_kde5_libdir}/cmake/KF5Auth +%{_kde5_libdir}/libKF5Auth.so +%{_kde5_mkspecsdir}/qt_KAuth.pri +%{_kde5_datadir}/kf5/kauth/dbus_policy.stub +%{_kde5_datadir}/kf5/kauth/dbus_service.stub %doc README.md %changelog +* Sat Apr 25 2015 Davide Madrisan 5.9.0-2mamba +- standardize the specfile +- add some missing build requirements + * Wed Apr 15 2015 Automatic Build System 5.9.0-1mamba - automatic version update by autodist