kf5-kwayland/kf5-kwayland.spec

134 lines
3.8 KiB
RPMSpec
Raw Permalink Normal View History

2022-02-12 15:09:11 +08:00
%undefine __cmake_in_source_build
2022-09-05 17:31:19 +08:00
%global framework kwayland
%global wayland_min_version 1.3
2020-07-23 14:11:54 +08:00
## uncomment to enable bootstrap mode
#global bootstrap 1
## currently includes no tests
%if !0%{?bootstrap}
%if 0%{?fedora}
%global tests 1
%endif
%endif
2022-02-12 15:09:11 +08:00
Name: kf5-%{framework}
2024-01-08 10:30:05 +08:00
Version: 5.113.0
2022-02-12 15:09:11 +08:00
Release: 1
Summary: KDE Frameworks 5 library that wraps Client and Server Wayland libraries
2022-12-12 14:34:55 +08:00
License: GPL-2.0-or-later
2022-02-12 15:09:11 +08:00
URL: https://invent.kde.org/frameworks/%{framework}
2020-07-23 14:11:54 +08:00
2022-02-12 15:09:11 +08:00
%global majmin %(echo %{version} | cut -d. -f1-2)
2020-07-23 14:11:54 +08:00
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
2022-02-12 15:09:11 +08:00
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
2020-07-23 14:11:54 +08:00
2022-02-12 15:09:11 +08:00
BuildRequires: make
2020-07-23 14:11:54 +08:00
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: qt5-qtbase-devel
2022-12-12 14:34:55 +08:00
BuildRequires: qt5-qtbase-static
2020-07-23 14:11:54 +08:00
# https://bugs.kde.org/show_bug.cgi?id=365569#c8 claims this is needed
BuildRequires: qt5-qtbase-private-devel
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
BuildRequires: wayland-devel >= %{wayland_min_version}
2022-02-12 15:09:11 +08:00
BuildRequires: wayland-protocols-devel
2020-07-23 14:11:54 +08:00
BuildRequires: qt5-qttools-devel
2022-02-12 15:09:11 +08:00
BuildRequires: qt5-qtwayland-devel
BuildRequires: cmake(PlasmaWaylandProtocols) > 1.1
2022-12-12 14:34:55 +08:00
BuildRequires: libxkbcommon
2022-02-12 15:09:11 +08:00
2020-07-23 14:11:54 +08:00
%if 0%{?tests}
2022-02-12 15:09:11 +08:00
BuildRequires: dbus-x11
BuildRequires: time
BuildRequires: weston
BuildRequires: xorg-x11-server-Xvfb
2020-07-23 14:11:54 +08:00
%endif
Requires: kf5-filesystem >= %{version}
%description
%{summary}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: qt5-qtbase-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{framework}-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%check
%if 0%{?tests}
export CTEST_OUTPUT_ON_FAILURE=1
xvfb-run -a \
dbus-launch --exit-with-session \
time \
make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%endif
%ldconfig_scriptlets
%files
2022-02-12 15:09:11 +08:00
%license LICENSES/*.txt
%{_kf5_datadir}/qlogging-categories5/*categories
2020-07-23 14:11:54 +08:00
%{_kf5_libdir}/libKF5WaylandClient.so.5*
%{_kf5_libdir}/libKF5WaylandServer.so.5*
# not sure if this belongs here or in -devel --rex
%{_libexecdir}/org-kde-kf5-kwayland-testserver
%files devel
%{_kf5_includedir}/KWayland/
%{_kf5_libdir}/cmake/KF5Wayland/
%{_kf5_libdir}/libKF5WaylandClient.so
%{_kf5_libdir}/libKF5WaylandServer.so
%{_kf5_libdir}/pkgconfig/KF5WaylandClient.pc
2020-07-23 14:11:54 +08:00
%{_kf5_archdatadir}/mkspecs/modules/qt_KWaylandClient.pri
%{_kf5_archdatadir}/mkspecs/modules/qt_KWaylandServer.pri
%changelog
2024-01-08 10:30:05 +08:00
* Mon Jan 08 2024 zhangxianting <zhangxianting@uniontech.com> - 5.113.0-1
- update to upstream version 5.113.0
* Thu Aug 03 2023 wangce <wangce@uniontech.com> - 5.108.0-1
- update to upstream version 5.108.0
2022-12-12 14:34:55 +08:00
* Mon Dec 12 2022 wangjunqi <wangjunqi@kylinos.cn> - 5.100.0-1
- update to upstream version 5.100.0
2022-09-05 17:31:19 +08:00
* Mon Sep 05 2022 liweiganga <liweiganga@uniontech.com> - 5.97.0-1
- update to upstream version 5.97.0
* Tue Jul 05 2022 huayadong <huayadong@kylinos.cn> - 5.95.0-1
- update to upstream version 5.95.0
2022-09-05 17:31:19 +08:00
* Sat Feb 12 2022 pei-jiankang <peijiankang@kylinos.cn> - 5.90.0-1
2022-02-12 15:09:11 +08:00
- update to upstream version 5.90.0
2022-09-05 17:31:19 +08:00
* Fri Jan 14 2022 pei-jiankang <peijiankang@kylinos.cn> - 5.88.0-1
2022-02-12 15:09:11 +08:00
- update to upstream version 5.88.0
2021-12-13 10:46:01 +08:00
* Mon Dec 13 2021 douyan <douyan@kylinos.cn> - 5.55.0-2
- remove %{?dist}
2022-09-05 17:31:19 +08:00
* Thu Jul 23 2020 wangmian <wangmian@kylinos.cn> - 5.55.0-1
2020-07-23 14:11:54 +08:00
- Init kf5-kwayland project