2014-02-07 21:41:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package extra-cmake-modules
|
|
|
|
#
|
2019-01-14 13:31:10 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-07 21:41:46 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-16 12:23:23 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-07 21:41:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-08-11 21:06:55 +00:00
|
|
|
%define _tar_path 5.61
|
2017-09-13 09:58:02 +00:00
|
|
|
# Full KF5 version (e.g. 5.33.0)
|
|
|
|
%{!?_kf5_version: %global _kf5_version %{version}}
|
|
|
|
# Last major and minor KF5 version (e.g. 5.33)
|
2018-07-17 08:57:43 +00:00
|
|
|
%{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | awk -F. '{print $1"."$2}')}
|
2018-01-08 13:01:26 +00:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
%bcond_without doc
|
|
|
|
%else
|
|
|
|
%bcond_with doc
|
|
|
|
%endif
|
2019-08-11 21:06:55 +00:00
|
|
|
# Only needed for the package signature condition
|
|
|
|
%bcond_without lang
|
2014-02-07 21:41:46 +00:00
|
|
|
Name: extra-cmake-modules
|
2019-08-11 21:06:55 +00:00
|
|
|
Version: 5.61.0
|
2018-01-08 13:01:26 +00:00
|
|
|
Release: 0
|
2014-02-07 21:41:46 +00:00
|
|
|
Summary: CMake modules
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Tools/Other
|
2018-10-16 12:23:23 +00:00
|
|
|
URL: https://www.kde.org
|
2019-08-11 21:06:55 +00:00
|
|
|
Source: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
|
|
|
%if %{with_lang}
|
|
|
|
Source1: https://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
2017-07-13 19:59:10 +00:00
|
|
|
# PATCH-FIX-OPENSUSE
|
|
|
|
Patch0: bundle-lang.patch
|
2017-01-08 23:36:47 +00:00
|
|
|
BuildRequires: cmake >= 3.0
|
2014-02-07 21:41:46 +00:00
|
|
|
BuildRequires: gcc-c++
|
2015-01-03 19:36:21 +00:00
|
|
|
BuildRequires: kf5-filesystem >= 5.6.0
|
2017-01-08 23:36:47 +00:00
|
|
|
Requires: cmake >= 3.0
|
2014-08-07 22:34:51 +00:00
|
|
|
Requires: gcc-c++
|
2014-05-05 01:14:55 +00:00
|
|
|
Requires: kf5-filesystem
|
2018-01-08 13:01:26 +00:00
|
|
|
Recommends: %{name}-doc
|
2014-05-04 01:07:58 +00:00
|
|
|
Provides: kf5umbrella = 4.99.0
|
|
|
|
Obsoletes: kf5umbrella < 4.99.0
|
2018-01-08 13:01:26 +00:00
|
|
|
%if %{with doc}
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
%endif
|
2014-02-07 21:41:46 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Extra modules and scripts for CMake.
|
|
|
|
|
2019-08-11 21:06:55 +00:00
|
|
|
For more information see https://community.kde.org/KDE_Core/Platform_11/Buildsystem/FindFilesSurvey
|
2014-02-07 21:41:46 +00:00
|
|
|
|
2014-05-05 01:14:55 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for extra-cmake-modules
|
|
|
|
Group: Documentation/Other
|
|
|
|
Requires: %{name} = %{version}
|
2018-08-20 12:58:32 +00:00
|
|
|
BuildArch: noarch
|
2014-05-05 01:14:55 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Extra modules and scripts for CMake.
|
|
|
|
|
2019-08-11 21:06:55 +00:00
|
|
|
For more information see https://community.kde.org/KDE_Core/Platform_11/Buildsystem/FindFilesSurvey
|
2014-05-05 01:14:55 +00:00
|
|
|
This package provides documentation for extra-cmake-modules
|
|
|
|
|
2014-02-07 21:41:46 +00:00
|
|
|
%prep
|
2014-02-08 02:31:40 +00:00
|
|
|
%setup -q
|
2017-07-13 19:59:10 +00:00
|
|
|
%patch0 -p1
|
2014-02-07 21:41:46 +00:00
|
|
|
|
|
|
|
%build
|
2014-02-08 02:31:40 +00:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
%make_jobs
|
2014-02-07 21:41:46 +00:00
|
|
|
|
|
|
|
%install
|
2014-02-08 02:31:40 +00:00
|
|
|
%kf5_makeinstall -C build
|
2014-02-07 21:41:46 +00:00
|
|
|
|
|
|
|
%files
|
2014-05-04 01:07:58 +00:00
|
|
|
%{_datadir}/ECM/
|
|
|
|
|
2018-01-08 13:01:26 +00:00
|
|
|
%if %{with doc}
|
2014-05-04 01:07:58 +00:00
|
|
|
%files doc
|
|
|
|
%doc %{_datadir}/doc/ECM/
|
2014-11-03 18:11:06 +00:00
|
|
|
%doc %lang(en) %{_mandir}/man7/ecm*.7*
|
2014-11-03 17:53:55 +00:00
|
|
|
%endif
|
2014-02-07 21:41:46 +00:00
|
|
|
|
|
|
|
%changelog
|