cleanup, use %majmin %make_build %ldconfig_scriptlets

epel9
Rex Dieter 7 years ago
parent 94fe903cc0
commit 9a293b81df

4
.gitignore vendored

@ -1,6 +1,2 @@
/sonnet-5.42.0.tar.xz
/sonnet-5.43.0.tar.xz
/sonnet-5.44.0.tar.xz
/sonnet-5.45.0.tar.xz
/sonnet-5.46.0.tar.xz
/sonnet-5.47.0.tar.xz

@ -9,20 +9,20 @@
Name: kf5-%{framework}
Version: 5.47.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 1 solution for spell checking
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
# filter plugin provides
%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$
@ -32,16 +32,16 @@ Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{fra
# https://bugzilla.redhat.com/show_bug.cgi?id=1262746
Patch102: sonnet-multilib.patch
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: extra-cmake-modules >= %{majmin}
%if ! 0%{?bootstrap}
BuildRequires: hunspell-devel
%endif
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: kf5-rpm-macros >= %{majmin}
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qttools-devel
BuildRequires: zlib-devel
Requires: kf5-filesystem >= %{version}
Requires: kf5-filesystem >= %{majmin}
Requires: %{name}-core%{?_isa} = %{version}-%{release}
Requires: %{name}-ui%{?_isa} = %{version}-%{release}
@ -79,7 +79,7 @@ pushd %{_target_platform}
%{?tests:-DBUILD_TESTING:BOOL=ON}
popd
make %{?_smp_mflags} -C %{_target_platform}
%make_build -C %{_target_platform}
%install
@ -99,8 +99,7 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%doc README.md
%license COPYING.LIB
%post core -p /sbin/ldconfig
%postun core -p /sbin/ldconfig
%ldconfig_scriptlets core
%files core
%{_kf5_sysconfdir}/xdg/sonnet.*
@ -114,8 +113,7 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%dir %{_kf5_datadir}/kf5/sonnet/
%{_kf5_datadir}/kf5/sonnet/trigrams.map
%post ui -p /sbin/ldconfig
%postun ui -p /sbin/ldconfig
%ldconfig_scriptlets ui
%files ui -f sonnet5_qt.lang
%{_kf5_libdir}/libKF5SonnetUi.so.*
@ -132,6 +130,9 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%changelog
* Thu Jun 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-2
- cleanup, use %%majmin %%make_build %%ldconfig_scriptlets
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0

Loading…
Cancel
Save