cleanup, use %majmin %make_build %find_lang_kf5 %ldconfig_scriptlets

epel8
Rex Dieter 7 years ago
parent 52b59b88f7
commit a549c3aa6a

27
.gitignore vendored

@ -1,28 +1 @@
/knotifications-5.18.0.tar.xz
/knotifications-5.19.0.tar.xz
/knotifications-5.20.0.tar.xz
/knotifications-5.21.0.tar.xz
/knotifications-5.22.0.tar.xz
/knotifications-5.23.0.tar.xz
/knotifications-5.24.0.tar.xz
/knotifications-5.25.0.tar.xz
/knotifications-5.26.0.tar.xz
/knotifications-5.27.0.tar.xz
/knotifications-5.29.0.tar.xz
/knotifications-5.31.0.tar.xz
/knotifications-5.32.0.tar.xz
/knotifications-5.33.0.tar.xz
/knotifications-5.34.0.tar.xz
/knotifications-5.35.0.tar.xz
/knotifications-5.36.0.tar.xz
/knotifications-5.37.0.tar.xz
/knotifications-5.38.0.tar.xz
/knotifications-5.39.0.tar.xz
/knotifications-5.40.0.tar.xz
/knotifications-5.41.0.tar.xz
/knotifications-5.42.0.tar.xz
/knotifications-5.43.0.tar.xz
/knotifications-5.44.0.tar.xz
/knotifications-5.45.0.tar.xz
/knotifications-5.46.0.tar.xz
/knotifications-5.47.0.tar.xz

@ -9,38 +9,38 @@
Name: kf5-%{framework}
Version: 5.47.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 2 solution with abstraction for system notifications
License: LGPLv2+
URL: https://cgit.kde.org/%{framework}.git
%global versiondir %(echo %{version} | cut -d. -f1-2)
%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/%{versiondir}/%{framework}-%{version}.tar.xz
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
## upstream patches
BuildRequires: dbusmenu-qt5-devel
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-kcodecs-devel >= %{version}
BuildRequires: kf5-kconfig-devel >= %{version}
BuildRequires: kf5-kcoreaddons-devel >= %{version}
BuildRequires: kf5-kwindowsystem-devel >= %{version}
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kcodecs-devel >= %{majmin}
BuildRequires: kf5-kconfig-devel >= %{majmin}
BuildRequires: kf5-kcoreaddons-devel >= %{majmin}
BuildRequires: kf5-kwindowsystem-devel >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: phonon-qt5-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qttools-devel
BuildRequires: qt5-qtx11extras-devel
%if !0%{?bootstrap}
BuildRequires: cmake(Qt5TextToSpeech)
BuildRequires: pkgconfig(Qt5TextToSpeech)
%endif
%if 0%{?tests}
@ -73,12 +73,13 @@ pushd %{_target_platform}
%{?tests:-DBUILD_TESTING:BOOL=ON}
popd
make %{?_smp_mflags} -C %{_target_platform}
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang knotifications5_qt --with-qt --all-name
%find_lang_kf5 knotifications5_qt
# We own the folder
mkdir -p %{buildroot}/%{_kf5_datadir}/knotifications5
@ -92,8 +93,7 @@ time make test -C %{_target_platform} ARGS="--output-on-failure --timeout 300" |
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files -f knotifications5_qt.lang
%doc README.md
@ -112,6 +112,9 @@ time make test -C %{_target_platform} ARGS="--output-on-failure --timeout 300" |
%changelog
* Thu Jun 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-2
- cleanup, use %%majmin %%make_build %%find_lang_kf5 %%ldconfig_scriptlets
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0

Loading…
Cancel
Save