220 lines
6.7 KiB
RPMSpec
220 lines
6.7 KiB
RPMSpec
# Set to bcond_without or use --with bootstrap if bootstrapping a new release
|
|
# or architecture
|
|
%bcond_with bootstrap
|
|
|
|
Name: cmake
|
|
Version: 2.6.0
|
|
Release: 0.rc10.1%{?dist}
|
|
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}-RC-10.tar.gz
|
|
Source2: macros.cmake
|
|
Patch0: cmake-2.6.0-jni.patch
|
|
Patch1: cmake-2.4.5-xmlrpc.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: ncurses-devel, libX11-devel
|
|
BuildRequires: qt4-devel, desktop-file-utils
|
|
BuildRequires: curl-devel, expat-devel, zlib-devel
|
|
%{?!with_bootstrap:BuildRequires: xmlrpc-c-devel}
|
|
Requires: rpm
|
|
|
|
|
|
%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.
|
|
|
|
|
|
%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.
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}-RC-10
|
|
%patch -p1 -b .jni
|
|
%patch1 -p1 -b .xmlrpc
|
|
# Fixup permissions
|
|
find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
|
|
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
./bootstrap --prefix=%{_prefix} --datadir=/share/%{name} \
|
|
--docdir=/share/doc/%{name}-%{version} --mandir=/share/man \
|
|
--%{?with_bootstrap:no-}system-libs \
|
|
--parallel=`/usr/bin/getconf _NPROCESSORS_ONLN` \
|
|
--qt-gui
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
|
|
%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/
|
|
# RPM macros
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
|
|
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/
|
|
# Desktop file
|
|
desktop-file-install --delete-original \
|
|
--dir=%{buildroot}%{_datadir}/applications \
|
|
%{buildroot}/%{_datadir}/applications/CMake.desktop
|
|
|
|
|
|
%check
|
|
unset DISPLAY
|
|
bin/ctest -V
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%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 || :
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%config(noreplace) %{_sysconfdir}/rpm/macros.cmake
|
|
%{_datadir}/doc/%{name}-%{version}/
|
|
%{_bindir}/ccmake
|
|
%{_bindir}/cmake
|
|
%{_bindir}/cpack
|
|
%{_bindir}/ctest
|
|
%{_datadir}/%{name}/
|
|
%{_mandir}/man1/*.1*
|
|
%{_datadir}/emacs/
|
|
|
|
%files gui
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/cmake-gui
|
|
%{_datadir}/applications/CMake.desktop
|
|
%{_datadir}/mime/packages/cmakecache.xml
|
|
%{_datadir}/pixmaps/CMakeSetup.png
|
|
|
|
|
|
%changelog
|
|
* Mon May 5 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc10.1
|
|
- Update to 2.6.0-RC-10
|
|
|
|
* Thu Apr 24 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc9.1
|
|
- Update to 2.6.0-RC-9
|
|
|
|
* Fri Apr 11 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc8.1
|
|
- Update to 2.6.0-RC-8
|
|
|
|
* Thu Apr 3 2008 Orion Poplawski <orion@cora.nwra.com> - 2.6.0-0.rc6.1
|
|
- Update to 2.6.0-RC-6
|
|
|
|
* 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
|
|
|
|
* Fri Mar 7 2008 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-3
|
|
- Add macro for bootstrapping new release/architecture
|
|
- Add %%check section
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.4.8-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Tue Jan 22 2008 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-1
|
|
- Update to 2.4.8
|
|
|
|
* Wed Jan 16 2008 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-0.rc12
|
|
- Update to 2.4.8 RC-12
|
|
|
|
* Fri Dec 14 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.8-0.rc4
|
|
- Update to 2.4.8 RC-4
|
|
|
|
* Mon Nov 12 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-4
|
|
- No longer set CMAKE_SKIP_RPATH
|
|
|
|
* Tue Aug 28 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-3
|
|
- Rebuild for new expat
|
|
|
|
* Wed Aug 22 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-2
|
|
- Rebuild for BuildID
|
|
|
|
* Mon Jul 23 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-1
|
|
- Update to 2.4.7
|
|
|
|
* Fri Jun 29 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.7-0.rc11
|
|
- Update to 2.4.7 RC-11
|
|
|
|
* 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
|
|
|
|
* 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)
|
|
|
|
* Fri Apr 06 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.6-2
|
|
- Add rpm macros
|
|
|
|
* Thu Jan 11 2007 Orion Poplawski <orion@cora.nwra.com> - 2.4.6-1
|
|
- Update to 2.4.6
|
|
|
|
* Mon Dec 18 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.5-2
|
|
- Use system libraries (bootstrap --system-libs)
|
|
|
|
* Tue Dec 5 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.5-1
|
|
- Update to 2.4.5
|
|
|
|
* Tue Nov 21 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.4-1
|
|
- Update to 2.4.4
|
|
|
|
* Tue Oct 31 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.3-4
|
|
- Add /usr/lib/jvm/java to FindJNI search paths
|
|
|
|
* Tue Aug 29 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.3-3
|
|
- Rebuild for FC6
|
|
|
|
* 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
|
|
|
|
* Tue Aug 1 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.3-1
|
|
- Update to 2.4.3
|
|
|
|
* Mon Jul 31 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.2-3
|
|
- Update for vim 7.0
|
|
|
|
* Tue Jul 11 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.2-2
|
|
- Patch FindRuby and FindSWIG to work on Fedora (bug #198103)
|
|
|
|
* Fri Jun 30 2006 Orion Poplawski <orion@cora.nwra.com> - 2.4.2-1
|
|
- Update to 2.4.2
|
|
|
|
* Thu Apr 6 2006 Orion Poplawski <orion@cora.nwra.com> - 2.2.3-4
|
|
- Update for vim 7.0c
|
|
|
|
* 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
|