92 lines
4.0 KiB
Plaintext
92 lines
4.0 KiB
Plaintext
%if "%{_repository}" == "images"
|
|
Type: kiwi
|
|
Repotype: none
|
|
Patterntype: none
|
|
%endif
|
|
|
|
Substitute: kiwi-packagemanager:instsource kiwi-instsource cdrkit-cdrtools-compat syslinux
|
|
Substitute: kiwi-boot:isoboot kiwi-desc-isoboot module-init-tools elfutils squashfs fribidi gfxboot-devel gawk gfxboot gfxboot-devel grub hdparm hwinfo iproute2 kiwi-tools lvm2 make memtest86+ netcfg psmisc squashfs sysfsutils syslinux clicfs e2fsprogs
|
|
Substitute: kiwi-boot:oemboot kiwi-desc-oemboot cracklib-dict-small bind-libs bind-utils bootsplash bootsplash-branding-openSUSE bzip2 dhcpcd e2fsprogs eject file fribidi gfxboot gfxboot-devel grub hwinfo kernel-default kernel-default-base kernel-default-extra kiwi-tools lvm2 make module-init-tools net-tools netcfg pciutils psmisc squashfs sysconfig sysfsutils tar util-linux e2fsprogs
|
|
Substitute: kiwi-boot:vmxboot kiwi-desc-vmxboot bind-libs bind-utils bootsplash bootsplash-branding-openSUSE cromfs dhcpcd e2fsprogs file fribidi gfxboot-branding-openSUSE gfxboot-devel grub hwinfo kernel-default kernel-default-base kernel-default-extra lvm2 make module-init-tools net-tools netcfg pciutils psmisc squashfs sysconfig sysfsutils tar util-linux
|
|
|
|
Prefer: libxslt1
|
|
|
|
%if 0%{?fedora_version}
|
|
Preinstall: perl-Getopt-Long
|
|
Substitute: libxslt-tools libxslt
|
|
Substitute: libsensors4-devel lm_sensors-devel
|
|
Substitute: libQt5Gui-private-headers-devel qt5-qtbase-devel
|
|
Substitute: kwindowsystem-devel kf5-kwindowsystem-devel
|
|
Substitute: kguiaddons-devel kf5-kguiaddons-devel
|
|
Prefer: libfm
|
|
Prefer: libfm-devel
|
|
Prefer: libqt5xdg-devel
|
|
Prefer: libQt5Xdg1
|
|
Release: <B_CNT>.fc%{?fedora_version}
|
|
Macros:
|
|
#
|
|
# Macros for cmake
|
|
#
|
|
%_cmake_lib_suffix64 -DLIB_SUFFIX=64
|
|
%_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON
|
|
%_cmake_version 3.0.2
|
|
%__cmake /usr/bin/cmake
|
|
|
|
# - Set default compile flags
|
|
# - CMAKE_*_FLAGS_RELEASE are added *after* the *FLAGS environment variables
|
|
# and default to -O3 -DNDEBUG. Strip the -O3 so we can override with *FLAGS
|
|
# - Turn on verbose makefiles so we can see and verify compile flags
|
|
# - Set default install prefixes and library install directories
|
|
# - Turn on shared libraries by default
|
|
%cmake \
|
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
|
|
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
|
|
FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \
|
|
FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \
|
|
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
|
|
find . -name CMakeLists.txt \\\
|
|
-exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\\\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\\\)/{s/^/#IGNORE /}' {} + \
|
|
mkdir -p build \
|
|
cd build \
|
|
%__cmake .. \\\
|
|
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
|
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
|
-DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \\\
|
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=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 \
|
|
|
|
%cmake_install %__make VERBOSE=1 DESTDIR=%{buildroot} install/fast -C build
|
|
|
|
%lang_package(n:r:) \
|
|
%package %{-n:-n %{-n*}-}lang \
|
|
Summary: Languages for package %{name} \
|
|
Group: System/Localization \
|
|
Requires: %{-n:%{-n*}}%{!-n:%{name}} = %{version} \
|
|
%{-r:Requires: %{-r*}} \
|
|
Provides: %{-n:%{-n*}}%{!-n:%{name}}-lang-all = %{version} \
|
|
Supplements: packageand(bundle-lang-other:%{-n:%{-n*}}%{!-n:%%{name}}) \
|
|
BuildArch: noarch \
|
|
%description %{-n:-n %{-n*}-}lang \
|
|
Provides translations to the package %{name} \
|
|
|
|
:Macros
|
|
%endif
|
|
|
|
%if "%{_repository}" == "openSUSE_Factory"
|
|
%define _with_gamin 0
|
|
%define _with_libsidplay 0
|
|
%else
|
|
%define _with_gamin 1
|
|
%define _with_libsidplay 1
|
|
%endif
|
|
|
|
Macros:
|
|
%_vendor openSUSE-LXDE |