From 8c8f9c8835f10358cf89bc5a6545797b8e2a11da Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 7 Jun 2018 11:26:26 -0500 Subject: [PATCH] cleanup, use %majmin, %make_build %ldconfig_scriptlets exclude plugin provides --- .gitignore | 26 -------------------------- kf5-kimageformats.spec | 23 ++++++++++++++--------- 2 files changed, 14 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index 33b89e9..0e7d63a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +1,2 @@ -/kimageformats-5.18.0.tar.xz -/kimageformats-5.19.0.tar.xz -/kimageformats-5.20.0.tar.xz -/kimageformats-5.21.0.tar.xz -/kimageformats-5.22.0.tar.xz -/kimageformats-5.23.0.tar.xz -/kimageformats-5.24.0.tar.xz -/kimageformats-5.25.0.tar.xz -/kimageformats-5.26.0.tar.xz -/kimageformats-5.27.0.tar.xz -/kimageformats-5.29.0.tar.xz -/kimageformats-5.31.0.tar.xz -/kimageformats-5.32.0.tar.xz -/kimageformats-5.33.0.tar.xz -/kimageformats-5.34.0.tar.xz -/kimageformats-5.35.0.tar.xz -/kimageformats-5.36.0.tar.xz -/kimageformats-5.37.0.tar.xz -/kimageformats-5.38.0.tar.xz -/kimageformats-5.39.0.tar.xz -/kimageformats-5.40.0.tar.xz -/kimageformats-5.41.0.tar.xz -/kimageformats-5.42.0.tar.xz -/kimageformats-5.43.0.tar.xz -/kimageformats-5.44.0.tar.xz -/kimageformats-5.45.0.tar.xz /kimageformats-5.46.0.tar.xz /kimageformats-5.47.0.tar.xz diff --git a/kf5-kimageformats.spec b/kf5-kimageformats.spec index a6da22b..e41e31d 100644 --- a/kf5-kimageformats.spec +++ b/kf5-kimageformats.spec @@ -2,28 +2,30 @@ Name: kf5-%{framework} Version: 5.47.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Frameworks 5 Tier 1 addon with additional image plugins for QtGui 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 -BuildRequires: extra-cmake-modules >= %{version} +%global __provides_exclude_from ^(%{_kf5_plugindir}/.*\\.so)$ + +BuildRequires: extra-cmake-modules >= %{majmin} BuildRequires: jasper-devel -BuildRequires: kf5-rpm-macros >= %{version} +BuildRequires: kf5-rpm-macros >= %{majmin} BuildRequires: pkgconfig(OpenEXR) BuildRequires: qt5-qtbase-devel -Requires: kf5-filesystem >= %{version} +Requires: kf5-filesystem >= %{majmin} %description This framework provides additional image format plugins for QtGui. As @@ -42,15 +44,14 @@ pushd %{_target_platform} %{cmake_kf5} .. popd -make %{?_smp_mflags} -C %{_target_platform} +%make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files %doc README.md @@ -61,6 +62,10 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %changelog +* Thu Jun 07 2018 Rex Dieter - 5.47.0-2 +- cleanup, use %%majmin, %%make_build %%ldconfig_scriptlets +- exclude plugin provides + * Sat Jun 02 2018 Rex Dieter - 5.47.0-1 - 5.47.0