extra-cmake-modules/extra-cmake-modules.spec

84 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

2020-03-10 15:52:44 +08:00
Name: extra-cmake-modules
Summary: Additional modules for CMake build system
2024-01-02 16:10:08 +08:00
Version: 5.113.0
2022-02-11 16:47:34 +08:00
Release: 1
2020-03-10 15:52:44 +08:00
License: BSD
URL: https://api.kde.org/ecm/
2022-02-11 16:47:34 +08:00
%global versiondir %(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}/%{name}-%{version}.tar.xz
Patch01: extra-cmake-modules-5.39.0-poppler_overlinking.patch
Patch02: extra-cmake-modules-5.89.0-qt_prefix.patch
2020-03-10 15:52:44 +08:00
BuildArch: noarch
BuildRequires: kf5-rpm-macros qt5-qttools-devel python3-sphinx
2022-02-11 16:47:34 +08:00
Requires: kf5-rpm-macros qt5-linguist
2020-03-10 15:52:44 +08:00
2024-01-02 16:10:08 +08:00
2020-03-10 15:52:44 +08:00
%description
2022-02-11 16:47:34 +08:00
Additional modules for CMake build system needed by KDE Frameworks.
2020-03-10 15:52:44 +08:00
%prep
%autosetup -p1
%build
mkdir %{_target_platform}
cd %{_target_platform}
%{cmake_kf5} .. -DBUILD_HTML_DOCS:BOOL=ON -DBUILD_MAN_DOCS:BOOL=ON -DBUILD_TESTING:BOOL=ON \
-DSphinx_BUILD_EXECUTABLE:PATH=%{_bindir}/sphinx-build-3
cd -
%make_build -C %{_target_platform}
%install
%make_install -C %{_target_platform}
%check
export CTEST_OUTPUT_ON_FAILURE=1
make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%files
%doc README.rst
2022-02-11 16:47:34 +08:00
%license LICENSES/*.txt
%{_datadir}/ECM/
2020-03-10 15:52:44 +08:00
%{_kf5_docdir}/ECM/html/
%{_kf5_mandir}/man7/ecm*.7*
%changelog
2024-01-02 16:10:08 +08:00
* Tue Jan 02 2024 wangqia <wangqia@uniontech.com> - 5.113.0-1
- Update to upstream version 5.113.0
2023-07-25 16:02:28 +08:00
* Tue Jul 25 2023 chenzixuan <chenzixuan@kylinos.cn> - 5.108.0-1
- Update to upstream version 5.108.0
2022-12-09 15:15:04 +08:00
* Fri Dec 09 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 5.100.0-1
- Update to upstream version 5.100.0
2022-09-05 13:45:58 +08:00
* Mon Sep 05 2022 liweiganga <liweiganga@uniontech.com> - 5.97.0-1
- update to upstream version 5.97.0
* Mon Jul 04 2022 loong_C <loong_c@yeah.net> - 5.95.0-1
- update to upstream version 5.95.0
2022-12-09 15:15:04 +08:00
* Fri Feb 11 2022 pei-jiankang<peijiankang@kylinos.cn> - 5.90.0-1
2022-02-11 16:47:34 +08:00
- update to upstream version 5.90.0
2022-12-09 15:15:04 +08:00
* Wed Jan 12 2022 pei-jiankang<peijiankang@kylinos.cn> - 5.88.0-1
2022-02-11 16:47:34 +08:00
- update to upstream version 5.88.0
2020-03-12 15:56:16 +08:00
* Thu Mar 12 2020 lingsheng <lingsheng@huawei.com> - 5.59.0-3
- Remove install require appstream
2020-03-10 15:52:44 +08:00
* Tue Mar 10 2020 zhujunhao <zhujunhao5@huawei.com> - 5.59.0-2
- Package init