%define majorminor %(echo %version | cut -d. -f 1-2) Name: cmake Version: 2.8.4 Release: 1mamba Summary: A cross-platform, open-source make system Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.cmake.org/ Source0: http://www.cmake.org/files/v%{majorminor}/cmake-%{version}.tar.gz Source1: cmake-rpmmacro Patch: %{name}-2.4.5_use_intree_xmlrpc.patch License: BSD BuildRequires: gcc-c++ BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libICE-devel ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libcurl-devel BuildRequires: libexpat-devel BuildRequires: libgcc BuildRequires: libncurses-devel BuildRequires: libopenssl-devel BuildRequires: libstdc++6-devel BuildRequires: libwww-devel BuildRequires: libxml2-devel BuildRequires: libxmlrpc-c-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libarchive-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, pre-processor generation, code generation, and template instantiation. CMake was developed by Kitware as part of the NLM Insight Segmentation and Registration Toolkit project. The ASCI VIEWS project also provided support in the context of their parallel computation environment. Other sponsors include the Insight, VTK, and VXL open source software communities. %prep %setup -q #%patch -p0 %build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" ./configure \ --prefix=%{_prefix} \ --datadir=/share/%{name} \ --docdir=/share/doc/%{name}-%{version} \ --mandir=/share/man \ --system-libs %make VERBOSE=1 %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall cp -a Example %{buildroot}%{_datadir}/doc/%{name}-%{version}/ install -D -m 0644 Docs/cmake-mode.el \ %{buildroot}%{_datadir}/emacs/site-lisp/cmake-mode.el install -D -m 0644 %{S:1} \ %{buildroot}%{_sysconfdir}/rpm/macros.cmake %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/ccmake %{_bindir}/cmake %{_bindir}/cpack %{_bindir}/ctest %{_datadir}/%{name}/ %{_mandir}/man1/ccmake.* %{_mandir}/man1/cmake.* %{_mandir}/man1/cmakecommands.* %{_mandir}/man1/cmakecompat.* %{_mandir}/man1/cmakemodules.* %{_mandir}/man1/cmakepolicies.* %{_mandir}/man1/cmakeprops.* %{_mandir}/man1/cmakevars.* %{_mandir}/man1/cpack.* %{_mandir}/man1/ctest.* %{_datadir}/doc/%{name}-%{version}/ %{_datadir}/emacs/* %{_sysconfdir}/rpm/macros.cmake %changelog * Wed Feb 23 2011 Automatic Build System 2.8.4-1mamba - automatic update by autodist * Fri Nov 05 2010 Silvan Calarco 2.8.3-1mamba - update to 2.8.3 * Sat May 09 2009 Automatic Build System 2.6.4-1mamba - automatic update by autodist * Mon Mar 30 2009 Silvan Calarco 2.6.3-1mamba - automatic update by autodist * Mon Feb 02 2009 Silvan Calarco 2.6.2-1mamba - update to 2.6.2 * Thu Aug 28 2008 Aleph0 2.6.1-1mamba - update to 2.6.1 * Mon May 12 2008 Aleph0 2.6.0-1mamba - update to 2.6.0 * Mon Mar 03 2008 Aleph0 2.4.8-1mamba - update to 2.4.8 - updated macros.cmake to permit extra directives to %%cmake * Wed Dec 26 2007 Aleph0 2.4.7-4mamba - modify %%cmake to permit both in-source and out-of-source builds * Sun Dec 23 2007 Aleph0 2.4.7-3mamba - add rpm macro macros.cmake (which defines %%cmake) * Tue Dec 04 2007 Aleph0 2.4.7-2mamba - updated specfile - added missing build requirements * Mon Oct 29 2007 Aleph0 2.4.7-1mamba - update to 2.4.7 * Mon Jun 04 2007 Aleph0 2.4.6-2mamba - rebuilt * Tue Feb 27 2007 Aleph0 2.4.6-1qilnx - update to version 2.4.6 by autospec - updated X11 build requirements - use system libraries - added build requirements for system libraries * Thu Dec 14 2006 Aleph0 2.4.5-1qilnx - package created by autospec