]> git.pld-linux.org Git - packages/cmake.git/blobdiff - cmake.spec
- tests bcond desc
[packages/cmake.git] / cmake.spec
index 65bfc1493fe2935425d335ad5e5e1e4c07e7a814..34a0d9cbc60646605f32a387d1c37d309a609e48 100644 (file)
@@ -7,18 +7,21 @@
 # Conditional build:
 %bcond_with    bootstrap       # use internal versions of some libraries
 %bcond_without gui             # don't build gui package
+%bcond_without tests           # do not perform "make test"
 
 Summary:       Cross-platform, open-source make system
 Summary(pl.UTF-8):     Wieloplatformowy system make o otwartych źródłach
 Name:          cmake
-Version:       2.8.11
-Release:       1
+Version:       2.8.11.1
+Release:       2
 License:       BSD
 Group:         Development/Building
 Source0:       http://www.cmake.org/files/v2.8/%{name}-%{version}.tar.gz
-# Source0-md5: be6008f2299613d23fe82ab53ef7472e
+# Source0-md5: df5324a3b203373a9e0a04b924281a43
 Patch0:                %{name}-lib64.patch
 Patch1:                %{name}-helpers.patch
+Patch2:                cmake-findruby.patch
+Patch3:                cmake-git.patch
 URL:           http://www.cmake.org/
 %{?with_gui:BuildRequires:     QtGui-devel}
 BuildRequires: libarchive-devel
@@ -91,6 +94,8 @@ Bashowe dopełnianie parametrów dla cmake'a.
 %patch0 -p1
 %endif
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 cat > "init.cmake" <<EOF
 SET (CURSES_INCLUDE_PATH "/usr/include/ncurses" CACHE PATH " " FORCE)
@@ -116,9 +121,10 @@ export LDFLAGS="%{rpmldflags}"
 
 %{__make} VERBOSE=1
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
This page took 0.096667 seconds and 4 git commands to generate.