The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/rpm/redhat/zfs-dkms.spec.in

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 %{?!packager: %define packager Brian Behlendorf <behlendorf1@llnl.gov>}
    2 
    3 %if ! 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}%{?openEuler}
    4 %define not_rpm 1
    5 %endif
    6 
    7 # Exclude input files from mangling
    8 %global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
    9 
   10 %define module  @PACKAGE@
   11 %define mkconf  scripts/dkms.mkconf
   12 
   13 Name:           %{module}-dkms
   14 
   15 Version:        @VERSION@
   16 Release:        @RELEASE@%{?dist}
   17 Summary:        Kernel module(s) (dkms)
   18 
   19 Group:          System Environment/Kernel
   20 License:        @ZFS_META_LICENSE@
   21 URL:            https://github.com/openzfs/zfs
   22 Source0:        %{module}-%{version}.tar.gz
   23 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
   24 BuildArch:      noarch
   25 
   26 Requires:       dkms >= 2.2.0.3
   27 Requires(post): dkms >= 2.2.0.3
   28 Requires(preun): dkms >= 2.2.0.3
   29 Requires:       gcc, make, perl, diffutils
   30 Requires(post): gcc, make, perl, diffutils
   31 %if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}%{?openEuler}
   32 Requires:       kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
   33 Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
   34 Obsoletes:      spl-dkms <= %{version}
   35 %endif
   36 Provides:       %{module}-kmod = %{version}
   37 AutoReqProv:    no
   38 
   39 %if (0%{?fedora}%{?suse_version}%{?openEuler}) || (0%{?rhel} && 0%{?rhel} < 9)
   40 # We don't directly use it, but if this isn't installed, rpmbuild as root can
   41 # crash+corrupt rpmdb
   42 # See issue #12071
   43 BuildRequires:  ncompress
   44 %endif
   45 
   46 %description
   47 This package contains the dkms ZFS kernel modules.
   48 
   49 %prep
   50 %setup -q -n %{module}-%{version}
   51 
   52 %build
   53 %{mkconf} -n %{module} -v %{version} -f dkms.conf
   54 
   55 %install
   56 if [ "$RPM_BUILD_ROOT" != "/" ]; then
   57     rm -rf $RPM_BUILD_ROOT
   58 fi
   59 mkdir -p $RPM_BUILD_ROOT/usr/src/
   60 cp -rf ${RPM_BUILD_DIR}/%{module}-%{version} $RPM_BUILD_ROOT/usr/src/
   61 
   62 %clean
   63 if [ "$RPM_BUILD_ROOT" != "/" ]; then
   64     rm -rf $RPM_BUILD_ROOT
   65 fi
   66 
   67 %files
   68 %defattr(-,root,root)
   69 /usr/src/%{module}-%{version}
   70 
   71 %preun
   72 dkms remove -m %{module} -v %{version} --all
   73 
   74 %posttrans
   75 /usr/lib/dkms/common.postinst %{module} %{version}
   76 

Cache object: 104608f46da450f9ec39934452a436ba


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.