%define __cpa %{__cp} -a Name: cmake Version: 3.6.2 Release: 1%{?_dist_release} Summary: Cross-platform make system Group: Development/Tools License: BSD URL: http://www.cmake.org Source0: http://www.cmake.org/files/v2.6/cmake-%{version}.tar.gz Patch0: cmake-3.4.0-macosx.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #BuildRequires: ncurses-devel, libX11-devel #BuildRequires: curl-devel, expat-devel, xmlrpc-c-devel, zlib-devel Requires: rpm Vendor: OSX WorkShop Distribution: OSX WorkShop %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 %patch0 -p1 -b .macosx %build #export CC="/usr/bin/gcc-4.2" #export CXX="/usr/bin/g++-4.2" #export CFLAGS="-arch x86_64" #export CXXFLAGS="-arch x86_64" ./bootstrap --prefix=%{_prefix} --datadir=/share/%{name} \ --docdir=/share/doc/%{name}-%{version} --mandir=/share/man --system-curl #make VERBOSE=1 %{?_smp_mflags} make VERBOSE=1 %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT/%{_datadir}/%{name}/Modules -type f | xargs chmod -x #%{__cpa} Example $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,wheel,-) %{_datadir}/doc/%{name}-%{version}/ %{_bindir}/* %{_datadir}/%{name}/ %{_datadir}/aclocal/* #%{_mandir}/man1/*.1* %changelog * Fri Oct 21 2016 Keisuke Fujii 3.6.2-1 - new upstream release compiled with clang. - OSXWS 10.10 * Sat Nov 28 2015 KOBAYASHI Taizo 3.4.0-1 - new upstream release - OSXWS 10.11 * Tue May 20 2014 KOBAYASHI Taizo 2.8.12.2-1 - new upstream release * Wed Nov 06 2013 KOBAYASHI Taizo 2.8.12-1 - new upstream release * Mon Jul 29 2013 KOBAYASHI Taizo 2.8.11.2-1 - new upstream release * Tue Apr 23 2013 KOBAYASHI Taizo 2.8.10.2-1 - new upstream release - OSXWS 10.8 * Wed Feb 08 2012 KOBAYASHI Taizo 2.8.7-0 - new upstream release - OSXWS 10.7 * Thu Apr 28 2011 Akihiro Uchida 2.8.4-0 - update to 2.8.4 - support intel universal binary (i386, x86_64) * Sun Mar 21 2010 Keisuke Fujii - 2.8.0-10.6hepx1c - 2nd build on MacOSX - modified macosx10.6 patch to default to -flat_namespace * Mon Mar 08 2010 Keisuke Fujii - 2.8.0-10.6hepx1b - 1st build on MacOSX * Fri Mar 20 2009 Keisuke Fujii - 2.6.2-10.5hepx1b - 2nd build on MacOSX - Applied a patch to add '-single_module -undefined dynamic_lookup' to link flags * Mon Feb 23 2009 Keisuke Fujii - 2.6.2-10.5hepx1a - 1st build on MacOSX