forked from pool/cmake
Accepting request 773226 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/773226 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=169
This commit is contained in:
commit
0f2e881eb9
@ -1,14 +1,7 @@
|
|||||||
<constraints>
|
<constraints>
|
||||||
<overwrite>
|
|
||||||
<conditions>
|
|
||||||
<arch>aarch64</arch>
|
|
||||||
<arch>ppc64</arch>
|
|
||||||
<arch>ppc64le</arch>
|
|
||||||
</conditions>
|
|
||||||
<hardware>
|
<hardware>
|
||||||
<disk>
|
<disk>
|
||||||
<size unit="G">6</size>
|
<size unit="G">7</size>
|
||||||
</disk>
|
</disk>
|
||||||
</hardware>
|
</hardware>
|
||||||
</overwrite>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
|
<package>mini</package>
|
||||||
<package>gui</package>
|
<package>gui</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
@ -1,3 +1,42 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 10 15:26:56 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Revert LIBDIR change in macros - it is inconsistent (all other
|
||||||
|
INSTALL_<dir>s use absolute paths), unneeded (paths may be
|
||||||
|
absolute or relative), and breaks a number of packages.
|
||||||
|
- Update minimum libarchive version, >= 3.3.3.
|
||||||
|
- Do not flag macros as config file.
|
||||||
|
- Adjust constraints (7G disk space is required, independent
|
||||||
|
of architecture).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 7 02:11:06 UTC 2020 - Simon Lees <sflees@suse.de>
|
||||||
|
|
||||||
|
- Revert "use cmake generics in marcos.cmake" it breaks many
|
||||||
|
cases in stagings.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 5 12:50:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add new -mini flavor in order to break up cycles
|
||||||
|
* make sure the default cmake links now all system libraries
|
||||||
|
and mini uses bundled stuff as needed
|
||||||
|
- Switch to python3 variant of Sphinx on the manpage/docu creation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 14 23:14:08 UTC 2020 - Christoph Junghans <junghans@votca.org>
|
||||||
|
|
||||||
|
- use cmake generics in marcos.cmake
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 14 07:36:33 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Fix setting CMAKE_INSTALL_LIBDIR in cmake macro
|
||||||
|
* This is a relative path, see `cmake --help-module GNUInstallDirs`
|
||||||
|
- Do NOT set -DCMAKE_SKIP_RPATH:BOOL=OFF
|
||||||
|
* A lot of applications have private libraries in a subdirectory
|
||||||
|
and require linking with RPATH which is totally valid.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 20 10:09:57 UTC 2019 - Christoph G <foss@grueninger.de>
|
Fri Dec 20 10:09:57 UTC 2019 - Christoph G <foss@grueninger.de>
|
||||||
|
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
%if "%{?_lib}" == "lib64" \
|
%if "%{?_lib}" == "lib64" \
|
||||||
-DLIB_SUFFIX=64 \\\
|
-DLIB_SUFFIX=64 \\\
|
||||||
%endif \
|
%endif \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \\\
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\
|
||||||
-DBUILD_SHARED_LIBS:BOOL=ON \\\
|
-DBUILD_SHARED_LIBS:BOOL=ON \\\
|
||||||
-DBUILD_STATIC_LIBS:BOOL=OFF \\\
|
-DBUILD_STATIC_LIBS:BOOL=OFF \\\
|
||||||
|
91
cmake.spec
91
cmake.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cmake
|
# spec file for package cmake
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,16 +18,23 @@
|
|||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "gui"
|
%if "%{flavor}" == "gui"
|
||||||
%define psuffix -gui
|
%define psuffix -ui
|
||||||
%bcond_without gui
|
%bcond_without gui
|
||||||
%else
|
%else
|
||||||
%define psuffix %{nil}
|
|
||||||
%bcond_with gui
|
%bcond_with gui
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{flavor}" == "mini"
|
||||||
|
%define psuffix -mini
|
||||||
|
%bcond_without mini
|
||||||
|
%else
|
||||||
|
%bcond_with mini
|
||||||
|
%endif
|
||||||
%define shortversion 3.16
|
%define shortversion 3.16
|
||||||
Name: cmake%{psuffix}
|
Name: cmake%{?psuffix}
|
||||||
Version: 3.16.2
|
Version: 3.16.2
|
||||||
Release: 0
|
Release: 0
|
||||||
|
Summary: Cross-platform make system
|
||||||
|
License: BSD-3-Clause
|
||||||
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
|
||||||
@ -42,53 +49,52 @@ Patch0: cmake-fix-ruby-test.patch
|
|||||||
Patch1: feature-suse-python-interp-search-order.patch
|
Patch1: feature-suse-python-interp-search-order.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libcurl-mini-devel
|
|
||||||
# this is commented as it would create dependancy cycle between jsoncpp and cmake
|
|
||||||
#if 0 % { ? suse_version} > 1320
|
|
||||||
#BuildRequires: pkgconfig(jsoncpp)
|
|
||||||
#endif
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: rhash-devel
|
BuildRequires: rhash-devel
|
||||||
BuildRequires: pkgconfig(bzip2)
|
BuildRequires: pkgconfig(bzip2)
|
||||||
BuildRequires: pkgconfig(expat)
|
BuildRequires: pkgconfig(expat)
|
||||||
BuildRequires: pkgconfig(libarchive) >= 3.0.2
|
|
||||||
BuildRequires: pkgconfig(liblzma)
|
BuildRequires: pkgconfig(liblzma)
|
||||||
|
BuildRequires: pkgconfig(libssl)
|
||||||
BuildRequires: pkgconfig(libuv) >= 1.10
|
BuildRequires: pkgconfig(libuv) >= 1.10
|
||||||
BuildRequires: pkgconfig(ncurses)
|
BuildRequires: pkgconfig(ncurses)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
Requires: make
|
Requires: make
|
||||||
%if %{with gui}
|
|
||||||
Summary: CMake graphical user interface
|
|
||||||
License: BSD-3-Clause
|
|
||||||
%else
|
|
||||||
Summary: Cross-platform make system
|
|
||||||
License: BSD-3-Clause
|
|
||||||
%endif
|
|
||||||
%if %{with gui}
|
|
||||||
BuildRequires: python-sphinx
|
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
BuildRequires: pkgconfig(Qt5Widgets)
|
|
||||||
Requires: cmake
|
|
||||||
Recommends: cmake-man
|
|
||||||
%else
|
|
||||||
# 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
|
||||||
|
%if %{with mini}
|
||||||
|
Requires: this-is-only-for-build-envs
|
||||||
|
Conflicts: cmake
|
||||||
|
Provides: cmake = %{version}
|
||||||
|
%else
|
||||||
|
BuildRequires: pkgconfig(jsoncpp) >= 1.4.1
|
||||||
|
BuildRequires: pkgconfig(libarchive) >= 3.3.3
|
||||||
|
BuildRequires: pkgconfig(libcurl)
|
||||||
|
BuildRequires: pkgconfig(libzstd)
|
||||||
|
Conflicts: cmake-mini
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with gui}
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
BuildRequires: pkgconfig(Qt5Widgets)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
CMake is a cross-platform build system.
|
||||||
|
|
||||||
%package -n cmake-man
|
%package -n cmake-man
|
||||||
Summary: Manual pages for cmake, a cross-platform make system
|
Summary: Manual pages for cmake, a cross-platform make system
|
||||||
|
Supplements: cmake
|
||||||
|
|
||||||
%description -n cmake-man
|
%description -n cmake-man
|
||||||
Manual pages for cmake, a cross-platform make system.
|
Manual pages for cmake, a cross-platform make system.
|
||||||
|
|
||||||
%if %{with gui}
|
%package -n cmake-gui
|
||||||
%description
|
Summary: CMake graphical user interface
|
||||||
|
Requires: cmake
|
||||||
|
|
||||||
|
%description -n cmake-gui
|
||||||
This is a Graphical User Interface for CMake, a cross-platform
|
This is a Graphical User Interface for CMake, a cross-platform
|
||||||
build system.
|
build system.
|
||||||
%else
|
|
||||||
%description
|
|
||||||
CMake is a cross-platform build system.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
# The publisher doesn't sign the source tarball, but a signatures file containing multiple hashes.
|
# The publisher doesn't sign the source tarball, but a signatures file containing multiple hashes.
|
||||||
@ -107,9 +113,12 @@ export CXXFLAGS="%{optflags}"
|
|||||||
--docdir=/share/doc/packages/cmake \
|
--docdir=/share/doc/packages/cmake \
|
||||||
--mandir=/share/man \
|
--mandir=/share/man \
|
||||||
--system-libs \
|
--system-libs \
|
||||||
|
%if %{with mini}
|
||||||
|
--no-system-curl \
|
||||||
--no-system-jsoncpp \
|
--no-system-jsoncpp \
|
||||||
--no-system-libarchive \
|
--no-system-libarchive \
|
||||||
--no-system-zstd \
|
--no-system-zstd \
|
||||||
|
%endif
|
||||||
--parallel=0%{jobs} \
|
--parallel=0%{jobs} \
|
||||||
--verbose \
|
--verbose \
|
||||||
%if %{with gui}
|
%if %{with gui}
|
||||||
@ -119,7 +128,7 @@ export CXXFLAGS="%{optflags}"
|
|||||||
--no-qt-gui \
|
--no-qt-gui \
|
||||||
%endif
|
%endif
|
||||||
%{nil}
|
%{nil}
|
||||||
make VERBOSE=1 %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@ -144,20 +153,22 @@ install -p -m0755 -D %{SOURCE4} %{buildroot}%{_libexecdir}/rpm/cmake.prov
|
|||||||
|
|
||||||
# Install bash completion symlinks
|
# Install bash completion symlinks
|
||||||
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
||||||
for f in %{buildroot}%{_datadir}/%{name}/completions/*
|
for f in %{buildroot}%{_datadir}/cmake/completions/*
|
||||||
do
|
do
|
||||||
ln -s ../../%{name}/completions/$(basename $f) %{buildroot}%{_datadir}/bash-completion/completions
|
ln -s ../../cmake/completions/$(basename $f) %{buildroot}%{_datadir}/bash-completion/completions
|
||||||
done
|
done
|
||||||
|
|
||||||
# cmake-mode.el
|
# cmake-mode.el
|
||||||
%define cmake_mode_el %{_datadir}/emacs/site-lisp/%{name}-mode.el
|
%define cmake_mode_el %{_datadir}/emacs/site-lisp/cmake-mode.el
|
||||||
install -D -p -m 0644 Auxiliary/cmake-mode.el %{buildroot}%cmake_mode_el
|
install -D -p -m 0644 Auxiliary/cmake-mode.el %{buildroot}%cmake_mode_el
|
||||||
rm %{buildroot}%{_datadir}/%{name}/editors/emacs/cmake-mode.el
|
rm %{buildroot}%{_datadir}/cmake/editors/emacs/cmake-mode.el
|
||||||
# fix: W: files-duplicate (%license covers already)
|
# fix: W: files-duplicate (%%license covers already)
|
||||||
rm %{buildroot}%{_docdir}/%{name}/Copyright.txt
|
rm %{buildroot}%{_docdir}/cmake/Copyright.txt
|
||||||
|
|
||||||
%fdupes %{buildroot}%{_datadir}/cmake
|
%fdupes %{buildroot}%{_datadir}/cmake
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == ""
|
||||||
%check
|
%check
|
||||||
# Excluded tests:
|
# Excluded tests:
|
||||||
# TestUpload: uses internet connection
|
# TestUpload: uses internet connection
|
||||||
@ -172,7 +183,7 @@ rm %{buildroot}%{_docdir}/%{name}/Copyright.txt
|
|||||||
%files -n cmake-gui
|
%files -n cmake-gui
|
||||||
%license Copyright.txt
|
%license Copyright.txt
|
||||||
%{_bindir}/cmake-gui
|
%{_bindir}/cmake-gui
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/cmake-gui.desktop
|
||||||
%{_datadir}/mime/packages/cmakecache.xml
|
%{_datadir}/mime/packages/cmakecache.xml
|
||||||
%dir %{_datadir}/icons/hicolor
|
%dir %{_datadir}/icons/hicolor
|
||||||
%dir %{_datadir}/icons/hicolor/*
|
%dir %{_datadir}/icons/hicolor/*
|
||||||
@ -188,7 +199,7 @@ rm %{buildroot}%{_docdir}/%{name}/Copyright.txt
|
|||||||
%files
|
%files
|
||||||
%license Copyright.txt
|
%license Copyright.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%config %{_rpmconfigdir}/macros.d/macros.cmake
|
%{_rpmconfigdir}/macros.d/macros.cmake
|
||||||
%{_libexecdir}/rpm
|
%{_libexecdir}/rpm
|
||||||
%{_bindir}/cpack
|
%{_bindir}/cpack
|
||||||
%{_bindir}/cmake
|
%{_bindir}/cmake
|
||||||
@ -198,7 +209,7 @@ rm %{buildroot}%{_docdir}/%{name}/Copyright.txt
|
|||||||
%{_libdir}/cmake
|
%{_libdir}/cmake
|
||||||
%dir %{_datadir}/aclocal
|
%dir %{_datadir}/aclocal
|
||||||
%{_datadir}/aclocal/cmake.m4
|
%{_datadir}/aclocal/cmake.m4
|
||||||
%doc %{_docdir}/%{name}
|
%doc %{_docdir}/cmake
|
||||||
%{_datadir}/bash-completion
|
%{_datadir}/bash-completion
|
||||||
%cmake_mode_el
|
%cmake_mode_el
|
||||||
%dir %{dirname:%cmake_mode_el}
|
%dir %{dirname:%cmake_mode_el}
|
||||||
|
Loading…
Reference in New Issue
Block a user