1 # TODO where to put files and docs of KF5
2 %define orgname extra-cmake-modules
5 Summary: Extra Cmake Modules for KF5
6 Name: kde5-extra-cmake-modules
9 License: See COPYING-CMAKE-SCRIPTS
11 Source0: ftp://ftp.kde.org/pub/kde/stable/frameworks/5.0.0/%{orgname}-%{version}.tar.xz
12 # Source0-md5: a7b9e8756fdc2b3a8518ad9f9d21dfd5
13 URL: http://www.kde.org/
14 BuildRequires: cmake >= 2.8.12
15 BuildRequires: rpmbuild(macros) >= 1.164
16 BuildRequires: sphinx-pdg
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The Extra CMake Modules package, or ECM, adds to the modules provided
21 by CMake, including both ones used by ``find_package()`` to find
22 common software and ones that can be used directly in
23 ``CMakeLists.txt`` files to perform common tasks.
25 In addition, it provides common build settings used in software
26 produced by the KDE community.
28 While the driving force of this module is to reduce duplication in
29 CMake scripts across KDE software, it is intended to be useful for any
30 software that uses the CMake build system.
33 Summary: Documentation for ECM
35 %if "%{_rpmversion}" >= "5"
40 Documentation for ECM.
43 %setup -q -n %{orgname}-%{version}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} -C build/ install \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc COPYING-CMAKE-SCRIPTS README.rst
68 %defattr(644,root,root,755)