]>
Commit | Line | Data |
---|---|---|
01d13c31 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # build without tests | |
071895c0 | 4 | |
23845e79 | 5 | %define orgname extra-cmake-modules |
071895c0 | 6 | %define kdeframever 5.4 |
23845e79 | 7 | Summary: Extra Cmake Modules for KF5 |
01d13c31 | 8 | Name: kf5-%{orgname} |
071895c0 | 9 | Version: 1.4.0 |
2b439efc | 10 | Release: 2 |
071895c0 AM |
11 | License: BSD |
12 | Group: Development/Building | |
01d13c31 | 13 | Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{orgname}-%{version}.tar.xz |
071895c0 | 14 | # Source0-md5: a8a8278f5448a584cffec07692ed9f19 |
23845e79 WF |
15 | URL: http://www.kde.org/ |
16 | BuildRequires: cmake >= 2.8.12 | |
071895c0 | 17 | BuildRequires: qt5-linguist |
3f354ca4 | 18 | BuildRequires: rpmbuild(macros) >= 1.698 |
23845e79 | 19 | BuildRequires: sphinx-pdg |
434fec0f WF |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
23845e79 WF |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %define qt5dir %{_libdir}/qt5 | |
25 | ||
26 | %description | |
27 | The Extra CMake Modules package, or ECM, adds to the modules provided | |
01d13c31 ER |
28 | by CMake, including both ones used by find_package() to find common |
29 | software and ones that can be used directly in CMakeLists.txt files to | |
30 | perform common tasks. | |
23845e79 WF |
31 | |
32 | In addition, it provides common build settings used in software | |
33 | produced by the KDE community. | |
34 | ||
35 | While the driving force of this module is to reduce duplication in | |
36 | CMake scripts across KDE software, it is intended to be useful for any | |
37 | software that uses the CMake build system. | |
38 | ||
23845e79 WF |
39 | %prep |
40 | %setup -q -n %{orgname}-%{version} | |
41 | ||
42 | %build | |
43 | install -d build | |
44 | cd build | |
45 | %cmake \ | |
23845e79 WF |
46 | ../ |
47 | %{__make} | |
48 | ||
071895c0 AM |
49 | %{?with_tests:%{__make} test} |
50 | ||
23845e79 WF |
51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
23845e79 WF |
53 | %{__make} -C build/ install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
071895c0 AM |
56 | mv $RPM_BUILD_ROOT%{_docdir}/ECM ECM-doc |
57 | ||
23845e79 WF |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
071895c0 | 63 | %doc COPYING-CMAKE-SCRIPTS README.rst ECM-doc/* |
23845e79 | 64 | %{_datadir}/ECM |
071895c0 | 65 | %{_mandir}/man7/ecm*.7* |