-%bcond_without tests
+#
+# Conditional build:
+%bcond_without tests # build without tests
-%define _state stable
%define orgname extra-cmake-modules
%define kdeframever 5.4
-
Summary: Extra Cmake Modules for KF5
-Name: kf5-extra-cmake-modules
+Name: kf5-%{orgname}
Version: 1.4.0
-Release: 1
+Release: 2
License: BSD
Group: Development/Building
-Source0: http://download.kde.org/%{_state}/frameworks/%{kdeframever}/%{orgname}-%{version}.tar.xz
+Source0: http://download.kde.org/stable/frameworks/%{kdeframever}/%{orgname}-%{version}.tar.xz
# Source0-md5: a8a8278f5448a584cffec07692ed9f19
URL: http://www.kde.org/
BuildRequires: cmake >= 2.8.12
BuildRequires: qt5-linguist
-BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: rpmbuild(macros) >= 1.698
BuildRequires: sphinx-pdg
BuildRequires: tar >= 1:1.22
BuildRequires: xz
%description
The Extra CMake Modules package, or ECM, adds to the modules provided
-by CMake, including both ones used by ``find_package()`` to find
-common software and ones that can be used directly in
-``CMakeLists.txt`` files to perform common tasks.
+by CMake, including both ones used by find_package() to find common
+software and ones that can be used directly in CMakeLists.txt files to
+perform common tasks.
In addition, it provides common build settings used in software
produced by the KDE community.
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} -C build/ install \
DESTDIR=$RPM_BUILD_ROOT