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:
commit
dbd4863c7d
@ -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
|
Sun Jul 24 12:53:31 UTC 2016 - foss@grueninger.de
|
||||||
|
|
||||||
|
@ -43,21 +43,16 @@ BuildRequires: openssl-devel
|
|||||||
#if 0%{?suse_version} > 1320
|
#if 0%{?suse_version} > 1320
|
||||||
#BuildRequires: pkgconfig(jsoncpp)
|
#BuildRequires: pkgconfig(jsoncpp)
|
||||||
#endif
|
#endif
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-sphinx
|
BuildRequires: python-sphinx
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: pkgconfig(Qt5Widgets)
|
||||||
BuildRequires: pkgconfig(bzip2)
|
BuildRequires: pkgconfig(bzip2)
|
||||||
BuildRequires: pkgconfig(liblzma)
|
BuildRequires: pkgconfig(liblzma)
|
||||||
Requires: cmake
|
Requires: cmake
|
||||||
Recommends: cmake-man
|
Recommends: cmake-man
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} >= 1320
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
BuildRequires: pkgconfig(Qt5Widgets)
|
|
||||||
%else
|
|
||||||
BuildRequires: libqt4-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a Graphical User Interface for CMake, a cross-platform,
|
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
|
%patch6 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
EXTRA_FLAGS="--qt-gui"
|
export CFLAGS="%{optflags}"
|
||||||
# FIXME: you should use the %%configure macro
|
export CXXFLAGS="%{optflags}"
|
||||||
|
# This is not autotools configure
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--datadir=/share/cmake \
|
--datadir=/share/cmake \
|
||||||
--docdir=/share/doc/packages/cmake \
|
--docdir=/share/doc/packages/cmake \
|
||||||
--mandir=/share/man \
|
--mandir=/share/man \
|
||||||
--sphinx-man \
|
--sphinx-man \
|
||||||
%if 0%{?suse_version} && !0%{?sles_version}
|
|
||||||
--system-libs \
|
--system-libs \
|
||||||
%else
|
|
||||||
--system-curl \
|
|
||||||
--system-expat \
|
|
||||||
--system-zlib \
|
|
||||||
--system-bzip2 \
|
|
||||||
--no-system-libarchive \
|
|
||||||
%endif
|
|
||||||
--no-system-jsoncpp \
|
--no-system-jsoncpp \
|
||||||
--parallel=0%{jobs} \
|
--parallel=0%{jobs} \
|
||||||
--qt-gui
|
--qt-gui
|
||||||
|
@ -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
|
Mon Aug 8 00:18:51 UTC 2016 - badshah400@gmail.com
|
||||||
|
|
||||||
|
16
cmake.macros
16
cmake.macros
@ -4,6 +4,7 @@
|
|||||||
%__cmake %{_bindir}/cmake
|
%__cmake %{_bindir}/cmake
|
||||||
%__ctest %{_bindir}/ctest
|
%__ctest %{_bindir}/ctest
|
||||||
%__builddir build
|
%__builddir build
|
||||||
|
%__builder %__make
|
||||||
|
|
||||||
%cmake \
|
%cmake \
|
||||||
find . -name CMakeLists.txt \\\
|
find . -name CMakeLists.txt \\\
|
||||||
@ -11,13 +12,18 @@
|
|||||||
mkdir -p %__builddir \
|
mkdir -p %__builddir \
|
||||||
cd %__builddir \
|
cd %__builddir \
|
||||||
%__cmake .. \\\
|
%__cmake .. \\\
|
||||||
|
%if "%__builder" == "%__make" \
|
||||||
|
-G"Unix Makefiles" \\\
|
||||||
|
%else \
|
||||||
|
-GNinja \\\
|
||||||
|
%endif \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
|
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
|
||||||
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
|
-DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
|
||||||
-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
|
-DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
|
||||||
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
|
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
|
||||||
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
|
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
|
||||||
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
|
||||||
-DCMAKE_BUILD_TYPE=None \\\
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
|
||||||
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags} -DNDEBUG" \\\
|
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags} -DNDEBUG" \\\
|
||||||
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags} -DNDEBUG" \\\
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags} -DNDEBUG" \\\
|
||||||
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}} -DNDEBUG" \\\
|
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}} -DNDEBUG" \\\
|
||||||
@ -36,10 +42,14 @@
|
|||||||
-DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules
|
-DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules
|
||||||
|
|
||||||
%make_jobs \
|
%make_jobs \
|
||||||
%__make %{?_smp_mflags} VERBOSE=1
|
%if "%__builder" == "%__make" \
|
||||||
|
%__make %{?_smp_mflags} VERBOSE=1 \
|
||||||
|
%else \
|
||||||
|
ninja -v %{?_smp_mflags} \
|
||||||
|
%endif
|
||||||
|
|
||||||
%cmake_install \
|
%cmake_install \
|
||||||
%__make VERBOSE=1 DESTDIR=%{buildroot} install/fast -C %__builddir
|
DESTDIR=%{buildroot} %__builder install -C %__builddir
|
||||||
|
|
||||||
%ctest \
|
%ctest \
|
||||||
cd %__builddir \
|
cd %__builddir \
|
||||||
|
@ -51,7 +51,7 @@ BuildRequires: ncurses-devel
|
|||||||
#if 0%{?suse_version} > 1320
|
#if 0%{?suse_version} > 1320
|
||||||
#BuildRequires: pkgconfig(jsoncpp)
|
#BuildRequires: pkgconfig(jsoncpp)
|
||||||
#endif
|
#endif
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: pkgconfig(liblzma)
|
BuildRequires: pkgconfig(liblzma)
|
||||||
Requires: make
|
Requires: make
|
||||||
@ -75,7 +75,9 @@ echo "`grep %{name}-%{version}.tar.gz %{SOURCE5} | grep -Eo '^[0-9a-f]+'` %{SOU
|
|||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# FIXME: you should use the %%configure macro
|
export CFLAGS="%{optflags}"
|
||||||
|
export CXXFLAGS="%{optflags}"
|
||||||
|
# This is not autotools configure
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--datadir=/share/%{name} \
|
--datadir=/share/%{name} \
|
||||||
|
Loading…
Reference in New Issue
Block a user