SHA256
3
0
forked from pool/cmake

Accepting request 231232 from home:dirkmueller:branches:devel:tools:building

- fix build on SLE11
- remove dependency on system curl: this is not a security
  senstive app and the system curl comes quite late in the
  build cycle
- remove nonsensical checks for %{sles_version}

OBS-URL: https://build.opensuse.org/request/show/231232
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=145
This commit is contained in:
Ismail Dönmez 2014-04-24 10:29:47 +00:00 committed by Git OBS Bridge
parent b0c1f44120
commit bfdd57c284
2 changed files with 15 additions and 12 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Apr 23 17:15:17 UTC 2014 - dmueller@suse.com
- fix build on SLE11
- remove dependency on system curl: this is not a security
senstive app and the system curl comes quite late in the
build cycle
- remove nonsensical checks for %{sles_version}
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 20 01:42:01 UTC 2014 - hrvoje.senjan@gmail.com Thu Mar 20 01:42:01 UTC 2014 - hrvoje.senjan@gmail.com

View File

@ -33,19 +33,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1010 %if 0%{?suse_version} > 1010
BuildRequires: fdupes BuildRequires: fdupes
%endif %endif
%if 0%{?sles_version} != 10 %if 0%{?suse_version} > 1110
BuildRequires: libarchive-devel BuildRequires: libarchive-devel
BuildRequires: libbz2-devel
%endif %endif
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
%else
BuildRequires: expat-devel
%endif %endif
BuildRequires: curl-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: pkgconfig(bzip2)
Requires: make Requires: make
@ -64,16 +60,13 @@ export CFLAGS="$CXXFLAGS"
--datadir=/share/%{name} \ --datadir=/share/%{name} \
--docdir=/share/doc/packages/%{name} \ --docdir=/share/doc/packages/%{name} \
--mandir=/share/man \ --mandir=/share/man \
%if 0%{?suse_version} && !0%{?sles_version}
--system-libs \ --system-libs \
%else --no-system-curl \
--system-curl \ %if 0%{?suse_version} <= 1110
--system-expat \
--system-zlib \
--system-bzip2 \
--no-system-libarchive \ --no-system-libarchive \
%endif %endif
--parallel=0%jobs \ --parallel=0%jobs \
--verbose \
--no-qt-gui --no-qt-gui
make VERBOSE=1 %{?_smp_mflags} make VERBOSE=1 %{?_smp_mflags}
@ -102,6 +95,7 @@ sed -i \
%{_bindir}/ccmake %{_bindir}/ccmake
%{_datadir}/cmake %{_datadir}/cmake
%{_libdir}/cmake %{_libdir}/cmake
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/cmake.m4 %{_datadir}/aclocal/cmake.m4
%doc %{_datadir}/doc/packages/%{name} %doc %{_datadir}/doc/packages/%{name}