cleanup, use %majmin %make_build %find_lang_kf5 %ldconfig_scriptlets

epel8
Rex Dieter 7 years ago
parent 12f3e4c471
commit 96ddc7c61c

11
.gitignore vendored

@ -1,13 +1,2 @@
/kwindowsystem-5.35.0.tar.xz
/kwindowsystem-5.36.0.tar.xz
/kwindowsystem-5.37.0.tar.xz
/kwindowsystem-5.38.0.tar.xz
/kwindowsystem-5.39.0.tar.xz
/kwindowsystem-5.40.0.tar.xz
/kwindowsystem-5.41.0.tar.xz
/kwindowsystem-5.42.0.tar.xz
/kwindowsystem-5.43.0.tar.xz
/kwindowsystem-5.44.0.tar.xz
/kwindowsystem-5.45.0.tar.xz
/kwindowsystem-5.46.0.tar.xz
/kwindowsystem-5.47.0.tar.xz

@ -10,26 +10,26 @@
Name: kf5-%{framework}
Version: 5.47.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 1 integration module with classes for windows management
License: LGPLv2+ and MIT
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)$
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{majmin}
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-keysyms)
@ -47,7 +47,7 @@ BuildRequires: weston
BuildRequires: xorg-x11-server-Xvfb
%endif
Requires: kf5-filesystem >= %{version}
Requires: kf5-filesystem >= %{majmin}
%description
KDE Frameworks Tier 1 integration module that provides classes for managing and
@ -73,13 +73,13 @@ pushd %{_target_platform}
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
make %{?_smp_mflags} -C %{_target_platform}
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang kwindowsystem5_qt --with-qt --all-name
%find_lang_kf5 kwindowsystem5_qt
%check
@ -90,14 +90,13 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files -f kwindowsystem5_qt.lang
%doc README.md
%license COPYING.LIB
%{_kf5_libdir}/libKF5WindowSystem.so.*
%dir %{_kf5_plugindir}/org.kde.kwindowsystem.platforms
%dir %{_kf5_plugindir}/org.kde.kwindowsystem.platforms/
%{_kf5_plugindir}/org.kde.kwindowsystem.platforms/KF5WindowSystemWaylandPlugin.so
%{_kf5_plugindir}/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so
@ -110,6 +109,9 @@ make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
%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