]> git.pld-linux.org Git - packages/kf5-extra-cmake-modules.git/blame - kf5-extra-cmake-modules.spec
- updated to 5.56
[packages/kf5-extra-cmake-modules.git] / kf5-extra-cmake-modules.spec
CommitLineData
01d13c31
ER
1#
2# Conditional build:
53d00b1b 3%bcond_without tests # build without tests
071895c0 4
23845e79 5%define orgname extra-cmake-modules
9076cd73 6%define kdeframever 5.56
23845e79 7Summary: Extra Cmake Modules for KF5
53d00b1b 8Summary(pl.UTF-8): Dodatkowe moduły Cmake'a dla KF5
01d13c31 9Name: kf5-%{orgname}
9076cd73 10Version: 5.56.0
41b27b04 11Release: 1
071895c0
AM
12License: BSD
13Group: Development/Building
01d13c31 14Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{orgname}-%{version}.tar.xz
9076cd73 15# Source0-md5: 89be75b53098e1e6cd9b2e30b0bb9e44
53d00b1b 16Patch0: %{orgname}-tests.patch
23845e79
WF
17URL: http://www.kde.org/
18BuildRequires: cmake >= 2.8.12
2f178ef3 19BuildRequires: qt5-assistant >= 5.9.0
071895c0 20BuildRequires: qt5-linguist
3f354ca4 21BuildRequires: rpmbuild(macros) >= 1.698
53d00b1b
JB
22BuildRequires: sed >= 4.0
23BuildRequires: sphinx-pdg >= 1.2
434fec0f
WF
24BuildRequires: tar >= 1:1.22
25BuildRequires: xz
53d00b1b 26%if %{with tests}
2f178ef3
WF
27BuildRequires: Qt5Core-devel >= 5.9.0
28BuildRequires: Qt5Gui-devel >= 5.9.0
29BuildRequires: Qt5Network-devel >= 5.9.0
30BuildRequires: Qt5Qml-devel >= 5.9.0
31BuildRequires: Qt5Quick-devel >= 5.9.0
53d00b1b 32BuildRequires: libstdc++-devel >= 6:4.9
2f178ef3 33BuildRequires: qt5-build >= 5.9.0
53d00b1b 34%endif
23845e79
WF
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
23845e79
WF
37%description
38The Extra CMake Modules package, or ECM, adds to the modules provided
01d13c31
ER
39by CMake, including both ones used by find_package() to find common
40software and ones that can be used directly in CMakeLists.txt files to
41perform common tasks.
23845e79
WF
42
43In addition, it provides common build settings used in software
44produced by the KDE community.
45
46While the driving force of this module is to reduce duplication in
47CMake scripts across KDE software, it is intended to be useful for any
48software that uses the CMake build system.
49
53d00b1b
JB
50%description -l pl.UTF-8
51Pakiet Extra CMake Modules (ECM) dostarcza dodatkowe moduły do tych
52dostarczanych przez CMake'a, zawierające te używane przez
53find_package() do szukania popularnego oprogramowania, a także takie,
54których można używać bezpośrednio w CMakeLists.txt do wykonywania
55wspólnych zadań.
56
57Ponadto pakiet dostarcza wspólne ustawienia budowana używane w
58oprogramowaniu tworzonym przez społeczność KDE.
59
60O ile główną motywacją tego modułu jest zmniejszenie duplikacji w
61skryptach CMake'a w oprogramowaniu KDE, ma także być przydatny dla
62dowolnych programów wykorzystujących system budowania CMake.
63
23845e79
WF
64%prep
65%setup -q -n %{orgname}-%{version}
53d00b1b
JB
66%patch0 -p1
67
68# causes make install failure after running tests
69%{__sed} -i -e '/ECMToolchainAndroidTest/d' tests/CMakeLists.txt
23845e79
WF
70
71%build
72install -d build
73cd build
53d00b1b
JB
74%cmake .. \
75 %{!?with_tests:-DBUILD_TESTING=OFF}
76
23845e79
WF
77%{__make}
78
53d00b1b
JB
79%if %{with tests}
80# GenerateSipBindings wants clang and has libclang checks incompatible with libclang >= 4
81ctest -E GenerateSipBindings
82%endif
071895c0 83
23845e79
WF
84%install
85rm -rf $RPM_BUILD_ROOT
53d00b1b
JB
86
87%{__make} -C build -j1 install \
23845e79
WF
88 DESTDIR=$RPM_BUILD_ROOT
89
53d00b1b 90%{__mv} $RPM_BUILD_ROOT%{_docdir}/ECM ECM-doc
071895c0 91
23845e79
WF
92%clean
93rm -rf $RPM_BUILD_ROOT
94
95%files
96%defattr(644,root,root,755)
071895c0 97%doc COPYING-CMAKE-SCRIPTS README.rst ECM-doc/*
23845e79 98%{_datadir}/ECM
071895c0 99%{_mandir}/man7/ecm*.7*
This page took 0.05819 seconds and 4 git commands to generate.