2006-12-20 02:22:20 +01:00
|
|
|
#
|
2010-02-25 02:19:57 +01:00
|
|
|
# spec file for package cmake (Version 2.8.0+2.8.1rc3)
|
2006-12-20 02:22:20 +01:00
|
|
|
#
|
2010-02-13 16:24:19 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-20 02:22:20 +01:00
|
|
|
#
|
2008-08-06 01:42:15 +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.
|
|
|
|
|
2006-12-20 02:22:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-29 22:28:28 +01:00
|
|
|
|
2006-12-20 02:22:20 +01:00
|
|
|
Name: cmake
|
2010-02-25 00:55:46 +01:00
|
|
|
Version: 2.8.0+2.8.1rc3
|
|
|
|
Release: 1
|
2009-11-27 19:17:43 +01:00
|
|
|
License: BSD3c
|
2006-12-20 02:22:20 +01:00
|
|
|
Group: Development/Tools/Building
|
2010-02-25 00:55:46 +01:00
|
|
|
%define tar_version 2.8.1-rc3
|
2007-10-03 00:49:11 +02:00
|
|
|
Url: http://www.cmake.org/
|
2008-05-07 00:25:59 +02:00
|
|
|
Source0: %{name}-%{tar_version}.tar.bz2
|
|
|
|
Patch4: cmake-disable-builtin-chrpath.diff
|
2010-02-13 16:24:19 +01:00
|
|
|
Patch5: fortify-buffer-overflows.diff
|
2006-12-20 02:22:20 +01:00
|
|
|
Summary: Cross-platform, open-source make system
|
2008-06-22 02:01:47 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-08-02 01:28:49 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2009-03-12 15:23:49 +01:00
|
|
|
BuildRequires: fdupes libexpat-devel libqt4-devel update-desktop-files
|
2008-06-22 02:01:47 +02:00
|
|
|
%endif
|
|
|
|
BuildRequires: curl-devel expat gcc-c++ ncurses-devel openssl-devel zlib-devel
|
2007-12-11 13:19:30 +01:00
|
|
|
Requires: make
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
CMake is a cross-platform, open-source make system
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-07 00:25:59 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Kitware, Inc., Insight Consortium
|
|
|
|
|
2008-08-02 01:28:49 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2008-06-22 02:01:47 +02:00
|
|
|
|
2008-05-07 00:25:59 +02:00
|
|
|
%package gui
|
2009-11-27 19:17:43 +01:00
|
|
|
License: BSD3c
|
2008-05-07 00:25:59 +02:00
|
|
|
Summary: CMake Graphical User Interface
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
|
|
|
|
%description gui
|
|
|
|
This is a Graphical User Interface for CMake, a cross-platform,
|
|
|
|
open-source make system.
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-20 02:22:20 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Kitware, Inc., Insight Consortium
|
|
|
|
|
2008-06-22 02:01:47 +02:00
|
|
|
%endif
|
|
|
|
|
2006-12-20 02:22:20 +01:00
|
|
|
%prep
|
2008-01-03 17:34:04 +01:00
|
|
|
%setup -q -n %name-%tar_version
|
2008-05-07 00:25:59 +02:00
|
|
|
%patch4
|
2010-02-13 16:24:19 +01:00
|
|
|
%patch5
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%build
|
2008-06-22 02:01:47 +02:00
|
|
|
EXTRA_FLAGS=""
|
2008-08-02 01:28:49 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2008-06-22 02:01:47 +02:00
|
|
|
EXTRA_FLAGS="--qt-gui"
|
|
|
|
%endif
|
2006-12-20 02:22:20 +01:00
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
2007-07-23 19:55:10 +02:00
|
|
|
export CFLAGS="$CXXFLAGS"
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--datadir=/share/%{name} \
|
|
|
|
--docdir=/share/doc/packages/%{name} \
|
|
|
|
--mandir=/share/man \
|
2008-05-07 00:25:59 +02:00
|
|
|
--system-libs \
|
2008-06-22 02:01:47 +02:00
|
|
|
--parallel=0%jobs $EXTRA_FLAGS
|
2006-12-20 02:22:20 +01:00
|
|
|
make VERBOSE=1 %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
%install
|
2007-07-23 19:55:10 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
2009-05-15 22:18:44 +02:00
|
|
|
mkdir -p %{buildroot}%_libdir/cmake
|
2007-07-23 19:55:10 +02:00
|
|
|
find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644
|
2009-11-27 19:17:43 +01:00
|
|
|
cp ChangeLog.manual %{buildroot}/usr/share/doc/packages/%{name}/Changelog
|
2008-08-02 01:28:49 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2008-05-07 00:25:59 +02:00
|
|
|
%suse_update_desktop_file CMake Development IDE Tools Qt
|
2009-03-12 15:23:49 +01:00
|
|
|
%fdupes %buildroot/usr/share/cmake
|
2008-05-07 00:25:59 +02:00
|
|
|
%endif
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%clean
|
2007-07-23 19:55:10 +02:00
|
|
|
rm -rf %{buildroot}
|
2006-12-20 02:22:20 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/cpack
|
|
|
|
/usr/bin/cmake
|
|
|
|
/usr/bin/ctest
|
2008-05-07 00:25:59 +02:00
|
|
|
/usr/bin/ccmake
|
2006-12-20 02:22:20 +01:00
|
|
|
/usr/share/cmake
|
2009-05-15 22:18:44 +02:00
|
|
|
%_libdir/cmake
|
2006-12-20 02:22:20 +01:00
|
|
|
%doc /usr/share/doc/packages/%name
|
2008-07-08 16:37:19 +02:00
|
|
|
%doc %_mandir/man1/cmakepolicies.1.*
|
2008-05-07 00:25:59 +02:00
|
|
|
%doc %_mandir/man1/cmake.1.*
|
|
|
|
%doc %_mandir/man1/ctest.1.*
|
|
|
|
%doc %_mandir/man1/ccmake.1.*
|
|
|
|
%doc %_mandir/man1/cmakecommands.1.*
|
|
|
|
%doc %_mandir/man1/cmakecompat.1.*
|
|
|
|
%doc %_mandir/man1/cmakemodules.1.*
|
|
|
|
%doc %_mandir/man1/cmakeprops.1.*
|
|
|
|
%doc %_mandir/man1/cmakevars.1.*
|
|
|
|
%doc %_mandir/man1/cpack.1.*
|
2008-08-02 01:28:49 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2009-03-12 15:23:49 +01:00
|
|
|
%doc %_mandir/man1/cmake-gui.1.*
|
2008-05-07 00:25:59 +02:00
|
|
|
|
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/cmake-gui
|
|
|
|
/usr/share/applications/CMake.desktop
|
|
|
|
/usr/share/mime/packages/cmakecache.xml
|
2010-02-25 00:55:46 +01:00
|
|
|
/usr/share/pixmaps/CMakeSetup32.png
|
2008-06-22 02:01:47 +02:00
|
|
|
%endif
|
2007-12-11 13:19:30 +01:00
|
|
|
|
2007-03-29 12:01:34 +02:00
|
|
|
%changelog
|