1 # TODO where to put files and docs of KF5
3 %define orgname extra-cmake-modules
5 Summary: Extra Cmake Modules for KF5
6 Name: kf5-extra-cmake-modules
9 License: See COPYING-CMAKE-SCRIPTS
11 Source0: ftp://ftp.kde.org/pub/kde/%{_state}/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)
19 %define qt5dir %{_libdir}/qt5
22 The Extra CMake Modules package, or ECM, adds to the modules provided
23 by CMake, including both ones used by ``find_package()`` to find
24 common software and ones that can be used directly in
25 ``CMakeLists.txt`` files to perform common tasks.
27 In addition, it provides common build settings used in software
28 produced by the KDE community.
30 While the driving force of this module is to reduce duplication in
31 CMake scripts across KDE software, it is intended to be useful for any
32 software that uses the CMake build system.
35 Summary: Documentation for ECM
40 Documentation for ECM.
43 %setup -q -n %{orgname}-%{version}
49 -DBIN_INSTALL_DIR=%{_bindir} \
50 -DKCFG_INSTALL_DIR=%{_datadir}/config.kcfg \
51 -DPLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
52 -DQT_PLUGIN_INSTALL_DIR=%{qt5dir}/plugins \
53 -DQML_INSTALL_DIR=%{qt5dir}/qml \
54 -DIMPORTS_INSTALL_DIR=%{qt5dirs}/imports \
55 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
56 -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
57 -DKF5_LIBEXEC_INSTALL_DIR=%{_libexecdir} \
58 -DKF5_INCLUDE_INSTALL_DIR=%{_includedir} \
59 -DECM_MKSPECS_INSTALL_DIR=%{qt5dir}/mkspecs/modules \
60 -D_IMPORT_PREFIX=%{_prefix} \
65 rm -rf $RPM_BUILD_ROOT
67 %{__make} -C build/ install \
68 DESTDIR=$RPM_BUILD_ROOT
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc COPYING-CMAKE-SCRIPTS README.rst
80 %defattr(644,root,root,755)