SHA256
3
0
forked from pool/cmake

Accepting request 423029 from devel:tools:building

1

OBS-URL: https://build.opensuse.org/request/show/423029
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=124
This commit is contained in:
Dominique Leuenberger 2016-08-30 22:00:56 +00:00 committed by Git OBS Bridge
commit dbd4863c7d
5 changed files with 37 additions and 22 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Aug 26 08:14:10 UTC 2016 - tchvatal@suse.com
- Remove wrong FIXME from spec
- Require qt5 gui everywhere as it on all supported platforms
-------------------------------------------------------------------
Sun Jul 24 12:53:31 UTC 2016 - foss@grueninger.de

View File

@ -43,21 +43,16 @@ BuildRequires: openssl-devel
#if 0%{?suse_version} > 1320
#BuildRequires: pkgconfig(jsoncpp)
#endif
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: python-sphinx
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(liblzma)
Requires: cmake
Recommends: cmake-man
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1320
BuildRequires: pkg-config
BuildRequires: pkgconfig(Qt5Widgets)
%else
BuildRequires: libqt4-devel
%endif
%description
This is a Graphical User Interface for CMake, a cross-platform,
@ -80,23 +75,16 @@ echo "`grep cmake-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOURC
%patch6 -p1
%build
EXTRA_FLAGS="--qt-gui"
# FIXME: you should use the %%configure macro
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
# This is not autotools configure
./configure \
--prefix=%{_prefix} \
--datadir=/share/cmake \
--docdir=/share/doc/packages/cmake \
--mandir=/share/man \
--sphinx-man \
%if 0%{?suse_version} && !0%{?sles_version}
--system-libs \
%else
--system-curl \
--system-expat \
--system-zlib \
--system-bzip2 \
--no-system-libarchive \
%endif
--no-system-jsoncpp \
--parallel=0%{jobs} \
--qt-gui

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Aug 26 08:27:17 UTC 2016 - tchvatal@suse.com
- Respect CFLAGS while bootstraping
- Remove wrong FIXME from the spec
- Add relwithdebinfo as default target to ease living of sci packages
- Add possibility to switch between ninja and cmake by defining
%__builder ninja prior %cmake call bnc#995752
-------------------------------------------------------------------
Mon Aug 8 00:18:51 UTC 2016 - badshah400@gmail.com

View File

@ -4,6 +4,7 @@
%__cmake %{_bindir}/cmake
%__ctest %{_bindir}/ctest
%__builddir build
%__builder %__make
%cmake \
find . -name CMakeLists.txt \\\
@ -11,13 +12,18 @@
mkdir -p %__builddir \
cd %__builddir \
%__cmake .. \\\
%if "%__builder" == "%__make" \
-G"Unix Makefiles" \\\
%else \
-GNinja \\\
%endif \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
-DCMAKE_BUILD_TYPE=None \\\
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags} -DNDEBUG" \\\
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags} -DNDEBUG" \\\
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}} -DNDEBUG" \\\
@ -36,10 +42,14 @@
-DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules
%make_jobs \
%__make %{?_smp_mflags} VERBOSE=1
%if "%__builder" == "%__make" \
%__make %{?_smp_mflags} VERBOSE=1 \
%else \
ninja -v %{?_smp_mflags} \
%endif
%cmake_install \
%__make VERBOSE=1 DESTDIR=%{buildroot} install/fast -C %__builddir
DESTDIR=%{buildroot} %__builder install -C %__builddir
%ctest \
cd %__builddir \

View File

@ -51,7 +51,7 @@ BuildRequires: ncurses-devel
#if 0%{?suse_version} > 1320
#BuildRequires: pkgconfig(jsoncpp)
#endif
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: zlib-devel
BuildRequires: pkgconfig(liblzma)
Requires: make
@ -75,7 +75,9 @@ echo "`grep %{name}-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOU
%patch7 -p1
%build
# FIXME: you should use the %%configure macro
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
# This is not autotools configure
./configure \
--prefix=%{_prefix} \
--datadir=/share/%{name} \