|
|
|
@ -4,14 +4,15 @@
|
|
|
|
|
#global bootstrap 1
|
|
|
|
|
|
|
|
|
|
%if !0%{?bootstrap}
|
|
|
|
|
# not quite ready -- rex
|
|
|
|
|
#global python 1
|
|
|
|
|
%if 0%{?fedora} > 25
|
|
|
|
|
%global python 1
|
|
|
|
|
%endif
|
|
|
|
|
%global tests 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: kf5-%{framework}
|
|
|
|
|
Version: 5.38.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: KDE Frameworks 5 Tier 1 addon with advanced configuration system
|
|
|
|
|
|
|
|
|
|
License: GPLv2+ and LGPLv2+ and MIT
|
|
|
|
@ -27,7 +28,6 @@ URL: https://cgit.kde.org/%{framework}.git
|
|
|
|
|
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
## upstream patches
|
|
|
|
|
# http://commits.kde.org/kconfig/0cb0ecf8001d62ae0977c6f48f1807de45de314a
|
|
|
|
|
|
|
|
|
|
## upstreamable patches
|
|
|
|
|
|
|
|
|
@ -40,9 +40,10 @@ BuildRequires: qt5-qtbase-devel
|
|
|
|
|
BuildRequires: qt5-qttools-devel
|
|
|
|
|
|
|
|
|
|
%if 0%{?python}
|
|
|
|
|
BuildRequires: bundled(python2-clang) >= 4.0.1
|
|
|
|
|
BuildRequires: clang
|
|
|
|
|
BuildRequires: python2-qt5-devel
|
|
|
|
|
BuildRequires: python3-qt5-devel
|
|
|
|
|
BuildRequires: python2-PyQt5-devel
|
|
|
|
|
BuildRequires: python3-PyQt5-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?tests}
|
|
|
|
@ -82,17 +83,42 @@ KConfigGui provides a way to hook widgets to the configuration so that they are
|
|
|
|
|
automatically initialized from the configuration and automatically propagate
|
|
|
|
|
their changes to their respective configuration files.
|
|
|
|
|
|
|
|
|
|
%if 0%{?python}
|
|
|
|
|
%package -n python2-pykf5-%{framework}
|
|
|
|
|
Summary: Python2 bindings for %{framework}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%description -n python2-pykf5-%{framework}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%package -n python3-pykf5-%{framework}
|
|
|
|
|
Summary: Python3 bindings for %{framework}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
%description -n python3-pykf5-%{framework}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%package -n pykf5-%{framework}-devel
|
|
|
|
|
Summary: SIP files for %{framework} Python bindings
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description -n pykf5-%{framework}-devel
|
|
|
|
|
%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{framework}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%if 0%{?python:1}
|
|
|
|
|
PYTHONPATH=%{_datadir}/ECM/python
|
|
|
|
|
export PYTHONPATH
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
|
pushd %{_target_platform}
|
|
|
|
|
%{cmake_kf5} .. \
|
|
|
|
|
%{?tests:-DBUILD_TESTING:BOOL=ON} \
|
|
|
|
|
%{?python:-Dlibclang_LIBRARY:PATH=%{_libdir}/libclang.so}
|
|
|
|
|
%{?tests:-DBUILD_TESTING:BOOL=ON}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
@ -144,8 +170,22 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
|
|
|
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KConfigCore.pri
|
|
|
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KConfigGui.pri
|
|
|
|
|
|
|
|
|
|
%if 0%{?python}
|
|
|
|
|
%files -n python2-pykf5-%{framework}
|
|
|
|
|
%{python2_sitelib}/PyKF5/
|
|
|
|
|
|
|
|
|
|
%files -n python3-pykf5-%{framework}
|
|
|
|
|
%{python3_sitelib}/PyKF5/
|
|
|
|
|
|
|
|
|
|
%files -n pykf5-%{framework}-devel
|
|
|
|
|
%{_datadir}/sip/PyKF5/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Sep 13 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.38.0-3
|
|
|
|
|
- enable python bindings
|
|
|
|
|
|
|
|
|
|
* Wed Sep 13 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.38.0-2
|
|
|
|
|
- cosmetics, support %%bootstrap, autotests
|
|
|
|
|
- initial support for python bindings (not ready yet)
|
|
|
|
|