Summary: Cross-platform make system Name: cmake Version: 2.6.4 Release: 7%{?dist} License: BSD Group: Development/Tools Source0: http://www.cmake.org/files/v2.6/cmake-%{version}.tar.gz Source1: macros.cmake Url: http://www.cmake.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gcc-c++ BuildRequires: zlib-devel, openssl-devel, ncurses-devel %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. %prep %setup -q %build ./bootstrap --prefix=%{_prefix} make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} mkdir -p %{buildroot}%{_defaultdocdir} mv %{buildroot}%{_prefix}/doc/cmake-2.6 %{buildroot}%{_defaultdocdir}/%{name}-%{version} mkdir -p %{buildroot}%{_mandir} test %{_prefix}/man %{_mandir} \ || mv %{buildroot}%{_prefix}/man/* %{buildroot}%{_mandir}/ # RPM macros mkdir -p %{buildroot}%{_sysconfdir}/rpm install -p -m0644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.cmake sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" %{buildroot}%{_sysconfdir}/rpm/macros.cmake touch -r %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.cmake cp -a Copyright.txt ChangeLog.txt Docs/cmake-mode.el Docs/cmake-syntax.vim %{buildroot}%{_defaultdocdir}/%{name}-%{version} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_defaultdocdir}/%{name}-%{version} %config(noreplace) %{_sysconfdir}/rpm/macros.cmake %{_bindir}/* %{_datadir}/cmake-2.6 %{_mandir}/man1/*.1* %changelog * Sat Jun 6 2009 Axel Thimm - 2.6.4-7 - Update to 2.6.4. - Use rpm macros from Fedora. * Sat Dec 9 2006 Axel Thimm - 2.4.5-6 - Update to 2.4.5. * Fri May 26 2006 Axel Thimm - Update to 2.4.2. * Tue Mar 7 2006 Axel Thimm - Update to 2.2.3