diff --git a/knotifications.spec b/knotifications.spec index 8ddb629..4e57881 100644 --- a/knotifications.spec +++ b/knotifications.spec @@ -1,7 +1,8 @@ %define majver %(echo %version | cut -d. -f1-2) + Name: knotifications Version: 5.10.0 -Release: 1mamba +Release: 2mamba Summary: Desktop notifications framework Group: System/Libraries Vendor: openmamba @@ -25,7 +26,10 @@ BuildRequires: libphonon-qt5-devel BuildRequires: libqt5-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END +## AUTOBUILDREQ-END BuildRequires: cmake +BuildRequires: rpm-macros-kde5 +BuildRequires: extra-cmake-modules Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -37,7 +41,8 @@ Group: System/Libraries Summary: Desktop notifications framework %description -n lib%{name} -KNotification is used to notify the user of an event. It covers feedback and persistent events. +KNotification is used to notify the user of an event. +It covers feedback and persistent events. %package -n lib%{name}-devel Group: Development/Libraries @@ -53,14 +58,14 @@ This package contains libraries and header files for developing applications tha %setup -q %build -%cmake -d build +%cmake_kde5 -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build -%find_lang %{name} || touch %{name}.lang +%find_lang knotifications5_qt --with-qt --all-name || touch knotifications5_qt.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -68,27 +73,27 @@ 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 knotifications5_qt.lang %defattr(-,root,root) -%{_libdir}/libKF5Notifications.so.* +%{_kde5_libdir}/libKF5Notifications.so.* +%{_kde5_servicetypesdir}/knotificationplugin.desktop %{_datadir}/dbus-1/interfaces/kf5_org.kde.StatusNotifierItem.xml %{_datadir}/dbus-1/interfaces/kf5_org.kde.StatusNotifierWatcher.xml -%{_datadir}/kservicetypes5/knotificationplugin.desktop -%{_datadir}/locale/*/LC_MESSAGES/knotifications5_qt.qm %doc COPYING.LIB %files -n lib%{name}-devel %defattr(-,root,root) -%dir %{_includedir}/KF5/KNotifications -%{_includedir}/KF5/KNotifications/* -%{_includedir}/KF5/knotifications_version.h -%dir %{_libdir}/cmake/KF5Notifications -%{_libdir}/cmake/KF5Notifications/KF5Notifications*.cmake -%{_libdir}/libKF5Notifications.so -/usr/mkspecs/modules/qt_KNotifications.pri +%{_kde5_includedir}/KNotifications +%{_kde5_includedir}/knotifications_version.h +%{_kde5_libdir}/cmake/KF5Notifications +%{_kde5_libdir}/libKF5Notifications.so +%{_kde5_mkspecsdir}/qt_KNotifications.pri %doc README.md %changelog +* Sun May 31 2015 Davide Madrisan 5.10.0-2mamba +- standardize the specfile + * Thu May 14 2015 Automatic Build System 5.10.0-1mamba - automatic version update by autodist