# # spec file for package cmake-gui # # Copyright (c) 2014 SUSE LINUX Products 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 or comments via http://bugs.opensuse.org/ # Name: cmake-gui Version: 3.1.0~rc3 Release: 0 %define rversion 3.1.0-rc3 Summary: CMake graphical user interface License: BSD-3-Clause Group: Development/Tools/Building Url: http://www.cmake.org/ Source0: http://www.cmake.org/files/v3.1/cmake-%{rversion}.tar.gz BuildRequires: curl-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libarchive-devel >= 3.0.2 BuildRequires: libexpat-devel BuildRequires: openssl-devel BuildRequires: python-sphinx BuildRequires: update-desktop-files BuildRequires: zlib-devel BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(liblzma) Requires: cmake Recommends: cmake-man BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1320 BuildRequires: pkgconfig(Qt5Widgets) %else BuildRequires: libqt4-devel %endif %description This is a Graphical User Interface for CMake, a cross-platform, open-source build system. %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 %prep %setup -q -n cmake-%{rversion} %build EXTRA_FLAGS="--qt-gui" export CXXFLAGS="%{optflags}" export CFLAGS="$CXXFLAGS" ./configure \ --prefix=%{_prefix} \ --datadir=/share/cmake \ --docdir=/share/doc/packages/cmake \ --mandir=/share/man \ --sphinx-man \ %if 0%{?suse_version} && !0%{?sles_version} --system-libs \ %else --system-curl \ --system-expat \ --system-zlib \ --system-bzip2 \ --no-system-libarchive \ %endif --parallel=0%{jobs} \ --qt-gui make VERBOSE=1 %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} 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}%{_bindir}/{cpack,cmake,ctest} rm -rf %{buildroot}%{_datadir}/cmake rm -rf %{buildroot}%{_datadir}/aclocal/cmake.m4 rm -rf %{buildroot}%{_docdir}/cmake %files %defattr(-,root,root) %{_bindir}/cmake-gui %{_datadir}/applications/CMake.desktop %{_datadir}/mime/packages/cmakecache.xml %{_datadir}/pixmaps/CMakeSetup32.png %files -n cmake-man %defattr(-,root,root) %{_mandir}/man7/* %{_mandir}/man1/* %changelog