commit
de388e0e01
BIN
extra-cmake-modules-5.59.0.tar.xz
Normal file
BIN
extra-cmake-modules-5.59.0.tar.xz
Normal file
Binary file not shown.
55
extra-cmake-modules.spec
Normal file
55
extra-cmake-modules.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
Name: extra-cmake-modules
|
||||||
|
Summary: Additional modules for CMake build system
|
||||||
|
Version: 5.59.0
|
||||||
|
Release: 2
|
||||||
|
License: BSD
|
||||||
|
URL: https://api.kde.org/ecm/
|
||||||
|
Source0: http://download.kde.org/stable/frameworks/5.59/extra-cmake-modules-%{version}.tar.xz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: kf5-rpm-macros qt5-qttools-devel python3-sphinx
|
||||||
|
Requires: kf5-rpm-macros appstream cmake(Qt5LinguistTools) qt5-linguist
|
||||||
|
|
||||||
|
%description
|
||||||
|
The package provides additional modules for CMake build system needed by KDE Frameworks.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Documentation for extra-cmake-modules
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Documentation for extra-cmake-modules.
|
||||||
|
|
||||||
|
%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
|
||||||
|
%license COPYING-CMAKE-SCRIPTS
|
||||||
|
%{_datadir}/ECM/
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc README.rst
|
||||||
|
%{_kf5_docdir}/ECM/html/
|
||||||
|
%{_kf5_mandir}/man7/ecm*.7*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Mar 10 2020 zhujunhao <zhujunhao5@huawei.com> - 5.59.0-2
|
||||||
|
- Package init
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user