63 lines
2.7 KiB
Plaintext
63 lines
2.7 KiB
Plaintext
%_kde5_version 5.7.0
|
|
|
|
%_kde5_prefix %_prefix
|
|
%_kde5_sysconfdir %_sysconfdir
|
|
|
|
%_kde5_autostartdir %_kde5_prefix/autostart
|
|
%_kde5_bindir %_kde5_prefix/bin
|
|
%_kde5_configdir %_kde5_prefix/share/config
|
|
%_kde5_datadir %_kde5_prefix/share/apps
|
|
%_kde5_dbusinterfacesdir %_datadir/dbus-1/interfaces
|
|
%_kde5_dbusservicesdir %_datadir/dbus-1/services
|
|
%_kde5_dbussystemservicesdir %_datadir/dbus-1/system-services
|
|
%_kde5_htmldir %_kde5_prefix/share/doc/HTML
|
|
%_kde5_icondir %_kde5_prefix/share/icons
|
|
%_kde5_kcfgdir %_kde5_prefix/share/config.kcfg
|
|
%_kde5_kconfupdatedir %_kde5_prefix/share/apps/kconf_update
|
|
%_kde5_includedir %_kde5_prefix/include
|
|
%_kde5_libdir %_kde5_prefix/%_lib
|
|
%_kde5_libexecdir %_libexecdir
|
|
%_kde5_localedir %_kde5_prefix/share/locale
|
|
%_kde5_mimedir %_kde5_prefix/share/mime
|
|
%_kde5_mkspecsdir %_qt5_prefix/mkspecs/modules
|
|
%_kde5_pluginsdir %_qt5_prefix/plugins
|
|
%_kde5_sbindir %_kde5_prefix/sbin
|
|
%_kde5_servicesdir %_kde5_prefix/share/kde5/services
|
|
%_kde5_servicetypesdir %_kde5_prefix/share/kde5/servicetypes
|
|
%_kde5_sharedir %_kde5_prefix/share
|
|
%_kde5_soundsdir %_kde5_prefix/share/sounds
|
|
%_kde5_templatesdir %_kde5_prefix/share/templates
|
|
%_kde5_xdgappsdir %_kde5_prefix/share/applications
|
|
%_kde5_xdgdirectorydir %_kde5_prefix/share/desktop-directories
|
|
%_kde5_xdgmimedir %_kde5_prefix/share/mime/packages
|
|
%_kde5_wallpaperdir %_kde5_prefix/share/wallpapers
|
|
|
|
%_kde5_debug RelWithDebInfo
|
|
|
|
%cmake_kde5(d:) \
|
|
QTDIR="%{_qt5_prefix}" ; export QTDIR ; \
|
|
PATH="%{_qt5_bindir}:$PATH" ; export PATH ; \
|
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
|
|
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
|
|
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
|
|
bdir=. \
|
|
%{-d:dir=%{-d*} ; mkdir -p $dir ; cd $dir ; bdir=.. } \
|
|
%{__cmake} \\\
|
|
%if "%{_lib}" == "lib64" \
|
|
-DLIB_SUFFIX=64 \\\
|
|
%endif \
|
|
-DCMAKE_BUILD_TYPE=%{_kde5_debug} \\\
|
|
-DCMAKE_INSTALL_PREFIX:PATH=%{_kde5_prefix} \\\
|
|
-DDBUS_INTERFACES_INSTALL_DIR:PATH=%{_kde5_dbusinterfacesdir} \\\
|
|
-DDBUS_SERVICES_INSTALL_DIR:PATH=%{_kde5_dbusservicesdir} \\\
|
|
-DDBUS_SYSTEM_SERVICES_INSTALL_DIR:PATH=%{_kde5_dbussystemservicesdir} \\\
|
|
-DINFO_INSTALL_DIR:PATH=%{_infodir} \\\
|
|
-DMAN_INSTALL_DIR:PATH=%{_mandir} \\\
|
|
-DSYSCONF_INSTALL_DIR:PATH=%{_kde5_sysconfdir} \\\
|
|
-DXDG_APPS_INSTALL_DIR:PATH=%{_kde5_xdgappsdir} \\\
|
|
-DXDG_MIME_INSTALL_DIR:PATH=%{_kde5_xdgmimedir} \\\
|
|
-DKDE_INSTALL_LIBEXECDIR:PATH=%{_kde5_libexecdir} \\\
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \\\
|
|
-DECM_MKSPECS_INSTALL_DIR=%{_kde5_mkspecsdir} \\\
|
|
-DBUILD_TESTING=OFF $bdir
|