[Kolab-devel] Working on packaging Kolab 3 for openSUSE

Jeroen van Meeuwen (Kolab Systems) vanmeeuwen at kolabsys.com
Tue Nov 20 00:14:38 CET 2012


On 2012-11-19 21:26, Aeneas Jaißle wrote:
> Thanks!
>
> libkolabxml.spec contains a var %{cmake}. Can you provide me with
> some information how this is used as it only resolves while building
> for fedora?
>

On my 64-bit workstation:

[kanarip at albert dist-git]$ cat /etc/rpm/macros.cmake
#
# Macros for cmake
#
%_cmake_lib_suffix64 -DLIB_SUFFIX=64
%_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON
%_cmake_version 2.8.9
%__cmake /usr/bin/cmake

%cmake \
   CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
   CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
   FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export 
FFLAGS ; \
   %{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export 
LDFLAGS ;} \
   %__cmake \\\
         -DCMAKE_VERBOSE_MAKEFILE=ON \\\
         -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} \\\
%if "%{?_lib}" == "lib64" \
         %{?_cmake_lib_suffix64} \\\
%endif \
         -DBUILD_SHARED_LIBS:BOOL=ON

Kind regards,

Jeroen van Meeuwen

-- 
Systems Architect, Kolab Systems AG

e: vanmeeuwen at kolabsys.com
m: +44 74 2516 3817
w: http://www.kolabsys.com

pgp: 9342 BF08




More information about the devel mailing list