Accepting request 390308 from home:AndreasStieger:branches:devel:tools:building
cmake 3.5.2 OBS-URL: https://build.opensuse.org/request/show/390308 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=246
This commit is contained in:
committed by
Git OBS Bridge
parent
3ea2a48185
commit
a81850e3f1
12
cmake.spec
12
cmake.spec
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: cmake
|
||||
Version: 3.5.1
|
||||
Version: 3.5.2
|
||||
Release: 0
|
||||
Summary: Cross-platform, open-source make system
|
||||
License: BSD-3-Clause
|
||||
@@ -40,20 +40,21 @@ Patch6: cmake-version-in-generated-files.patch
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libarchive-devel >= 3.0.2
|
||||
BuildRequires: libbz2-devel
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: zlib-devel
|
||||
# this is commented as it would create dependancy cycle between jsoncpp and cmake
|
||||
#if 0%{?suse_version} > 1320
|
||||
#BuildRequires: pkgconfig(jsoncpp)
|
||||
#endif
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
Requires: make
|
||||
Requires: python-base
|
||||
Recommends: cmake-mans
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libarchive-devel >= 3.0.2
|
||||
BuildRequires: libbz2-devel
|
||||
|
||||
%description
|
||||
CMake is a cross-platform, open-source build system
|
||||
@@ -71,6 +72,7 @@ echo "`grep %{name}-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOU
|
||||
%build
|
||||
export CXXFLAGS="%{optflags}"
|
||||
export CFLAGS="%{optflags}"
|
||||
# FIXME: you should use the %%configure macro
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--datadir=/share/%{name} \
|
||||
@@ -87,7 +89,7 @@ export CFLAGS="%{optflags}"
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||||
mkdir -p %{buildroot}%{_libdir}/cmake
|
||||
find %{buildroot}%{_datadir}/cmake -type f -print0 | xargs -0 chmod 644
|
||||
# rpm macros
|
||||
|
Reference in New Issue
Block a user