Home Wiki > openSUSE:KDE RPM Macros
Sign up | Login

openSUSE:KDE RPM Macros

tagline: From openSUSE

The RPM macros for KDE packages.

KDE macros

%kde_post_install

It's a generic macro that should be called as the last non-trivial step in the %install section of the spec file in order to be able to hook in generic clean up and fix functionality that might be needed for a wide range of packages.

KDE4 macros

%kde4_runtime_requires

Adds a Requires: kdebase4-runtime >= %_kde_platform_version dependency to the package.

%kde4_pimlibs_requires

Adds a Requires: kdepimlibs4 >= %_kde_pimlibs_version dependency to the package.

%cmake_kde4

This macro calls cmake with the right parameters to build openSUSE KDE4 compatible packages. If you pass a -d <directory> option also inititate an out of tree build. Compiling outside of the source tree is strongly recommended. Ex: %cmake_kde4 -d builddir will create builddir which is where the cmake configure and make files will go along with the actual compilation.

For passing arbitrary arguments, this syntax is needed:

%cmake_kde4 -- -DENABLE_SOMETHING=YES

%_kde4_bindir

/usr/bin

%_kde4_libdir

/usr/lib/

%_kde4_modulesdir

/usr/lib/kde4/

%_kde4_includedir

/usr/include/

%_kde4_sharedir

/usr/share/kde4/

%_kde4_appsdir

/usr/share/kde4/apps/

%_kde4_iconsdir

/usr/share/icons/

%_kde4_servicesdir

/usr/share/kde4/services/

%_kde4_applicationsdir

/usr/share/applications/kde4/

%_kde4_configdir

/usr/share/kde4/config

%_kde4_htmldir

/usr/share/doc/kde/HTML/