# # spec file for package cmake (Version 2.8.2) # # Copyright (c) 2010 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/ # # norootforbuild Name: cmake Version: 2.8.2 Release: 3 License: BSD3c Group: Development/Tools/Building Url: http://www.cmake.org/ Source0: %{name}-%{version}.tar.bz2 Patch4: cmake-disable-builtin-chrpath.diff Patch5: fortify-buffer-overflows.diff Patch6: cmake-support-new-python.diff # Should appear in cmake-2.8.3 Patch7: cmake-FindGTK2-gdk-pixbuf.patch Summary: Cross-platform, open-source make system BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: libexpat-devel %if 0%{?suse_version} > 1110 BuildRequires: fdupes %endif %else BuildRequires: expat-devel %endif BuildRequires: curl-devel BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: zlib-devel Requires: make %description CMake is a cross-platform, open-source make system Authors: -------- Kitware, Inc., Insight Consortium %prep %setup -q -n %{name}-%{version} %patch4 %patch5 %patch6 -p1 %patch7 -p1 %build export CXXFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$CXXFLAGS" ./configure \ --prefix=%{_prefix} \ --datadir=/share/%{name} \ --docdir=/share/doc/packages/%{name} \ --mandir=/share/man \ --system-libs \ --parallel=0%jobs \ --no-qt-gui make VERBOSE=1 %{?jobs:-j %jobs} %install make DESTDIR=%{buildroot} install mkdir -p %{buildroot}%{_libdir}/cmake find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644 cp ChangeLog.manual %{buildroot}/usr/share/doc/packages/%{name}/Changelog %if 0%{?suse_version} > 1110 %fdupes %buildroot/usr/share/cmake %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/cpack %{_bindir}/cmake %{_bindir}/ctest %{_bindir}/ccmake %{_datadir}/cmake %{_libdir}/cmake %doc %{_datadir}/doc/packages/%{name} %doc %{_mandir}/man1/cmakepolicies.1.* %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.* %changelog