SHA256
3
0
forked from pool/cmake

Accepting request 726613 from devel:tools:building

OBS-URL: https://build.opensuse.org/request/show/726613
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=164
This commit is contained in:
Dominique Leuenberger 2019-08-30 12:39:50 +00:00 committed by Git OBS Bridge
commit 943b8d0087
2 changed files with 22 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 27 06:35:24 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Trim metadata redundancies from description.
- Avoid use of em dashes in summaries.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 13 12:43:58 UTC 2019 - Martin Pluskal <mpluskal@suse.com> Tue Aug 13 12:43:58 UTC 2019 - Martin Pluskal <mpluskal@suse.com>

View File

@ -18,10 +18,19 @@
%define flavor @BUILD_FLAVOR@%{nil} %define flavor @BUILD_FLAVOR@%{nil}
%define shortversion 3.15 %define shortversion 3.15
Version: 3.15.1 %if "%flavor" == "gui"
Release: 0 Name: cmake-%{flavor}
Summary: CMake graphical user interface
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Tools/Building Group: Development/Tools/Building
%else
Name: cmake
Summary: Cross-platform make system
License: BSD-3-Clause
Group: Development/Tools/Building
%endif
Version: 3.15.1
Release: 0
URL: https://www.cmake.org/ URL: https://www.cmake.org/
Source0: https://www.cmake.org/files/v%{shortversion}/cmake-%{version}.tar.gz Source0: https://www.cmake.org/files/v%{shortversion}/cmake-%{version}.tar.gz
Source1: cmake.macros Source1: cmake.macros
@ -54,33 +63,29 @@ BuildRequires: zlib-devel
BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(liblzma)
Requires: make Requires: make
%if "%flavor" == "gui" %if "%flavor" == "gui"
Name: cmake-%{flavor}
Summary: CMake graphical user interface
BuildRequires: python-sphinx BuildRequires: python-sphinx
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Widgets)
Requires: cmake Requires: cmake
Recommends: cmake-man Recommends: cmake-man
%else %else
Name: cmake
Summary: Cross-platform, open-source make system
# bnc#953842 - A python file is shipped so require python base so it can be run. # bnc#953842 - A python file is shipped so require python base so it can be run.
Requires: python3-base Requires: python3-base
%endif %endif
%if "%flavor" == "gui" %if "%flavor" == "gui"
%description %description
This is a Graphical User Interface for CMake, a cross-platform, This is a Graphical User Interface for CMake, a cross-platform
open-source build system. build system.
%package -n cmake-man %package -n cmake-man
Summary: Cross-platform, open-source make system - manual pages Summary: Manual pages for cmake, a cross-platform make system
Group: Development/Tools/Building Group: Development/Tools/Building
%description -n cmake-man %description -n cmake-man
Manual pages for cmake, Cross-platform, open-source make system Manual pages for cmake, a cross-platform make system.
%else %else
%description %description
CMake is a cross-platform, open-source build system CMake is a cross-platform build system.
%endif %endif
%prep %prep
@ -151,7 +156,6 @@ rm %{buildroot}%{_docdir}/%{name}/Copyright.txt
%fdupes %{buildroot}%{_datadir}/cmake %fdupes %{buildroot}%{_datadir}/cmake
%check %check
# Excluded tests: # Excluded tests:
# TestUpload: uses internet connection # TestUpload: uses internet connection