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