forked from pool/cmake
Accepting request 245024 from devel:tools:building
- Mark macros as %config - use curl-devel to build with as the internal libcurl is broken with https bnc#892256 - Run tests to avoid such bugs in future - Provide %ctest macro for testing to avoid people having to remember all the arguments OBS-URL: https://build.opensuse.org/request/show/245024 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=91
This commit is contained in:
commit
bd1eb0f7d5
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 18 08:20:28 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Mark macros as %config
|
||||||
|
- use curl-devel to build with as the internal libcurl is broken
|
||||||
|
with https bnc#892256
|
||||||
|
- Run tests to avoid such bugs in future
|
||||||
|
- Provide %ctest macro for testing to avoid people having to
|
||||||
|
remember all the arguments
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 10 14:33:05 UTC 2014 - andreas.stieger@gmx.de
|
Sun Aug 10 14:33:05 UTC 2014 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
# Macros for cmake
|
# Macros for cmake
|
||||||
#
|
#
|
||||||
%__cmake %{_bindir}/cmake
|
%__cmake %{_bindir}/cmake
|
||||||
|
%__ctest %{_bindir}/ctest
|
||||||
%_cmake_debug %{?with_debug:debug}%{?!with_debug:release}
|
%_cmake_debug %{?with_debug:debug}%{?!with_debug:release}
|
||||||
|
|
||||||
%cmake \
|
%cmake \
|
||||||
@ -38,3 +39,8 @@
|
|||||||
cd build \
|
cd build \
|
||||||
make DESTDIR=%{buildroot} install/fast \
|
make DESTDIR=%{buildroot} install/fast \
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
%ctest \
|
||||||
|
cd build \
|
||||||
|
%__ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} \
|
||||||
|
cd ..
|
||||||
|
12
cmake.spec
12
cmake.spec
@ -29,6 +29,7 @@ Source2: opensuse_rules.cmake
|
|||||||
Patch2: cmake-fix-ruby-test.patch
|
Patch2: cmake-fix-ruby-test.patch
|
||||||
#PATCH-FIX-UPSTREAM dvaleev@suse.com https://github.com/Kitware/CMake/pull/111.patch
|
#PATCH-FIX-UPSTREAM dvaleev@suse.com https://github.com/Kitware/CMake/pull/111.patch
|
||||||
Patch3: cmake-ppc64le-jni.patch
|
Patch3: cmake-ppc64le-jni.patch
|
||||||
|
BuildRequires: curl-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libexpat-devel
|
BuildRequires: libexpat-devel
|
||||||
@ -59,7 +60,6 @@ export CFLAGS="$CXXFLAGS"
|
|||||||
--docdir=/share/doc/packages/%{name} \
|
--docdir=/share/doc/packages/%{name} \
|
||||||
--mandir=/share/man \
|
--mandir=/share/man \
|
||||||
--system-libs \
|
--system-libs \
|
||||||
--no-system-curl \
|
|
||||||
%if 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} <= 1110
|
||||||
--no-system-libarchive \
|
--no-system-libarchive \
|
||||||
%endif
|
%endif
|
||||||
@ -82,9 +82,17 @@ sed -i \
|
|||||||
|
|
||||||
%fdupes %{buildroot}%{_datadir}/cmake
|
%fdupes %{buildroot}%{_datadir}/cmake
|
||||||
|
|
||||||
|
%check
|
||||||
|
# Excluded tests:
|
||||||
|
# TestUpload: uses internet connection
|
||||||
|
# SimpleInstall: seems to fail due to RPATH strictness
|
||||||
|
# if any other app installs then this test is bogus
|
||||||
|
./bin/ctest --force-new-ctest-process --output-on-failure %{?_smp_mflags} \
|
||||||
|
-E "(TestUpload|SimpleInstall|SimpleInstall-Stage2)"
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sysconfdir}/rpm/macros.cmake
|
%config %{_sysconfdir}/rpm/macros.cmake
|
||||||
%{_bindir}/cpack
|
%{_bindir}/cpack
|
||||||
%{_bindir}/cmake
|
%{_bindir}/cmake
|
||||||
%{_bindir}/ctest
|
%{_bindir}/ctest
|
||||||
|
Loading…
Reference in New Issue
Block a user