[Fedora-packaging] Re: cmake rpm macro(s):
Axel Thimm
Axel.Thimm at ATrpms.net
Tue Mar 13 20:14:26 UTC 2007
Hi,
On Tue, Mar 13, 2007 at 01:05:48PM -0500, Rex Dieter wrote:
> Appended is a first try at rpm macro'izing the the call to cmake per:
> http://fedoraproject.org/wiki/PackagingDrafts/cmake
>
> I chose not to implement the out-of-tree style of build in the
> PackagingDraft to keep things simple(r).
>
> Made each cmake option a separate macro to make in easier to override.
>
> Comments?
do you need the _cmake_* macros for other things? If not, I would
simply write the values into the %cmake macros.
> -- Rex
>
> #################################
> ## /etc/rpm/macros.cmake:
>
> %_cmake_install_prefix -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
> %_cmake_build_shared_libs -DBUILD_SHARED_LIBS:BOOL=ON
> %_cmake_lib_suffix64 -DLIB_SUFFIX=64
>
> %cmake \
> CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
> CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
> FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
> %{_bindir}/cmake \\\
> %{?_cmake_install_prefix} \\\
> %{?_cmake_build_shared_libs} \\\
> %if "%{?_lib}" == "lib64" \
> %{?_cmake_lib_suffix64} \\\
> %endif \
>
> ###############################3#
>
--
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20070313/656ddba7/attachment.sig>
More information about the Fedora-packaging
mailing list