2008-03-07 16:54:42 +00:00
|
|
|
# Set to bcond_without or use --with bootstrap if bootstrapping a new release
|
|
|
|
# or architecture
|
|
|
|
%bcond_with bootstrap
|
2008-10-22 17:07:35 +00:00
|
|
|
# Set to bcond_with or use --without gui to disable qt4 gui build
|
|
|
|
%bcond_without gui
|
2008-09-08 14:39:53 +00:00
|
|
|
# Set to RC version if building RC, else %{nil}
|
2008-09-29 21:24:39 +00:00
|
|
|
%define rcver %{nil}
|
2008-03-07 16:54:42 +00:00
|
|
|
|
2008-03-28 19:32:24 +00:00
|
|
|
Name: cmake
|
2008-09-08 14:39:53 +00:00
|
|
|
Version: 2.6.2
|
2008-12-02 17:49:22 +00:00
|
|
|
Release: 3%{?dist}
|
2008-03-28 19:32:24 +00:00
|
|
|
Summary: Cross-platform make system
|
|
|
|
|
|
|
|
Group: Development/Tools
|
|
|
|
License: BSD
|
|
|
|
URL: http://www.cmake.org
|
2008-09-08 14:39:53 +00:00
|
|
|
Source0: http://www.cmake.org/files/v2.6/cmake-%{version}%{rcver}.tar.gz
|
2007-04-06 16:56:30 +00:00
|
|
|
Source2: macros.cmake
|
2008-03-28 19:32:24 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2008-08-26 20:05:15 +00:00
|
|
|
|
2006-03-29 19:03:00 +00:00
|
|
|
BuildRequires: ncurses-devel, libX11-devel
|
2008-03-07 16:54:42 +00:00
|
|
|
BuildRequires: curl-devel, expat-devel, zlib-devel
|
2008-10-22 17:07:35 +00:00
|
|
|
%if %{without bootstrap}
|
|
|
|
BuildRequires: xmlrpc-c-devel
|
|
|
|
%endif
|
|
|
|
%if %{with gui}
|
|
|
|
BuildRequires: qt4-devel, desktop-file-utils
|
|
|
|
%define qt_gui --qt-gui
|
|
|
|
%endif
|
2007-04-06 16:56:30 +00:00
|
|
|
Requires: rpm
|
2006-12-18 23:37:24 +00:00
|
|
|
|
2006-03-29 19:03:00 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
2008-03-28 19:32:24 +00:00
|
|
|
%package gui
|
|
|
|
Summary: Qt GUI for %{name}
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description gui
|
|
|
|
The %{name}-gui package contains the Qt based GUI for CMake.
|
|
|
|
|
|
|
|
|
2006-03-29 19:03:00 +00:00
|
|
|
%prep
|
2008-09-08 14:39:53 +00:00
|
|
|
%setup -q -n %{name}-%{version}%{rcver}
|
2008-03-28 19:32:24 +00:00
|
|
|
# Fixup permissions
|
2008-03-28 21:33:28 +00:00
|
|
|
find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
|
2006-03-29 19:03:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
2008-03-28 19:32:24 +00:00
|
|
|
./bootstrap --prefix=%{_prefix} --datadir=/share/%{name} \
|
2006-12-18 23:37:24 +00:00
|
|
|
--docdir=/share/doc/%{name}-%{version} --mandir=/share/man \
|
2008-03-28 19:32:24 +00:00
|
|
|
--%{?with_bootstrap:no-}system-libs \
|
|
|
|
--parallel=`/usr/bin/getconf _NPROCESSORS_ONLN` \
|
2008-12-02 17:46:08 +00:00
|
|
|
%{?qt_gui}
|
2007-04-06 16:56:30 +00:00
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2006-03-29 19:03:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT/%{_datadir}/%{name}/Modules -type f | xargs chmod -x
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
|
|
|
|
cp -a Example $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/
|
|
|
|
install -m 0644 Docs/cmake-mode.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/
|
2007-04-06 16:56:30 +00:00
|
|
|
# RPM macros
|
2008-12-02 17:46:08 +00:00
|
|
|
install -p -m0644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
|
2008-10-22 17:07:35 +00:00
|
|
|
%if %{with gui}
|
2008-03-28 19:32:24 +00:00
|
|
|
# Desktop file
|
|
|
|
desktop-file-install --delete-original \
|
|
|
|
--dir=%{buildroot}%{_datadir}/applications \
|
|
|
|
%{buildroot}/%{_datadir}/applications/CMake.desktop
|
2008-10-22 17:07:35 +00:00
|
|
|
%endif
|
2006-03-29 19:03:00 +00:00
|
|
|
|
|
|
|
|
2008-03-28 15:11:31 +00:00
|
|
|
%check
|
2008-04-03 22:59:09 +00:00
|
|
|
unset DISPLAY
|
2008-03-28 19:32:24 +00:00
|
|
|
bin/ctest -V
|
2008-03-28 15:11:31 +00:00
|
|
|
|
|
|
|
|
2006-03-29 19:03:00 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
2008-10-22 17:07:35 +00:00
|
|
|
%if %{with gui}
|
2008-03-28 19:32:24 +00:00
|
|
|
%post gui
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
|
|
|
%postun gui
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
update-mime-database %{_datadir}/mime &> /dev/null || :
|
2008-10-22 17:07:35 +00:00
|
|
|
%endif
|
2008-03-28 19:32:24 +00:00
|
|
|
|
|
|
|
|
2006-03-29 19:03:00 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-04-06 16:56:30 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/rpm/macros.cmake
|
2006-03-29 19:03:00 +00:00
|
|
|
%{_datadir}/doc/%{name}-%{version}/
|
|
|
|
%{_bindir}/ccmake
|
|
|
|
%{_bindir}/cmake
|
2006-06-30 16:32:53 +00:00
|
|
|
%{_bindir}/cpack
|
2006-03-29 19:03:00 +00:00
|
|
|
%{_bindir}/ctest
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_datadir}/emacs/
|
|
|
|
|
2008-10-22 17:07:35 +00:00
|
|
|
%if %{with gui}
|
2008-03-28 19:32:24 +00:00
|
|
|
%files gui
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/cmake-gui
|
|
|
|
%{_datadir}/applications/CMake.desktop
|
|
|
|
%{_datadir}/mime/packages/cmakecache.xml
|
|
|
|
%{_datadir}/pixmaps/CMakeSetup.png
|
2008-10-22 17:07:35 +00:00
|
|
|
%endif
|
2008-03-28 19:32:24 +00:00
|
|
|
|
2006-03-29 19:03:00 +00:00
|
|
|
|
|
|
|
%changelog
|
2008-12-02 17:46:08 +00:00
|
|
|
* Tue Dec 2 2008 Rex Dieter <rdieter@fedoraproject.org> - 2.6.2-3
|
|
|
|
- Add -DCMAKE_VERBOSE_MAKEFILE=ON to %%cmake (#474053)
|
|
|
|
- preserve timestamp of macros.cmake
|
|
|
|
- cosmetics
|
|
|
|
|
2008-10-22 17:07:35 +00:00
|
|
|
* Tue Oct 21 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.2-2
|
|
|
|
- Allow conditional build of gui
|
|
|
|
|
2008-09-29 21:24:39 +00:00
|
|
|
* Mon Sep 29 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.2-1
|
2008-09-29 21:36:44 +00:00
|
|
|
- Update to 2.6.2
|
2008-09-29 21:24:39 +00:00
|
|
|
|
2008-09-08 14:39:53 +00:00
|
|
|
* Mon Sep 8 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.2-0.rc3.1
|
|
|
|
- Update to 2.6.2-RC-2
|
|
|
|
- Drop parens patch fixed upstream
|
|
|
|
|
2008-09-02 21:52:56 +00:00
|
|
|
* Tue Sep 2 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-3
|
|
|
|
- Drop jni patch, applied upstream.
|
|
|
|
|
2008-08-26 20:05:15 +00:00
|
|
|
* Tue Aug 26 2008 Rex Dieter <rdieter@fedoraproject.org> - 2.6.1-2
|
|
|
|
- attempt to patch logic error, crasher
|
|
|
|
|
2008-08-05 19:43:33 +00:00
|
|
|
* Tue Aug 5 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-1
|
|
|
|
- Update to 2.6.1
|
|
|
|
|
|
|
|
* Mon Jul 14 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-0.rc8.1
|
|
|
|
- Update to 2.6.1-RC-8
|
|
|
|
- Drop xmlrpc patch fixed upstream
|
|
|
|
|
2008-05-07 02:13:26 +00:00
|
|
|
* Tue May 6 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-1
|
|
|
|
- Update to 2.6.0
|
|
|
|
|
2008-05-05 17:22:09 +00:00
|
|
|
* Mon May 5 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc10.1
|
|
|
|
- Update to 2.6.0-RC-10
|
|
|
|
|
2008-04-25 03:06:09 +00:00
|
|
|
* Thu Apr 24 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc9.1
|
|
|
|
- Update to 2.6.0-RC-9
|
|
|
|
|
2008-04-11 22:19:41 +00:00
|
|
|
* Fri Apr 11 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc8.1
|
|
|
|
- Update to 2.6.0-RC-8
|
|
|
|
|
2008-04-03 22:59:09 +00:00
|
|
|
* Thu Apr 3 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc6.1
|
|
|
|
- Update to 2.6.0-RC-6
|
|
|
|
|
2008-03-28 19:32:24 +00:00
|
|
|
* Fri Mar 28 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc5.1
|
|
|
|
- Update to 2.6.0-RC-5
|
|
|
|
- Add gui sub-package for Qt frontend
|
|
|
|
|
2008-03-07 16:54:42 +00:00
|
|
|
* Fri Mar 7 2008 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-3
|
|
|
|
- Add macro for bootstrapping new release/architecture
|
2008-03-28 15:11:31 +00:00
|
|
|
- Add %%check section
|
2008-03-05 16:42:49 +00:00
|
|
|
|
2008-02-19 17:01:48 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.4.8-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-22 22:47:30 +00:00
|
|
|
* Tue Jan 22 2008 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-1
|
|
|
|
- Update to 2.4.8
|
|
|
|
|
2008-01-16 21:11:12 +00:00
|
|
|
* Wed Jan 16 2008 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-0.rc12
|
|
|
|
- Update to 2.4.8 RC-12
|
|
|
|
|
2007-12-14 19:35:38 +00:00
|
|
|
* Fri Dec 14 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-0.rc4
|
|
|
|
- Update to 2.4.8 RC-4
|
|
|
|
|
2007-11-12 18:54:25 +00:00
|
|
|
* Mon Nov 12 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-4
|
|
|
|
- No longer set CMAKE_SKIP_RPATH
|
|
|
|
|
2007-08-28 14:13:49 +00:00
|
|
|
* Tue Aug 28 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-3
|
|
|
|
- Rebuild for new expat
|
|
|
|
|
2007-08-22 15:15:24 +00:00
|
|
|
* Wed Aug 22 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-2
|
|
|
|
- Rebuild for BuildID
|
|
|
|
|
2007-08-11 18:48:47 +00:00
|
|
|
* Mon Jul 23 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-1
|
|
|
|
- Update to 2.4.7
|
|
|
|
|
2007-06-29 21:55:08 +00:00
|
|
|
* Fri Jun 29 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-0.rc11
|
|
|
|
- Update to 2.4.7 RC-11
|
|
|
|
|
2007-06-27 17:00:25 +00:00
|
|
|
* Wed Jun 27 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.6-4
|
|
|
|
- Update macros.cmake to add CMAKE_INSTALL_LIBDIR, INCLUDE_INSTALL_DIR,
|
|
|
|
LIB_INSTALL_DIR, SYSCONF_INSTALL_DIR, and SHARE_INSTALL_PREFIX
|
2007-06-06 18:36:55 +00:00
|
|
|
|
2007-04-16 16:29:59 +00:00
|
|
|
* Mon Apr 16 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.6-3
|
|
|
|
- Apply patch from upstream CVS to fix .so install permissions (bug #235673)
|
|
|
|
|
2007-04-06 16:56:30 +00:00
|
|
|
* Fri Apr 06 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.6-2
|
|
|
|
- Add rpm macros
|
|
|
|
|
2007-01-12 00:07:02 +00:00
|
|
|
* Thu Jan 11 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.6-1
|
|
|
|
- Update to 2.4.6
|
|
|
|
|
2006-12-18 23:37:24 +00:00
|
|
|
* Mon Dec 18 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.5-2
|
|
|
|
- Use system libraries (bootstrap --system-libs)
|
|
|
|
|
2006-12-05 16:52:21 +00:00
|
|
|
* Tue Dec 5 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.5-1
|
|
|
|
- Update to 2.4.5
|
|
|
|
|
2006-11-22 04:15:08 +00:00
|
|
|
* Tue Nov 21 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.4-1
|
|
|
|
- Update to 2.4.4
|
|
|
|
|
2006-10-31 23:11:16 +00:00
|
|
|
* Tue Oct 31 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.3-4
|
|
|
|
- Add /usr/lib/jvm/java to FindJNI search paths
|
|
|
|
|
2006-08-30 02:26:07 +00:00
|
|
|
* Tue Aug 29 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.3-3
|
|
|
|
- Rebuild for FC6
|
|
|
|
|
2006-08-02 17:55:33 +00:00
|
|
|
* Wed Aug 2 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.3-2
|
|
|
|
- vim 7.0 now ships cmake files, so don't ship ours (bug #201018)
|
|
|
|
- Add patch to Linux.cmake for Fortran soname support for plplot
|
|
|
|
|
2006-08-01 16:46:34 +00:00
|
|
|
* Tue Aug 1 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.3-1
|
|
|
|
- Update to 2.4.3
|
|
|
|
|
2006-07-31 19:35:43 +00:00
|
|
|
* Mon Jul 31 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.2-3
|
|
|
|
- Update for vim 7.0
|
|
|
|
|
2006-07-11 16:41:17 +00:00
|
|
|
* Tue Jul 11 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.2-2
|
|
|
|
- Patch FindRuby and FindSWIG to work on Fedora (bug #198103)
|
|
|
|
|
2006-06-30 16:32:53 +00:00
|
|
|
* Fri Jun 30 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.2-1
|
|
|
|
- Update to 2.4.2
|
|
|
|
|
2006-04-06 16:31:44 +00:00
|
|
|
* Thu Apr 6 2006 Orion Poplawski <orion@cora.nwra.com> - 2.2.3-4
|
|
|
|
- Update for vim 7.0c
|
|
|
|
|
2006-03-29 19:03:00 +00:00
|
|
|
* Tue Mar 28 2006 Orion Poplawski <orion@cora.nwra.com> - 2.2.3-3
|
|
|
|
- No subpackages, just own the emacs and vim dirs.
|
|
|
|
|
|
|
|
* Tue Mar 21 2006 Orion Poplawski <orion@cora.nwra.com> - 2.2.3-2
|
|
|
|
- Add emacs and vim support
|
|
|
|
- Include Example in docs
|
|
|
|
|
|
|
|
* Wed Mar 8 2006 Orion Poplawski <orion@cora.nwra.com> - 2.2.3-1
|
|
|
|
- Fedora Extras version
|