diff --git a/kf5-knotifications.spec b/kf5-knotifications.spec new file mode 100644 index 0000000000000000000000000000000000000000..c50e08d3ff9cfb3c707f436ad45d0a250d08d46f --- /dev/null +++ b/kf5-knotifications.spec @@ -0,0 +1,99 @@ +%global framework knotifications + +# uncomment to enable bootstrap mode +#global bootstrap 1 + +%if !0%{?bootstrap} +%global tests 1 +%endif + +Name: kf5-%{framework} +Version: 5.55.0 +Release: 1 +Summary: KDE Frameworks 5 Tier 2 solution with abstraction for system notifications +License: LGPLv2+ +URL: https://cgit.kde.org/%{framework}.git + +%global majmin %(echo %{version} | cut -d. -f1-2) +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz + +BuildRequires: dbusmenu-qt5-devel extra-cmake-modules >= %{majmin} kf5-kcodecs-devel >= %{majmin} kf5-kconfig-devel >= %{majmin} kf5-kcoreaddons-devel >= %{majmin} kf5-kwindowsystem-devel >= %{majmin} kf5-rpm-macros phonon-qt5-devel pkgconfig(libcanberra) qt5-qtbase-devel qt5-qttools-devel qt5-qtx11extras-devel + +%if 0%{?tests} +BuildRequires: dbus-x11 time xorg-x11-server-Xvfb +%endif + + +%description +KDE Frameworks 5 Tier 3 solution with abstraction for system +notifications. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} qt5-qtbase-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -n %{framework}-%{version} -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. \ + %{?tests:-DBUILD_TESTING:BOOL=ON} +popd + +%make_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang_kf5 knotifications5_qt + +# We own the folder +mkdir -p %{buildroot}/%{_kf5_datadir}/knotifications5 + + +%check +%if 0%{?tests} +export CTEST_OUTPUT_ON_FAILURE=1 +xvfb-run -a dbus-launch --exit-with-session \ +time make test -C %{_target_platform} ARGS="--output-on-failure --timeout 300" ||: +%endif + + +%ldconfig_scriptlets + +%files -f knotifications5_qt.lang +%doc README.md +%license COPYING.LIB +%{_kf5_sysconfdir}/xdg/%{framework}.* +%{_kf5_libdir}/libKF5Notifications.so.* +%{_kf5_datadir}/kservicetypes5/knotificationplugin.desktop +%{_kf5_datadir}/knotifications5/ + +%files devel +%{_kf5_includedir}/knotifications_version.h +%{_kf5_includedir}/KNotifications/ +%{_kf5_libdir}/libKF5Notifications.so +%{_kf5_libdir}/cmake/KF5Notifications/ +%{_kf5_datadir}/dbus-1/interfaces/*.xml +%{_kf5_archdatadir}/mkspecs/modules/qt_KNotifications.pri + + +%changelog +* Mon Aug 17 2020 yeqinglong - 5.55.0-1 +- Initial release for OpenEuler + diff --git a/kf5-knotifications.yaml b/kf5-knotifications.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3fa74ba8649e30ce364fb802718542c4446ef73d --- /dev/null +++ b/kf5-knotifications.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/knotifications +tag_prefix: "^v" +seperator: "." diff --git a/knotifications-5.55.0.tar.xz b/knotifications-5.55.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..07e94212c8dd5979eae918f78c1c4233e07bc01c Binary files /dev/null and b/knotifications-5.55.0.tar.xz differ