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