3 %bcond_without tests # build without tests
5 %define orgname extra-cmake-modules
6 %define kdeframever 5.48
7 Summary: Extra Cmake Modules for KF5
8 Summary(pl.UTF-8): Dodatkowe moduły Cmake'a dla KF5
13 Group: Development/Building
14 Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{orgname}-%{version}.tar.xz
15 # Source0-md5: 58c0a638cf85734c03fb5228b240182e
16 Patch0: %{orgname}-tests.patch
17 URL: http://www.kde.org/
18 BuildRequires: cmake >= 2.8.12
19 BuildRequires: qt5-assistant >= 5.5.1
20 BuildRequires: qt5-linguist
21 BuildRequires: rpmbuild(macros) >= 1.698
22 BuildRequires: sed >= 4.0
23 BuildRequires: sphinx-pdg >= 1.2
24 BuildRequires: tar >= 1:1.22
27 BuildRequires: Qt5Core-devel >= 5.5.1
28 BuildRequires: Qt5Gui-devel >= 5.5.1
29 BuildRequires: Qt5Network-devel >= 5.5.1
30 BuildRequires: Qt5Qml-devel >= 5.5.1
31 BuildRequires: Qt5Quick-devel >= 5.5.1
32 BuildRequires: libstdc++-devel >= 6:4.9
33 BuildRequires: qt5-build >= 5.5.1
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 The Extra CMake Modules package, or ECM, adds to the modules provided
39 by CMake, including both ones used by find_package() to find common
40 software and ones that can be used directly in CMakeLists.txt files to
43 In addition, it provides common build settings used in software
44 produced by the KDE community.
46 While the driving force of this module is to reduce duplication in
47 CMake scripts across KDE software, it is intended to be useful for any
48 software that uses the CMake build system.
50 %description -l pl.UTF-8
51 Pakiet Extra CMake Modules (ECM) dostarcza dodatkowe moduły do tych
52 dostarczanych przez CMake'a, zawierające te używane przez
53 find_package() do szukania popularnego oprogramowania, a także takie,
54 których można używać bezpośrednio w CMakeLists.txt do wykonywania
57 Ponadto pakiet dostarcza wspólne ustawienia budowana używane w
58 oprogramowaniu tworzonym przez społeczność KDE.
60 O ile główną motywacją tego modułu jest zmniejszenie duplikacji w
61 skryptach CMake'a w oprogramowaniu KDE, ma także być przydatny dla
62 dowolnych programów wykorzystujących system budowania CMake.
65 %setup -q -n %{orgname}-%{version}
68 # causes make install failure after running tests
69 %{__sed} -i -e '/ECMToolchainAndroidTest/d' tests/CMakeLists.txt
75 %{!?with_tests:-DBUILD_TESTING=OFF}
80 # GenerateSipBindings wants clang and has libclang checks incompatible with libclang >= 4
81 ctest -E GenerateSipBindings
85 rm -rf $RPM_BUILD_ROOT
87 %{__make} -C build -j1 install \
88 DESTDIR=$RPM_BUILD_ROOT
90 %{__mv} $RPM_BUILD_ROOT%{_docdir}/ECM ECM-doc
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc COPYING-CMAKE-SCRIPTS README.rst ECM-doc/*
99 %{_mandir}/man7/ecm*.7*