A new user interface for you!

File cmake-gui.spec of Package cmake

# spec file for package cmake-gui
# Copyright (c) 2014 ownCloud GmbH, Nuernberg, Germany.
# 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, issues or comments via http://github.com/owncloud/mirall/issues

Name:           cmake-gui
Release:        0
Url:            http://www.cmake.org/
Source0:        http://www.cmake.org/files/v2.8/cmake-%{version}.tar.gz
Summary:        CMake graphical user interface
License:        BSD-3-Clause
Group:          Development/Tools/Building
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  fdupes
%if 0%{?sles_version} != 10
BuildRequires:  libarchive-devel
BuildRequires:  libexpat-devel
BuildRequires:  expat-devel
BuildRequires:  curl-devel
BuildRequires:  gcc-c++
BuildRequires:  libqt4-devel
BuildRequires:  openssl-devel
BuildRequires:  update-desktop-files
BuildRequires:  zlib-devel

Requires:       cmake

This is a Graphical User Interface for CMake, a cross-platform,
open-source make system.

%setup -q -n cmake-%{version}

./configure \
    --prefix=%{_prefix} \
    --datadir=/share/cmake \
    --docdir=/share/doc/packages/cmake \
    --mandir=/share/man \
%if 0%{?suse_version} && !0%{?sles_version}
    --system-libs \
    --system-curl \
    --system-expat \
    --system-zlib \
    --system-bzip2 \
    --no-system-libarchive \
    --parallel=0%jobs \
make VERBOSE=1 %{?_smp_mflags}

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
rm -rf %{buildroot}/usr/share/aclocal/cmake.m4
rm -rf %{buildroot}/usr/share/doc/packages/cmake
rm -rf %{buildroot}/usr/share/man/man1/{cmake,cmakecommands,cmakecompat}.1
rm -rf %{buildroot}/usr/share/man/man1/{cmakemodules,cmakepolicies,cmakeprops,cmakevars,cpack,ctest}.1

%doc %{_mandir}/man1/cmake-gui.1.*