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