4 %define orgname extra-cmake-modules
5 %define kdeframever 5.4
7 Summary: Extra Cmake Modules for KF5
8 Name: kf5-extra-cmake-modules
12 Group: Development/Building
13 Source0: http://download.kde.org/%{_state}/frameworks/%{kdeframever}/%{orgname}-%{version}.tar.xz
14 # Source0-md5: a8a8278f5448a584cffec07692ed9f19
15 URL: http://www.kde.org/
16 BuildRequires: cmake >= 2.8.12
17 BuildRequires: qt5-linguist
18 BuildRequires: rpmbuild(macros) >= 1.164
19 BuildRequires: sphinx-pdg
20 BuildRequires: tar >= 1:1.22
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define qt5dir %{_libdir}/qt5
27 The Extra CMake Modules package, or ECM, adds to the modules provided
28 by CMake, including both ones used by ``find_package()`` to find
29 common software and ones that can be used directly in
30 ``CMakeLists.txt`` files to perform common tasks.
32 In addition, it provides common build settings used in software
33 produced by the KDE community.
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.
40 %setup -q -n %{orgname}-%{version}
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} -C build/ install \
55 DESTDIR=$RPM_BUILD_ROOT
57 mv $RPM_BUILD_ROOT%{_docdir}/ECM ECM-doc
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc COPYING-CMAKE-SCRIPTS README.rst ECM-doc/*
66 %{_mandir}/man7/ecm*.7*