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