ngompa / rpms / cmake

Forked from rpms/cmake 4 years ago
Clone
949600
#
949600
# Macros for cmake
949600
#
949600
%_cmake_lib_suffix64 -DLIB_SUFFIX=64
949600
%_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON
949600
%_cmake_version @@CMAKE_VERSION@@
949600
%__cmake /usr/bin/cmake
949600
949600
# - Set default compile flags
949600
# - CMAKE_*_FLAGS_RELEASE are added *after* the *FLAGS environment variables
949600
# and default to -O3 -DNDEBUG.  Strip the -O3 so we can override with *FLAGS
949600
# - Turn on verbose makefiles so we can see and verify compile flags
949600
# - Set default install prefixes and library install directories
949600
# - Turn on shared libraries by default
949600
%cmake \
949600
  CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
949600
  CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
949600
  FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \
949600
  FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \
949600
  %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
949600
  %__cmake \\\
949600
        -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
949600
        -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
949600
        -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
949600
        -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\
949600
        -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
949600
        -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
949600
        -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
949600
        -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
949600
        -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
949600
%if "%{?_lib}" == "lib64" \
949600
        %{?_cmake_lib_suffix64} \\\
949600
%endif \
949600
        -DBUILD_SHARED_LIBS:BOOL=ON