forked from pool/cmake
fix build for older distros
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=75
This commit is contained in:
parent
96f80169ff
commit
8eac185426
@ -39,10 +39,12 @@ BuildRequires: expat-devel
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: libarchive-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: zlib-devel
|
||||
%if 0%{?suse_version} > 1130
|
||||
BuildRequires: libarchive-devel
|
||||
%endif
|
||||
Requires: cmake
|
||||
|
||||
%description
|
||||
@ -66,7 +68,15 @@ export CFLAGS="$CXXFLAGS"
|
||||
--datadir=/share/cmake \
|
||||
--docdir=/share/doc/packages/cmake \
|
||||
--mandir=/share/man \
|
||||
%if 0%{?suse_version} > 1130
|
||||
--system-libs \
|
||||
%else
|
||||
--system-curl \
|
||||
--system-expat \
|
||||
--system-zlib \
|
||||
--system-bzip2 \
|
||||
--no-system-libarchive \
|
||||
%endif
|
||||
--parallel=0%jobs \
|
||||
--qt-gui
|
||||
make VERBOSE=1 %{?jobs:-j %jobs}
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 5 10:49:54 UTC 2011 - puzel@novell.com
|
||||
|
||||
- use --no-system-libarchive for openSUSE < 11.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 4 14:17:43 UTC 2011 - puzel@novell.com
|
||||
|
||||
|
12
cmake.spec
12
cmake.spec
@ -39,10 +39,12 @@ BuildRequires: expat-devel
|
||||
%endif
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libarchive-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: zlib-devel
|
||||
%if 0%{?suse_version} > 1130
|
||||
BuildRequires: libarchive-devel
|
||||
%endif
|
||||
Requires: make
|
||||
|
||||
%description
|
||||
@ -64,7 +66,15 @@ export CFLAGS="$CXXFLAGS"
|
||||
--datadir=/share/%{name} \
|
||||
--docdir=/share/doc/packages/%{name} \
|
||||
--mandir=/share/man \
|
||||
%if 0%{?suse_version} > 1130
|
||||
--system-libs \
|
||||
%else
|
||||
--system-curl \
|
||||
--system-expat \
|
||||
--system-zlib \
|
||||
--system-bzip2 \
|
||||
--no-system-libarchive \
|
||||
%endif
|
||||
--parallel=0%jobs \
|
||||
--no-qt-gui
|
||||
make VERBOSE=1 %{?jobs:-j %jobs}
|
||||
|
Loading…
Reference in New Issue
Block a user