%define beta %nil %define date %nil %define major %(echo %version |cut -d. -f1-2) Name: cmake Version: 2.8.6 %if "%beta" == "" %if "%date" == "" Release: 1ark Source: http://www.cmake.org/files/v%major/%name-%version.tar.gz %else Release: 0.%date.1ark Source: %name-%date.tar.lz %endif %else %if "%date" == "" Release: 0.%beta.1ark Source: http://www.cmake.org/files/v%major/%name-%version-%beta.tar.gz %else Release: 0.%beta.0.%date.1ark Source: %name-%date.tar.lz %endif %endif Patch: cmake-2.8.5-compile-on-x86_32.patch Summary: Software compilation tool URL: http://cmake.org/ License: GPL Group: Development/Tools BuildRoot: %{_tmppath}/%{name}-root %track prog %name = { url = http://www.cmake.org/cmake/resources/software.html version = %version regex = %name-(__VER__)\.tar\.gz } %description CMake is a cross-platform, open-source make system. 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. The goals for CMake include the following: * Develop an open source, cross-platform tool to manage the build process, * Allow the use of native compilers and systems, * Simplify the build process, * Optionally provide a user-interface to manage the build system, * Create an extensible framework, * Grow a self-sustaining community of software users and developers. %package gui Summary: Graphical tool for configuring CMake applications Group: Development/Tools Requires: %name = %version-%release %description gui Graphical tool for configuring CMake applications %prep %if "%date" == "" %if "%beta" != "" %setup -q -n %name-%version-%beta %else %setup -q %endif %else %setup -q -n CMake %endif %ifarch %ix86 %patch -p1 -b .compile~ %endif CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix --docdir=/share/doc/%name-%version --mandir=/share/man --qt-gui --qt-qmake=%_bindir/qmake --system-libs %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT" CM="`pwd`" mkdir -p $RPM_BUILD_ROOT%_datadir/vim/vim73 cd $RPM_BUILD_ROOT%_datadir/vim/vim73 mkdir indent syntax install -c -m 644 $CM/Docs/cmake-indent.vim indent/cmake.vim install -c -m 644 $CM/Docs/cmake-syntax.vim syntax/cmake.vim %files %_bindir/cmake %_bindir/ccmake %_bindir/cpack %_bindir/ctest %_datadir/%name-%major %_mandir/man1/* %_datadir/vim/*/*/* %_datadir/mime/packages/* %doc %_docdir/%name-%version %files gui %_bindir/cmake-gui %_datadir/applications/CMake.desktop %_datadir/pixmaps/CMakeSetup32.png %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Thu Oct 6 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.6-1ark - 2.8.6 * Mon Aug 15 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.5-1ark - 2.8.5 * Thu Apr 4 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.4-1ark - 2.8.4 * Tue Nov 23 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.3-1ark - 2.8.3 * Thu Oct 28 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.2-2ark - Teach FindPythonLibs.cmake about python 2.7.x * Thu Mar 25 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.1-1ark - 2.8.1 * Thu Nov 26 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.0-1ark - 2.8.0 final * Mon Oct 12 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.0-0.rc3.1ark - 2.8.0-rc3 * Tue Oct 6 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 2.8.0-0.rc2.1ark - 2.8.0-rc2 - Add gui version * Wed Aug 12 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.4-1ark - 2.6.4 - Add rpm5 tracking info * Mon Oct 27 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.2-2ark - Move vim integration files to new directory for vim 7.2 * Mon Oct 6 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.6.2-1ark - 2.6.2 * Tue Apr 15 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.8-1ark - 2.4.8 * Sat Jul 21 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.7-3ark - Rebuild with gcc 4.2.1 final * Thu Jul 17 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.7-2ark - 2.4.7 * Fri Jul 6 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.6-2ark - Rebuild for gcc 4.2.1 * Tue Jan 30 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.6-1ark - 2.4.6 * Tue Dec 5 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.5-1ark - 2.4.5 * Mon Sep 18 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.3-1ark - 2.4.3 * Fri Jul 21 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.2-2ark - Fix KDE3_INSTALL_ICONS macro to respect DESTDIR * Sun Jul 16 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.2-1ark - 2.4.2 * Mon May 1 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.1-1ark - 2.4.1 * Mon Apr 24 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.4.0-1ark - 2.4.0 * Wed Mar 22 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 2.3.0-0.20060322.1ark - initial RPM