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
|
|
|
#
|
2014-01-29 09:47:50 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-19 10:52:56 +02:00
|
|
|
|
2010-05-25 18:31:48 +02:00
|
|
|
Name: cmake-gui
|
2014-03-06 10:36:53 +01:00
|
|
|
Version: 3.0.0~rc1
|
2012-01-25 19:09:37 +01:00
|
|
|
Release: 0
|
2014-03-06 10:36:53 +01:00
|
|
|
%define rversion 3.0.0-rc1
|
2010-05-25 18:31:48 +02:00
|
|
|
Url: http://www.cmake.org/
|
2014-03-06 10:36:53 +01:00
|
|
|
Source0: http://www.cmake.org/files/v3.0/cmake-%{rversion}.tar.gz
|
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
|
2010-05-25 18:31:48 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-09-14 16:03:41 +02:00
|
|
|
%if 0%{?suse_version}
|
2010-05-25 18:31:48 +02:00
|
|
|
BuildRequires: fdupes
|
2012-11-02 15:31:52 +01:00
|
|
|
%if 0%{?sles_version} != 10
|
|
|
|
BuildRequires: libarchive-devel
|
2010-09-14 16:03:41 +02:00
|
|
|
%endif
|
2012-11-02 15:31:52 +01:00
|
|
|
BuildRequires: libexpat-devel
|
2010-09-14 16:03:41 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: curl-devel
|
2010-05-25 18:31:48 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: zlib-devel
|
2014-03-06 10:36:53 +01:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
2012-11-02 15:31:52 +01:00
|
|
|
|
2010-05-25 18:31:48 +02:00
|
|
|
Requires: cmake
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a Graphical User Interface for CMake, a cross-platform,
|
|
|
|
open-source make system.
|
|
|
|
|
|
|
|
%prep
|
2014-03-06 10:36:53 +01:00
|
|
|
%setup -q -n cmake-%{rversion}
|
2011-05-26 15:31:30 +02:00
|
|
|
|
2010-05-25 18:31:48 +02:00
|
|
|
%build
|
|
|
|
EXTRA_FLAGS="--qt-gui"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export CFLAGS="$CXXFLAGS"
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--datadir=/share/cmake \
|
|
|
|
--docdir=/share/doc/packages/cmake \
|
|
|
|
--mandir=/share/man \
|
2012-11-02 15:31:52 +01:00
|
|
|
%if 0%{?suse_version} && !0%{?sles_version}
|
2010-05-25 18:31:48 +02:00
|
|
|
--system-libs \
|
2011-04-05 12:51:42 +02:00
|
|
|
%else
|
|
|
|
--system-curl \
|
|
|
|
--system-expat \
|
|
|
|
--system-zlib \
|
|
|
|
--system-bzip2 \
|
|
|
|
--no-system-libarchive \
|
|
|
|
%endif
|
2010-05-25 18:31:48 +02:00
|
|
|
--parallel=0%jobs \
|
|
|
|
--qt-gui
|
2011-09-19 21:29:30 +02:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2010-05-25 18:31:48 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/cmake
|
|
|
|
%suse_update_desktop_file CMake Development IDE Tools Qt
|
|
|
|
# delete files that belong to the 'cmake' package
|
|
|
|
rm -rf %{buildroot}/usr/bin/{cpack,cmake,ctest}
|
|
|
|
rm -rf %{buildroot}/usr/share/cmake
|
2011-10-14 14:45:21 +02:00
|
|
|
rm -rf %{buildroot}/usr/share/aclocal/cmake.m4
|
2010-05-25 18:31:48 +02:00
|
|
|
rm -rf %{buildroot}/usr/share/doc/packages/cmake
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/cmake-gui
|
|
|
|
%{_datadir}/applications/CMake.desktop
|
|
|
|
%{_datadir}/mime/packages/cmakecache.xml
|
|
|
|
%{_datadir}/pixmaps/CMakeSetup32.png
|
|
|
|
|
|
|
|
%changelog
|