Rex Dieter wrote:
http://fedoraproject.org/wiki/PackagingDrafts/cmake
In short, adding to %cmake:
-DINCLUDE_INSTALL_DIR=%{_includedir} \\\
-DLIB_INSTALL_DIR=%{_libdir} \\\
-DSYSCONF_INSTALL_DIR=%{_sysconfdir} \\\
-DSHARE_INSTALL_PREFIX=%{_datadir}
Found these additions useful while working on kde4 packaging
(SYSCONF_INSTALL_DIR in particular, since kde4's default was/is
prefix/etc).
-- Rex
Basically looks good to me. Here's what I propose:
#
# Macros for cmake
#
%_cmake_lib_suffix64 -DLIB_SUFFIX=64
%__cmake %{_bindir}/cmake
%cmake \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
%__cmake \\\
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
-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
I'll put in devel and recompile my cmake projects against it.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@xxxxxxxxxxxxx
Boulder, CO 80301 http://www.cora.nwra.com
--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging