2010-05-25 18:31:48 +02:00
|
|
|
#
|
2011-05-26 15:31:30 +02:00
|
|
|
# spec file for package cmake-gui
|
2010-05-25 18:31:48 +02:00
|
|
|
#
|
2019-01-15 09:08:01 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-05-25 18:31:48 +02: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-11-12 14:59:48 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-05-25 18:31:48 +02:00
|
|
|
#
|
|
|
|
|
2012-04-19 10:52:56 +02:00
|
|
|
|
2018-11-22 10:14:24 +01:00
|
|
|
%define shortversion 3.13
|
2019-02-15 10:23:04 +01:00
|
|
|
# exclude for SLE 12 and Leap 42.x
|
|
|
|
%if 0%{?suse_version} == 1315
|
|
|
|
%define system_libuv OFF
|
|
|
|
%else
|
|
|
|
%define system_libuv ON
|
|
|
|
BuildRequires: libuv-devel >= 1.10
|
|
|
|
%endif
|
2010-05-25 18:31:48 +02:00
|
|
|
Name: cmake-gui
|
2019-02-11 12:48:08 +01:00
|
|
|
Version: 3.13.4
|
2012-01-25 19:09:37 +01:00
|
|
|
Release: 0
|
2010-05-25 18:31:48 +02:00
|
|
|
Summary: CMake graphical user interface
|
2012-01-25 19:09:37 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Tools/Building
|
2018-04-04 12:57:33 +02:00
|
|
|
URL: https://www.cmake.org/
|
2018-03-17 09:57:59 +01:00
|
|
|
Source0: https://www.cmake.org/files/v%{shortversion}/cmake-%{version}.tar.gz
|
|
|
|
Source5: https://www.cmake.org/files/v%{shortversion}/cmake-%{version}-SHA-256.txt
|
|
|
|
Source6: https://www.cmake.org/files/v%{shortversion}/cmake-%{version}-SHA-256.txt.asc
|
2015-08-15 10:18:06 +02:00
|
|
|
Source7: cmake.keyring
|
2015-02-16 12:01:37 +01:00
|
|
|
# PATCH-FIX-UPSTREAM form.patch -- set the correct include path for the ncurses includes
|
|
|
|
Patch4: form.patch
|
|
|
|
# PATCH-FIX-UPSTREAM system-libs.patch -- allow choosing between bundled and system jsoncpp & form libs
|
|
|
|
Patch5: system-libs.patch
|
2014-06-21 12:43:44 +02:00
|
|
|
BuildRequires: curl-devel
|
2010-05-25 18:31:48 +02:00
|
|
|
BuildRequires: fdupes
|
2014-06-21 12:43:44 +02:00
|
|
|
BuildRequires: gcc-c++
|
2014-12-11 17:18:12 +01:00
|
|
|
BuildRequires: libarchive-devel >= 3.0.2
|
2012-11-02 15:31:52 +01:00
|
|
|
BuildRequires: libexpat-devel
|
2018-04-04 12:57:33 +02:00
|
|
|
BuildRequires: openssl-devel
|
2015-02-19 16:19:51 +01:00
|
|
|
# this is commented as it would create dependancy cycle between jsoncpp and cmake
|
|
|
|
#if 0%{?suse_version} > 1320
|
|
|
|
#BuildRequires: pkgconfig(jsoncpp)
|
|
|
|
#endif
|
2016-08-26 12:34:52 +02:00
|
|
|
BuildRequires: pkgconfig
|
2016-04-16 17:19:18 +02:00
|
|
|
BuildRequires: python-sphinx
|
2018-04-04 12:57:33 +02:00
|
|
|
BuildRequires: rhash-devel
|
2016-04-16 17:19:18 +02:00
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: zlib-devel
|
2016-08-26 12:34:52 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2014-03-06 10:36:53 +01:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
2014-10-29 08:53:39 +01:00
|
|
|
BuildRequires: pkgconfig(liblzma)
|
2010-05-25 18:31:48 +02:00
|
|
|
Requires: cmake
|
2014-07-03 10:00:27 +02:00
|
|
|
Recommends: cmake-man
|
2010-05-25 18:31:48 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a Graphical User Interface for CMake, a cross-platform,
|
2014-06-11 12:42:34 +02:00
|
|
|
open-source build system.
|
2010-05-25 18:31:48 +02:00
|
|
|
|
2014-07-03 10:00:27 +02:00
|
|
|
%package -n cmake-man
|
|
|
|
Summary: Cross-platform, open-source make system - manual pages
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
|
|
|
|
%description -n cmake-man
|
|
|
|
Manual pages for cmake, Cross-platform, open-source make system
|
|
|
|
|
2010-05-25 18:31:48 +02:00
|
|
|
%prep
|
2015-08-15 10:18:06 +02:00
|
|
|
# The publisher doesn't sign the source tarball, but a signatures file containing multiple hashes.
|
|
|
|
# Verify hashes in that file against source tarball.
|
|
|
|
echo "`grep cmake-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOURCE0}" | sha256sum -c
|
2015-03-16 11:26:41 +01:00
|
|
|
%setup -q -n cmake-%{version}
|
2015-02-16 12:01:37 +01:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2011-05-26 15:31:30 +02:00
|
|
|
|
2010-05-25 18:31:48 +02:00
|
|
|
%build
|
2016-08-26 12:34:52 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
# This is not autotools configure
|
2010-05-25 18:31:48 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--datadir=/share/cmake \
|
|
|
|
--docdir=/share/doc/packages/cmake \
|
|
|
|
--mandir=/share/man \
|
2014-07-02 15:04:50 +02:00
|
|
|
--sphinx-man \
|
2010-05-25 18:31:48 +02:00
|
|
|
--system-libs \
|
2015-02-16 12:01:37 +01:00
|
|
|
--no-system-jsoncpp \
|
2014-06-21 12:43:44 +02:00
|
|
|
--parallel=0%{jobs} \
|
2016-11-18 04:18:32 +01:00
|
|
|
--verbose \
|
|
|
|
--qt-gui \
|
|
|
|
-- \
|
2018-05-23 09:32:09 +02:00
|
|
|
-DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=%{system_libuv}
|
2011-09-19 21:29:30 +02:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2010-05-25 18:31:48 +02:00
|
|
|
|
|
|
|
%install
|
2017-11-03 16:08:42 +01:00
|
|
|
%make_install
|
2010-05-25 18:31:48 +02:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/cmake
|
2017-08-15 00:24:29 +02:00
|
|
|
%suse_update_desktop_file -r %{name} CMake Development IDE Tools Qt
|
|
|
|
|
2010-05-25 18:31:48 +02:00
|
|
|
# delete files that belong to the 'cmake' package
|
2014-06-21 12:43:44 +02:00
|
|
|
rm -rf %{buildroot}%{_bindir}/{cpack,cmake,ctest}
|
|
|
|
rm -rf %{buildroot}%{_datadir}/cmake
|
|
|
|
rm -rf %{buildroot}%{_datadir}/aclocal/cmake.m4
|
|
|
|
rm -rf %{buildroot}%{_docdir}/cmake
|
2010-05-25 18:31:48 +02:00
|
|
|
|
|
|
|
%files
|
2018-12-20 09:29:42 +01:00
|
|
|
%license Copyright.txt
|
2010-05-25 18:31:48 +02:00
|
|
|
%{_bindir}/cmake-gui
|
2017-08-15 00:24:29 +02:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2010-05-25 18:31:48 +02:00
|
|
|
%{_datadir}/mime/packages/cmakecache.xml
|
2015-02-16 12:01:37 +01:00
|
|
|
%dir %{_datadir}/icons/hicolor
|
|
|
|
%dir %{_datadir}/icons/hicolor/*
|
|
|
|
%dir %{_datadir}/icons/hicolor/*/*
|
|
|
|
%{_datadir}/icons/hicolor/128x128/apps/CMakeSetup.png
|
|
|
|
%{_datadir}/icons/hicolor/32x32/apps/CMakeSetup.png
|
2014-07-03 10:00:27 +02:00
|
|
|
|
|
|
|
%files -n cmake-man
|
2018-12-20 09:29:42 +01:00
|
|
|
%license Copyright.txt
|
2014-07-03 10:00:27 +02:00
|
|
|
%{_mandir}/man7/*
|
|
|
|
%{_mandir}/man1/*
|
2010-05-25 18:31:48 +02:00
|
|
|
|
|
|
|
%changelog
|