kernel-default-base/kernel-default-base.spec

137 lines
7.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kernel-default-base
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# needssslcertforbuild
# To be defined by user
%define build_flavor default
# variant includes dash: %%define variant -azure
%define variant %{nil}
%define subpackage base
%define extrasummary base modules
%define extradescription This package contains only the base modules, required in all installs.
%define misc_modules button edd iscsi_ibft i6300esb
%define virtio_modules virtio_blk virtio-rng virtio_console virtio-gpu \
virtio_net virtio_scsi virtio virtio_balloon virtio_input virtio_mmio \
virtio_pci virtio_ring
%define xen_modules xen-blkfront xen-kbdfront xen-netfront xen-fbfront xenblk xennet
%define vmware_modules vmw_balloon vmw_vmci vmxnet3 vmw_pvscsi vmw_vsock_vmci_transport
%define hyperv_modules hid-hyperv hv_balloon hv_utils \
hv_vmbus hyperv-keyboard hv_netvsc hv_storvsc scsi_transport_fc hyperv_fb
%define net_drivers 8390 ne2k-pci tulip e100 e1000 e1000e 8139cp 8139too
%define scsi_modules scsi_transport_iscsi sd_mod sg sr_mod st scsi_mod
%define block_drivers loop dm-mod ahci ata_piix mptsas mptspi BusLogic sym53c8xx aam53c974
%define usb_modules usb-common usbcore ehci-hcd ehci-pci ohci-hcd ohci-pci uhci-hcd \
xhci-hcd xhci-pci typec_ucsi ucsi_acpi typec ums-alauda ums-cypress ums-datafab \
ums-eneub6250 ums-freecom ums-isd200 ums-jumpshot ums-karma ums-onetouch \
ums-realtek ums-sddr09 ums-sddr55 ums-usbat usb-storage
%define filesystems autofs4 btrfs ext4 vfat isofs jbd2 mbcache nfsv2 nfsv3 nfsv4 overlay xfs \
nls_cp437 nls_iso8859-1
%define networking \
af_packet arptable_filter arp_tables arpt_mangle bpfilter bridge br_netfilter \
ebt_802_3 ebtable_broute ebtable_filter ebtable_nat ebtables ebt_among ebt_arp \
ebt_arpreply ebt_dnat ebt_ip ebt_ip6 ebt_limit ebt_log ebt_mark ebt_mark_m \
ebt_nflog ebt_pkttype ebt_redirect ebt_snat ebt_stp ebt_vlan ip6table_filter \
ip6table_mangle ip6table_nat ip6table_raw ip6_tables ip6table_security ip6t_ah \
ip6t_eui64 ip6t_frag ip6t_hbh ip6t_ipv6header ip6t_MASQUERADE ip6t_mh ip6t_NPT \
ip6t_REJECT ip6t_rpfilter ip6t_rt ip6t_srh ip6t_SYNPROXY ip_set \
ip_set_bitmap_ip ip_set_bitmap_ipmac ip_set_bitmap_port ip_set_hash_ip \
ip_set_hash_ipmac ip_set_hash_ipmark ip_set_hash_ipport ip_set_hash_ipportip \
ip_set_hash_ipportnet ip_set_hash_mac ip_set_hash_net ip_set_hash_netiface \
ip_set_hash_netnet ip_set_hash_netport ip_set_hash_netportnet ip_set_list_set \
iptable_filter iptable_mangle iptable_nat iptable_raw ip_tables \
iptable_security ipt_ah ipt_CLUSTERIP ipt_ECN ipt_MASQUERADE ipt_REJECT \
ipt_rpfilter ipt_SYNPROXY ip_vs ip_vs_dh ip_vs_fo ip_vs_ftp ip_vs_lblc \
ip_vs_lblcr ip_vs_lc ip_vs_mh ip_vs_nq ip_vs_ovf ip_vs_pe_sip ip_vs_rr \
ip_vs_sed ip_vs_sh ip_vs_wlc ip_vs_wrr nf_conncount nf_conntrack \
nf_conntrack_amanda nf_conntrack_broadcast nf_conntrack_ftp nf_conntrack_h323 \
nf_conntrack_ipv4 nf_conntrack_ipv6 nf_conntrack_irc nf_conntrack_netbios_ns \
nf_conntrack_netlink nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_sane \
nf_conntrack_sip nf_conntrack_slp nf_conntrack_snmp nf_conntrack_tftp \
nf_defrag_ipv4 nf_defrag_ipv6 nf_dup_ipv4 nf_dup_ipv6 nf_dup_netdev \
nf_flow_table nf_flow_table_inet nf_flow_table_ipv4 nf_flow_table_ipv6 \
nf_log_arp nf_log_bridge nf_log_common nf_log_ipv4 nf_log_ipv6 nf_log_netdev \
nf_nat nf_nat_amanda nf_nat_ftp nf_nat_h323 nf_nat_ipv4 nf_nat_ipv6 nf_nat_irc \
nf_nat_masquerade_ipv4 nf_nat_masquerade_ipv6 nf_nat_pptp nf_nat_proto_gre \
nf_nat_redirect nf_nat_sip nf_nat_snmp_basic nf_nat_tftp nfnetlink \
nfnetlink_acct nfnetlink_cthelper nfnetlink_cttimeout nfnetlink_log \
nfnetlink_osf nfnetlink_queue nf_reject_ipv4 nf_reject_ipv6 nf_socket_ipv4 \
nf_socket_ipv6 nf_synproxy_core nf_tables nf_tables_set nft_chain_nat \
nft_compat nft_connlimit nft_counter nft_ct nft_dup_ipv4 nft_dup_ipv6 \
nft_dup_netdev nft_fib nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib_netdev \
nft_flow_offload nft_fwd_netdev nft_hash nft_limit nft_log nft_masq nft_nat \
nft_numgen nft_objref nft_osf nf_tproxy_ipv4 nf_tproxy_ipv6 nft_queue nft_quota \
nft_redir nft_reject nft_reject_bridge nft_reject_inet nft_reject_ipv4 \
nft_reject_ipv6 nft_socket nft_tproxy nft_tunnel nft_xfrm tun veth xfrm4_tunnel \
xfrm6_tunnel xfrm_algo xfrm_interface xfrm_ipcomp xfrm_user x_tables \
xt_addrtype xt_AUDIT xt_bpf xt_cgroup xt_CHECKSUM xt_CLASSIFY xt_cluster \
xt_comment xt_connbytes xt_connlabel xt_connlimit xt_connmark xt_CONNSECMARK \
xt_conntrack xt_cpu xt_CT xt_dccp xt_devgroup xt_dscp xt_DSCP xt_ecn xt_esp \
xt_hashlimit xt_helper xt_hl xt_HL xt_HMARK xt_IDLETIMER xt_ipcomp xt_iprange \
xt_ipvs xt_l2tp xt_LED xt_length xt_limit xt_LOG xt_mac xt_mark xt_MASQUERADE \
xt_multiport xt_nat xt_NETMAP xt_nfacct xt_NFLOG xt_NFQUEUE xt_osf xt_owner \
xt_physdev xt_pkttype xt_policy xt_quota xt_rateest xt_RATEEST xt_realm \
xt_recent xt_REDIRECT xt_sctp xt_SECMARK xt_set xt_socket xt_state xt_statistic \
xt_string xt_tcpmss xt_TCPMSS xt_TCPOPTSTRIP xt_tcpudp xt_TEE xt_time xt_TPROXY \
xt_TRACE xt_u32
%define modules %usb_modules %net_drivers %scsi_modules %block_drivers \
%hyperv_modules %virtio_modules %vmware_modules %xen_modules \
%networking %filesystems %misc_modules
# Reasonable defaults that might be overriden if needed
%define kernel_package_name kernel-%build_flavor
%define package_name %kernel_package_name-%subpackage
%define url %(rpm -q --qf '%%{URL}' %kernel_package_name)
%define group %(rpm -q --qf '%%{GROUP}' %kernel_package_name)
%define summary %(rpm -q --qf '%%{SUMMARY}' %kernel_package_name) - %extrasummary
Name: %package_name
BuildRequires: %kernel_package_name
BuildRequires: %kernel_package_name-devel
BuildRequires: kernel-subpackage-macros
Summary: %summary
License: GPL-2.0-only
Group: %group
URL: %url
# on SLE limit to architectures that actually have a kernel :-)
%if 0%{?sle_version}
ExclusiveArch: aarch64 armv7hl ppc64le s390x x86_64
%endif
# Internal stuff begins
%define rpm_kver %(rpm -q --qf '%%{VERSION}' %kernel_package_name)
%define rpm_krel %(rpm -q --qf '%%{RELEASE}' %kernel_package_name)
Version: %rpm_kver
Release: %rpm_krel.<RELEASE>
%define scriptdir /usr/lib/rpm/kernel
%include %scriptdir/kernel-subpackage-spec
%changelog