Files
_ObsPrj/_config

574 lines
17 KiB
Plaintext

############################################################
##################### SLE_12 ###############################
############################################################
%if 0%{?suse_version} == 1315
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
Prefer: saltbundle-libopenssl1_0_0
Prefer: saltbundle-libyaml
Substitute: pkgconfig(ncurses) ncurses-devel
FileProvides: /usr/bin/who coreutils
Macros:
%make_build /usr/bin/make V=1 VERBOSE=1
%saltbundlepy_module() saltbundlepy-%{**}
:Macros
%endif
############################################################
##################### SLE_15 ###############################
############################################################
%if 0%{?suse_version} == 1500
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
Prefer: saltbundle-libyaml
%endif
############################################################
##################### SLE_16 ###############################
############################################################
%if 0%{?suse_version} == 1600
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
FileProvides: /usr/bin/python3.11 saltbundlepy-base
FileProvides: /usr/bin/python3 saltbundlepy-base
Prefer: saltbundle-libyaml
Prefer: saltbundle-libffi8
Ignore: texlive-dviasm
Ignore: cmake-mini:python3-base
%endif
############################################################
##################### AlmaLinux10 ##########################
############################################################
%if 0%{?rhel} == 10
Preinstall: alternatives
Support: !ncurses-devel
Support: !gdbm-devel
Support: !bind-utils
Substitute: c++_compiler gcc
Substitute: ca-certificates-mozilla ca-certificates
Substitute: libopenssl-devel openssl-devel
Substitute: lzma-devel xz-devel
Substitute: netcfg setup
Substitute: timezone tzdata
Substitute: update-alternatives alternatives
Ignore: ca-certificates:libffi
Ignore: p11-kit:libffi.so.8()(64bit)
Ignore: p11-kit:libffi.so.8(LIBFFI_BASE_8.0)(64bit)
Ignore: p11-kit:libffi.so.8(LIBFFI_CLOSURE_8.0)(64bit)
Prefer: libffi
Prefer: selinux-policy-targeted
Prefer: util-linux-core
FileProvides: /usr/bin/who coreutils
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
Macros:
%ext_man .gz
%ext_info .gz
:Macros
%endif
############################################################
##################### AlmaLinux9 ###########################
############################################################
%if 0%{?rhel} == 9
VMinstall: kernel-obs-build
Preinstall: alternatives
Support: !ncurses-devel
Support: !gdbm-devel
Support: !bind-utils
Substitute: c++_compiler gcc
Substitute: ca-certificates-mozilla ca-certificates
Substitute: libopenssl-devel openssl-devel
Substitute: lzma-devel xz-devel
Substitute: netcfg setup
Substitute: timezone tzdata
Substitute: update-alternatives alternatives
Ignore: ca-certificates:libffi
Ignore: p11-kit:libffi.so.8()(64bit)
Ignore: p11-kit:libffi.so.8(LIBFFI_BASE_8.0)(64bit)
Ignore: p11-kit:libffi.so.8(LIBFFI_CLOSURE_8.0)(64bit)
Prefer: libffi
Prefer: selinux-policy-targeted
FileProvides: /usr/bin/who coreutils
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
# ignore python3-distro as it causes file conflicts with saltbundlepy-distro
Ignore: python3-distro
%endif
############################################################
##################### AlmaLinux8 ###########################
############################################################
%if 0%{?rhel} == 8
Support: !ncurses-devel
Support: !gdbm-devel
Support: !bind-utils
Substitute: c++_compiler gcc
Substitute: ca-certificates-mozilla ca-certificates
Substitute: libopenssl-devel openssl-devel
Substitute: lzma-devel xz-devel
Substitute: netcfg setup
Substitute: timezone tzdata
Substitute: update-alternatives chkconfig
Prefer: saltbundle-libffi-devel
FileProvides: /usr/bin/who coreutils
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
%endif
############################################################
##################### EL7 ##################################
############################################################
%if 0%{?rhel} == 7 || "%_repository" == "EL7" || "%_repository" == "CentOS_7"
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
Support: !ncurses-devel
Support: !gdbm-devel
Support: !bind-utils
Substitute: c++_compiler gcc
Substitute: ca-certificates-mozilla ca-certificates
Substitute: libopenssl-devel openssl-devel
Substitute: lzma-devel xz-devel
Substitute: netcfg setup
Substitute: timezone tzdata
Substitute: update-alternatives chkconfig
Substitute: pkgconfig(bzip2) bzip2-devel
Substitute: pkgconfig(tk) tk-devel
Prefer: saltbundle-libyaml
BuildFlags: excludebuild:uyuni-tools
FileProvides: /usr/bin/who coreutils
Macros:
%saltbundlepy_module() saltbundlepy-%{**}
%centos_version 700
%_vendor redhat
:Macros
%endif
############################################################
##################### Debian11 #############################
############################################################
%if 0%{?debian} == 11
Repotype: debian
Type: spec
BinaryType: deb
BuildEngine: debbuild
Support: pax debbuild
Keep: debbuild
Prefer: fakeroot
Prefer: cron
Preinstall: liblua5-1-5 perl-lua-api
Required: debbuild-macros
Ignore: lsb-release:python3
Substitute: boost-devel libboost-dev
Substitute: ca-certificates-mozilla ca-certificates
Substitute: gdbm-devel libgdbm-dev
Substitute: gmp-devel libgmp-dev
Substitute: libcurl-devel libcurl4-openssl-dev
Substitute: libopenssl-devel libssl-dev
Substitute: libyaml-devel libyaml-dev
Substitute: lzma-devel liblzma-dev
Substitute: netcfg netbase
Substitute: openssl-devel libssl-dev
Substitute: pcre-devel libpcre3-dev
Substitute: sqlite-devel libsqlite3-dev
Substitute: timezone tzdata
Substitute: xz xz-utils
Substitute: pkgconfig(bzip2) libbz2-dev
Substitute: pkgconfig(expat) libexpat1-dev
Substitute: pkgconfig(libffi) libffi-dev
Substitute: pkgconfig(ncurses) ncurses-dev
Substitute: pkgconfig(tk) tk-dev
Substitute: pkgconfig(uuid) uuid-dev
Substitute: pkgconfig(x11) libx11-dev
Substitute: pkgconfig(zlib) zlib1g-dev
Substitute: /usr/bin/who coreutils
FileProvides: /usr/bin/who coreutils
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.deb$
Macros:
%_vendor debbuild
%_lib lib
%_gnu -gnu
%_defaultlicensedir /usr/share/licenses
%_deb_maintainer Uyuni packagers <devel@lists.uyuni-project.org>
%_buildshell /bin/bash
%_rpmconfigdir /usr/lib/rpm
:Macros
%endif
############################################################
##################### Debian12 #############################
############################################################
%if 0%{?debian} == 12
Repotype: debian
Type: spec
BinaryType: deb
BuildEngine: debbuild
Support: debbuild pax
Keep: debbuild
######## START salt bundle
Prefer: fakeroot
Prefer: cron
Required: debbuild-macros
Ignore: lsb-release:python3
Substitute: boost-devel libboost-dev
Substitute: ca-certificates-mozilla ca-certificates
Substitute: gdbm-devel libgdbm-dev
Substitute: gmp-devel libgmp-dev
Substitute: libcurl-devel libcurl4-openssl-dev
Substitute: libopenssl-devel libssl-dev
Substitute: libyaml-devel libyaml-dev
Substitute: lzma-devel liblzma-dev
Substitute: netcfg netbase
Substitute: openssl-devel libssl-dev
Substitute: pcre-devel libpcre3-dev
Substitute: sqlite-devel libsqlite3-dev
Substitute: timezone tzdata
Substitute: xz xz-utils
# mlatini 24-05-2024
# saltbundlepy-psutil needs this
# https://github.com/SUSE/spacewalk/issues/24384
Substitute: /usr/bin/who coreutils
Substitute: pkgconfig(bzip2) libbz2-dev
Substitute: pkgconfig(expat) libexpat1-dev
Substitute: pkgconfig(libffi) libffi-dev
Substitute: pkgconfig(ncurses) ncurses-dev
Substitute: pkgconfig(tk) tk-dev
Substitute: pkgconfig(uuid) uuid-dev
Substitute: pkgconfig(x11) libx11-dev
Substitute: pkgconfig(zlib) zlib1g-dev
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.deb$
######## End salt bundle
######## Start Lua substitutes
Substitute: readline-devel libreadline-dev
######## End Lua substitutes
######## Start Other substitutes
Substitute: pkgconfig pkg-config
Substitute: update-alternatives dpkg
######## End Other substitutes
######## Start of Lua Prefer and Preinstall
Preinstall: libtool-bin
Preinstall: liblua5-1-5 perl-lua-api
Prefer: lua5.1
######## End of Lua Prefer and Preinstall
Macros:
######## START of macros for salt bundle packages
%_vendor debbuild
%_lib lib
%_gnu -gnu
%_defaultlicensedir /usr/share/licenses
%_deb_maintainer Uyuni packagers <devel@lists.uyuni-project.org>
%_rpmconfigdir /usr/lib/rpm
%_buildshell /bin/bash
######## End of macros for salt bundle packages
:Macros
%endif
############################################################
##################### Ubuntu2404 ###########################
############################################################
%if 0%{?ubuntu} == 2404
Repotype: debian
Type: spec
BinaryType: deb
BuildEngine: debbuild
Support: pax debbuild
Keep: debbuild
Prefer: fakeroot
Prefer: cron
Prefer: libfreetype6-dev
Preinstall: liblua5-1-5 perl-lua-api
Required: debbuild-macros
Ignore: lsb-release:python3
Ignore: vim:libpython3.10
Ignore: policycoreutils-dev:python3-selinux
Ignore: policycoreutils-dev:python3-sepolgen
Ignore: policycoreutils-dev:python3-sepolicy
Ignore: policycoreutils-dev:python3
Ignore: policycoreutils-python-utils:python3-semanage
Ignore: selinux-policy-dev:python3
Ignore: selinux-policy-dev:policycoreutils-python-utils
Substitute: boost-devel libboost-dev
Substitute: ca-certificates-mozilla ca-certificates
Substitute: gcc-c++ cpp
Substitute: gdbm-devel libgdbm-dev
Substitute: gmp-devel libgmp-dev
Substitute: libcurl-devel libcurl4-openssl-dev
Substitute: libopenssl-devel libssl-dev
Substitute: libyaml-devel libyaml-dev
Substitute: lzma-devel liblzma-dev
Substitute: netcfg netbase
Substitute: openssl-devel libssl-dev
Substitute: pcre-devel libpcre3-dev
Substitute: sqlite-devel libsqlite3-dev
Substitute: timezone tzdata
Substitute: xz xz-utils
Substitute: pkgconfig(bzip2) libbz2-dev
Substitute: pkgconfig(expat) libexpat1-dev
Substitute: pkgconfig(libffi) libffi-dev
Substitute: pkgconfig(ncurses) ncurses-dev
Substitute: pkgconfig(tk) tk-dev
Substitute: pkgconfig(uuid) uuid-dev
Substitute: pkgconfig(x11) libx11-dev
Substitute: pkgconfig(zlib) zlib1g-dev
FileProvides: /usr/bin/who coreutils
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.deb$
Release: <CI_CNT>.<B_CNT> spec:150750.<CI_CNT>.<B_CNT>.develHead
Macros:
%_vendor debbuild
%_lib lib
%_gnu -gnu
%_defaultlicensedir /usr/share/licenses
%_deb_maintainer Uyuni packagers <devel@lists.uyuni-project.org>
%_buildshell /bin/bash
%_rpmconfigdir /usr/lib/rpm
:Macros
%endif
############################################################
##################### Ubuntu2204 ###########################
############################################################
%if 0%{?ubuntu} == 2204
Repotype: debian
Type: spec
BinaryType: deb
BuildEngine: debbuild
Support: pax debbuild
Keep: debbuild
Prefer: fakeroot
Prefer: cron
Prefer: libfreetype6-dev
Preinstall: liblua5-1-5 perl-lua-api
Required: debbuild-macros
Ignore: lsb-release:python3
Ignore: vim:libpython3.10
Ignore: policycoreutils-dev:python3-selinux
Ignore: policycoreutils-dev:python3-sepolgen
Ignore: policycoreutils-dev:python3-sepolicy
Ignore: policycoreutils-dev:python3
Ignore: policycoreutils-python-utils:python3-semanage
Ignore: selinux-policy-dev:python3
Ignore: selinux-policy-dev:policycoreutils-python-utils
Substitute: boost-devel libboost-dev
Substitute: ca-certificates-mozilla ca-certificates
Substitute: gcc-c++ cpp
Substitute: gdbm-devel libgdbm-dev
Substitute: gmp-devel libgmp-dev
Substitute: libcurl-devel libcurl4-openssl-dev
Substitute: libopenssl-devel libssl-dev
Substitute: libyaml-devel libyaml-dev
Substitute: lzma-devel liblzma-dev
Substitute: netcfg netbase
Substitute: openssl-devel libssl-dev
Substitute: pcre-devel libpcre3-dev
Substitute: sqlite-devel libsqlite3-dev
Substitute: timezone tzdata
Substitute: xz xz-utils
Substitute: pkgconfig(bzip2) libbz2-dev
Substitute: pkgconfig(expat) libexpat1-dev
Substitute: pkgconfig(libffi) libffi-dev
Substitute: pkgconfig(ncurses) ncurses-dev
Substitute: pkgconfig(tk) tk-dev
Substitute: pkgconfig(uuid) uuid-dev
Substitute: pkgconfig(x11) libx11-dev
Substitute: pkgconfig(zlib) zlib1g-dev
FileProvides: /usr/bin/who coreutils
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.deb$
Macros:
%_vendor debbuild
%_lib lib
%_gnu -gnu
%_defaultlicensedir /usr/share/licenses
%_deb_maintainer Uyuni packagers <devel@lists.uyuni-project.org>
%_buildshell /bin/bash
%_rpmconfigdir /usr/lib/rpm
:Macros
%endif
############################################################
##################### SLMicro 6.0 ##########################
############################################################
#FIXME: we need to properly detect SL Micro 6.0
%if "%_repository" == "Micro_60"
PublishFilter: ^(saltbundle|perl|lua|liblua|fdupes|pcre|libpcre|autoconf-archive|deb-perl|debbuild).*\.rpm$
BuildFlags: excludebuild:spacecmd
Ignore: cmake-mini:python3-base
Ignore: gdb:python3-base
%endif
############################################################
##################### debbuild #############################
############################################################
%if "%_vendor" == "debbuild" || 0%{?ubuntu} || 0%{?debian}
# Perl substitutes
Substitute: perl-macros deb-perl-macros
Substitute: perl-test-simple perl
Substitute: perl(Algorithm::Diff) libalgorithm-diff-perl
Substitute: perl(Capture::Tiny) perl-capture-tiny
Substitute: perl(Carp) perl-carp
Substitute: perl(Class::Data::Inheritable) perl-class-data-inheritable
Substitute: perl(Compress::Zlib) perl
Substitute: perl(CPAN::Meta) perl
Substitute: perl(CPAN::Meta::Requirements) perl
Substitute: perl(CPAN::Meta::YAML) perl
Substitute: perl(Data::Dumper) perl
Substitute: perl(Devel::PPPort) perl-base
Substitute: perl(Devel::StackTrace) perl-devel-stacktrace
Substitute: perl(Devel::Symdump) perl-devel-symdump
Substitute: perl(Exception::Class) perl-exception-class
Substitute: perl(Exporter) perl-base
Substitute: perl(ExtUtils::CBuilder) perl-extutils-cbuilder
Substitute: perl(ExtUtils::MakeMaker) perl-extutils-makemaker
Substitute: perl(ExtUtils::ParseXS) perl-base
Substitute: perl(ExtUtils::PkgConfig) perl-extutils-pkgconfig
Substitute: perl(File::Path) perl-file-path
Substitute: perl(File::Spec) perl
Substitute: perl(File::Temp) perl-file-temp
Substitute: perl(IPC::Cmd) perl-ipc-cmd
Substitute: perl(JSON::PP) perl
Substitute: perl(Locale::Maketext::Simple) perl
Substitute: perl(Module::Build) perl-module-build
Substitute: perl(Module::Load::Conditional) perl
Substitute: perl(Module::Metadata) perl-module-metadata
Substitute: perl(Module::Runtime) perl-module-runtime
Substitute: perl(MRO::Compat) perl-mro-compat
Substitute: perl(Params::Check) perl
Substitute: perl(parent) perl-parent
Substitute: perl(Parse::CPAN::Meta) perl
Substitute: perl(Perl::OSType) perl-perl-ostype
Substitute: perl(Pod::Coverage) perl-pod-coverage
Substitute: perl(Pod::Find) perl
Substitute: perl(Pod::Man) perl
Substitute: perl(Pod::Parser) perl
Substitute: perl(Pod::Simple) perl
Substitute: perl(Sub::Uplevel) perl-sub-uplevel
Substitute: perl(TAP::Harness) perl
Substitute: perl(Test::Builder) perl
Substitute: perl(Test::Builder::Tester) perl
Substitute: perl(Test::Class) perl-test-class
Substitute: perl(Test::Compile) perl-test-compile
Substitute: perl(Test::Deep) perl-test-deep
Substitute: perl(Test::Differences) perl-test-differences
Substitute: perl(Test::Exception) perl-test-exception
Substitute: perl(Test::Harness) perl
Substitute: perl(Test::More) perl
Substitute: perl(Test::Most) perl-test-most
Substitute: perl(Test::Pod::Coverage) perl-test-pod-coverage
Substitute: perl(Test::Pod) perl-test-pod
Substitute: perl(Test::Simple) perl
Substitute: perl(Test::Tester) perl
Substitute: perl(Test::Warn) perl-test-warn
Substitute: perl(Text::Diff) perl-text-diff
Substitute: perl(Try::Tiny) perl-try-tiny
Substitute: perl(UNIVERSAL::require) perl-universal-require
Substitute: perl(version) perl
Substitute: perl(XSLoader) perl-base
# Lua substitutes
Substitute: readline-devel libreadline-dev
# Other substitutes
Substitute: pkgconfig pkg-config
Substitute: update-alternatives dpkg
# Lua
Preinstall: libtool-bin
Prefer: lua5.1
Macros:
%_deb_maintainer Uyuni packagers <devel@lists.uyuni-project.org>
%_buildshell /bin/bash
#%_debbuild_debug_level 8
:Macros
%endif