2014-02-07 22:41:46 +01:00
|
|
|
#
|
|
|
|
# spec file for package extra-cmake-modules
|
|
|
|
#
|
2021-01-09 13:18:39 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2014-02-07 22:41:46 +01: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 14:23:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-07 22:41:46 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-04-10 09:29:09 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "doc"
|
|
|
|
%global pkg_suffix -doc
|
|
|
|
%endif
|
|
|
|
|
2018-01-08 14:01:26 +01:00
|
|
|
%bcond_without doc
|
2022-01-09 11:14:58 +01:00
|
|
|
%bcond_without released
|
2022-04-10 09:29:09 +02:00
|
|
|
Name: extra-cmake-modules%{?pkg_suffix}
|
2024-02-10 13:47:32 +01:00
|
|
|
Version: 5.115.0
|
2018-01-08 14:01:26 +01:00
|
|
|
Release: 0
|
2014-02-07 22:41:46 +01:00
|
|
|
Summary: CMake modules
|
|
|
|
License: BSD-3-Clause
|
2018-10-16 14:23:23 +02:00
|
|
|
URL: https://www.kde.org
|
2022-04-10 09:29:09 +02:00
|
|
|
Source: extra-cmake-modules-%{version}.tar.xz
|
2022-01-09 11:14:58 +01:00
|
|
|
%if %{with released}
|
2022-04-10 09:29:09 +02:00
|
|
|
Source1: extra-cmake-modules-%{version}.tar.xz.sig
|
2019-08-11 23:06:55 +02:00
|
|
|
Source2: frameworks.keyring
|
|
|
|
%endif
|
2017-07-13 21:59:10 +02:00
|
|
|
# PATCH-FIX-OPENSUSE
|
|
|
|
Patch0: bundle-lang.patch
|
2021-06-13 09:05:57 +02:00
|
|
|
BuildRequires: cmake >= 3.16
|
2014-02-07 22:41:46 +01:00
|
|
|
BuildRequires: gcc-c++
|
2019-10-11 14:55:44 +02:00
|
|
|
BuildRequires: kf5-filesystem
|
2022-04-10 09:29:09 +02:00
|
|
|
%if "%{flavor}" != "doc"
|
2021-06-13 09:05:57 +02:00
|
|
|
Requires: cmake >= 3.16
|
2014-08-08 00:34:51 +02:00
|
|
|
Requires: gcc-c++
|
2014-05-05 03:14:55 +02:00
|
|
|
Requires: kf5-filesystem
|
2022-04-10 09:29:09 +02:00
|
|
|
Recommends: extra-cmake-modules-doc
|
2014-05-04 03:07:58 +02:00
|
|
|
Provides: kf5umbrella = 4.99.0
|
|
|
|
Obsoletes: kf5umbrella < 4.99.0
|
2022-04-10 09:29:09 +02:00
|
|
|
%else
|
2018-01-08 14:01:26 +01:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
%endif
|
2018-08-20 14:58:32 +02:00
|
|
|
BuildArch: noarch
|
2014-05-05 03:14:55 +02:00
|
|
|
|
2022-04-10 09:29:09 +02:00
|
|
|
%description
|
2014-05-05 03:14:55 +02:00
|
|
|
Extra modules and scripts for CMake.
|
2022-04-10 09:29:09 +02:00
|
|
|
%if "%{flavor}" == "doc"
|
2014-05-05 03:14:55 +02:00
|
|
|
|
|
|
|
This package provides documentation for extra-cmake-modules
|
2022-04-10 09:29:09 +02:00
|
|
|
%endif
|
2014-05-05 03:14:55 +02:00
|
|
|
|
2014-02-07 22:41:46 +01:00
|
|
|
%prep
|
2022-04-10 09:29:09 +02:00
|
|
|
%autosetup -p1 -n extra-cmake-modules-%{version}
|
2014-02-07 22:41:46 +01:00
|
|
|
|
|
|
|
%build
|
2021-05-09 09:41:53 +02:00
|
|
|
%cmake_kf5 -d build
|
|
|
|
%cmake_build
|
2014-02-07 22:41:46 +01:00
|
|
|
|
|
|
|
%install
|
2021-05-09 09:41:53 +02:00
|
|
|
%kf5_makeinstall -C build
|
2014-02-07 22:41:46 +01:00
|
|
|
|
2022-04-10 09:29:09 +02:00
|
|
|
%if "%{flavor}" == "doc"
|
|
|
|
rm -r %{buildroot}%{_datadir}/ECM
|
|
|
|
%endif
|
|
|
|
|
2014-02-07 22:41:46 +01:00
|
|
|
%files
|
2022-04-10 09:29:09 +02:00
|
|
|
%if "%{flavor}" != "doc"
|
2020-09-11 08:32:58 +02:00
|
|
|
%license LICENSES/*
|
2014-05-04 03:07:58 +02:00
|
|
|
%{_datadir}/ECM/
|
2022-04-10 09:29:09 +02:00
|
|
|
%else
|
2014-05-04 03:07:58 +02:00
|
|
|
%doc %{_datadir}/doc/ECM/
|
2014-11-03 19:11:06 +01:00
|
|
|
%doc %lang(en) %{_mandir}/man7/ecm*.7*
|
2014-11-03 18:53:55 +01:00
|
|
|
%endif
|
2014-02-07 22:41:46 +01:00
|
|
|
|
|
|
|
%changelog
|