forked from pool/cmake
This commit is contained in:
parent
76c470e531
commit
3bca3fb7f4
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jun 12 17:59:52 CEST 2008 - mrdocs@opensuse.org
|
||||||
|
|
||||||
|
- add %ifdefs to disable the cmake gui for non-Suse distros
|
||||||
|
- SLES 9 does not build, but its a compile failure
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 9 10:11:57 CEST 2008 - dmueller@suse.de
|
Fri May 9 10:11:57 CEST 2008 - dmueller@suse.de
|
||||||
|
|
||||||
|
37
cmake.spec
37
cmake.spec
@ -13,22 +13,10 @@
|
|||||||
|
|
||||||
Name: cmake
|
Name: cmake
|
||||||
Version: 2.6.0
|
Version: 2.6.0
|
||||||
Release: 9
|
Release: 18
|
||||||
License: BSD 3-Clause
|
License: BSD 3-Clause
|
||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
%define tar_version 2.6.0
|
%define tar_version 2.6.0
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%if %suse_version > 1020
|
|
||||||
BuildRequires: libexpat-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: expat
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
BuildRequires: expat-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: curl-devel expat gcc-c++ ncurses-devel openssl-devel
|
|
||||||
BuildRequires: libqt4-devel update-desktop-files zlib-devel
|
|
||||||
Url: http://www.cmake.org/
|
Url: http://www.cmake.org/
|
||||||
Source0: %{name}-%{tar_version}.tar.bz2
|
Source0: %{name}-%{tar_version}.tar.bz2
|
||||||
Patch0: cmake-2.6.0-use_intree_xmlrpc.patch
|
Patch0: cmake-2.6.0-use_intree_xmlrpc.patch
|
||||||
@ -37,6 +25,11 @@ Patch2: cmake-2.6.0-use_shared_python_lib.patch
|
|||||||
Patch4: cmake-disable-builtin-chrpath.diff
|
Patch4: cmake-disable-builtin-chrpath.diff
|
||||||
Patch5: cmake-2.6.0-fix_ctest_coverage.patch
|
Patch5: cmake-2.6.0-fix_ctest_coverage.patch
|
||||||
Summary: Cross-platform, open-source make system
|
Summary: Cross-platform, open-source make system
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%if 0%{?suse_version} >= 1020
|
||||||
|
BuildRequires: libexpat-devel libqt4-devel update-desktop-files
|
||||||
|
%endif
|
||||||
|
BuildRequires: curl-devel expat gcc-c++ ncurses-devel openssl-devel zlib-devel
|
||||||
Requires: make
|
Requires: make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -48,6 +41,8 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Kitware, Inc., Insight Consortium
|
Kitware, Inc., Insight Consortium
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1020
|
||||||
|
|
||||||
%package gui
|
%package gui
|
||||||
License: BSD 3-Clause
|
License: BSD 3-Clause
|
||||||
Summary: CMake Graphical User Interface
|
Summary: CMake Graphical User Interface
|
||||||
@ -63,6 +58,8 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Kitware, Inc., Insight Consortium
|
Kitware, Inc., Insight Consortium
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %name-%tar_version
|
%setup -q -n %name-%tar_version
|
||||||
%patch0
|
%patch0
|
||||||
@ -73,6 +70,10 @@ Authors:
|
|||||||
%patch5
|
%patch5
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
EXTRA_FLAGS=""
|
||||||
|
%if 0%{?suse_version} >= 1020
|
||||||
|
EXTRA_FLAGS="--qt-gui"
|
||||||
|
%endif
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||||
export CFLAGS="$CXXFLAGS"
|
export CFLAGS="$CXXFLAGS"
|
||||||
./configure \
|
./configure \
|
||||||
@ -81,14 +82,13 @@ export CFLAGS="$CXXFLAGS"
|
|||||||
--docdir=/share/doc/packages/%{name} \
|
--docdir=/share/doc/packages/%{name} \
|
||||||
--mandir=/share/man \
|
--mandir=/share/man \
|
||||||
--system-libs \
|
--system-libs \
|
||||||
--parallel=0%jobs \
|
--parallel=0%jobs $EXTRA_FLAGS
|
||||||
--qt-gui
|
|
||||||
make VERBOSE=1 %{?jobs:-j %jobs}
|
make VERBOSE=1 %{?jobs:-j %jobs}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644
|
find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644
|
||||||
%if 0%suse_version
|
%if 0%{?suse_version} >= 1020
|
||||||
%suse_update_desktop_file CMake Development IDE Tools Qt
|
%suse_update_desktop_file CMake Development IDE Tools Qt
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -112,6 +112,7 @@ rm -rf %{buildroot}
|
|||||||
%doc %_mandir/man1/cmakeprops.1.*
|
%doc %_mandir/man1/cmakeprops.1.*
|
||||||
%doc %_mandir/man1/cmakevars.1.*
|
%doc %_mandir/man1/cmakevars.1.*
|
||||||
%doc %_mandir/man1/cpack.1.*
|
%doc %_mandir/man1/cpack.1.*
|
||||||
|
%if 0%{?suse_version} >= 1020
|
||||||
|
|
||||||
%files gui
|
%files gui
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -119,8 +120,12 @@ rm -rf %{buildroot}
|
|||||||
/usr/share/applications/CMake.desktop
|
/usr/share/applications/CMake.desktop
|
||||||
/usr/share/mime/packages/cmakecache.xml
|
/usr/share/mime/packages/cmakecache.xml
|
||||||
/usr/share/pixmaps/CMakeSetup.png
|
/usr/share/pixmaps/CMakeSetup.png
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 12 2008 mrdocs@opensuse.org
|
||||||
|
- add %%ifdefs to disable the cmake gui for non-Suse distros
|
||||||
|
- SLES 9 does not build, but its a compile failure
|
||||||
* Fri May 09 2008 dmueller@suse.de
|
* Fri May 09 2008 dmueller@suse.de
|
||||||
- fix ctest reporting (kitware#6988), patch by Andreas Schneider
|
- fix ctest reporting (kitware#6988), patch by Andreas Schneider
|
||||||
* Wed May 07 2008 dmueller@suse.de
|
* Wed May 07 2008 dmueller@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user