use pkgconfig(Qt5...) style deps
use %majmin %make_build %find_lang_kf5 %ldconfig_scriptlets
epel8
Rex Dieter 7 years ago
parent 09b5063707
commit 6a8e3973be

26
.gitignore vendored

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

@ -12,31 +12,31 @@
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 5.47.0 Version: 5.47.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 1 addon with advanced configuration system Summary: KDE Frameworks 5 Tier 1 addon with advanced configuration system
License: GPLv2+ and LGPLv2+ and MIT License: GPLv2+ and LGPLv2+ and MIT
URL: https://cgit.kde.org/%{framework}.git 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) %global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50 %if %{revision} >= 50
%global stable unstable %global stable unstable
%else %else
%global stable stable %global stable stable
%endif %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 ## upstream patches
## upstreamable patches ## upstreamable patches
BuildRequires: ninja-build BuildRequires: ninja-build
BuildRequires: extra-cmake-modules >= %{version} BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: kf5-rpm-macros >= %{majmin}
BuildRequires: cmake(Qt5Gui) BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: cmake(Qt5Xml) BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qttools-devel BuildRequires: qt5-qttools-devel
@ -57,7 +57,7 @@ BuildRequires: time
BuildRequires: xorg-x11-server-Xvfb BuildRequires: xorg-x11-server-Xvfb
%endif %endif
Requires: kf5-filesystem >= %{version} Requires: kf5-filesystem >= %{majmin}
Requires: %{name}-core%{?_isa} = %{version}-%{release} Requires: %{name}-core%{?_isa} = %{version}-%{release}
Requires: %{name}-gui%{?_isa} = %{version}-%{release} Requires: %{name}-gui%{?_isa} = %{version}-%{release}
@ -68,7 +68,7 @@ parts: KConfigCore and KConfigGui.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: cmake(Qt5Xml) Requires: pkgconfig(Qt5Xml)
%description devel %description devel
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for
developing applications that use %{name}. developing applications that use %{name}.
@ -126,7 +126,7 @@ pushd %{_target_platform}
%{?tests:-DBUILD_TESTING:BOOL=ON} %{?tests:-DBUILD_TESTING:BOOL=ON}
popd popd
#make -C %{_target_platform} #make_build -C %{_target_platform}
%ninja_build -C %{_target_platform} %ninja_build -C %{_target_platform}
@ -134,7 +134,7 @@ popd
#make install/fast DESTDIR=%{buildroot} -C %{_target_platform} #make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%ninja_install -C %{_target_platform} %ninja_install -C %{_target_platform}
%find_lang %{name} --all-name --with-qt %find_lang_kf5 kconfig5_qt
%check %check
@ -153,18 +153,16 @@ ninja test -v -C %{_target_platform} ||:
%doc DESIGN README.md TODO %doc DESIGN README.md TODO
%license COPYING.LIB %license COPYING.LIB
%post core -p /sbin/ldconfig %ldconfig_scriptlets core
%postun core -p /sbin/ldconfig
%files core -f %{name}.lang %files core -f kconfig5_qt.lang
%{_kf5_bindir}/kreadconfig5 %{_kf5_bindir}/kreadconfig5
%{_kf5_bindir}/kwriteconfig5 %{_kf5_bindir}/kwriteconfig5
%{_kf5_libdir}/libKF5ConfigCore.so.* %{_kf5_libdir}/libKF5ConfigCore.so.*
%{_kf5_libexecdir}/kconfig_compiler_kf5 %{_kf5_libexecdir}/kconfig_compiler_kf5
%{_kf5_libexecdir}/kconf_update %{_kf5_libexecdir}/kconf_update
%post gui -p /sbin/ldconfig %ldconfig_scriptlets gui
%postun gui -p /sbin/ldconfig
%files gui %files gui
%{_kf5_libdir}/libKF5ConfigGui.so.* %{_kf5_libdir}/libKF5ConfigGui.so.*
@ -192,6 +190,11 @@ ninja test -v -C %{_target_platform} ||:
%changelog %changelog
* Thu Jun 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-2
- cleanup
- use pkgconfig(Qt5...) style deps
- use %%majmin %%make_build %%find_lang_kf5 %%ldconfig_scriptlets
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1 * Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0 - 5.47.0

Loading…
Cancel
Save