mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-29 12:29:35 +03:00
73d08ace52
The newest Fedora packaging rules print warnings for scripts using the /usr/bin/python shebang: *** WARNING: mangling shebang in /usr/src/spl-0.7.0/cmd/splslab/splslab.py from #!/usr/bin/python to #!/usr/bin/python2. This will become an ERROR, fix it manually! Fedora wants all cross compatible scripts to pick python3. Since we don't want our users to have to pick a specific version of python, we exclude our scripts from the RPM build check. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes: #699 Closes: #700
50 lines
1.5 KiB
RPMSpec
50 lines
1.5 KiB
RPMSpec
# Python permits the !/usr/bin/python shebang for scripts that are cross
|
|
# compatible between python2 and python3, but Fedora 28 does not. Fedora
|
|
# wants us to choose python3 for cross-compatible scripts. Since we want
|
|
# to support python2 and python3 users, exclude our scripts from Fedora 28's
|
|
# RPM build check, so that we don't get a bunch of build warnings.
|
|
#
|
|
# Details: https://github.com/zfsonlinux/zfs/issues/7360
|
|
#
|
|
%global __brp_mangle_shebangs_exclude_from splslab.py
|
|
|
|
Name: @PACKAGE@
|
|
Version: @VERSION@
|
|
Release: @RELEASE@%{?dist}
|
|
Summary: Commands to control the kernel modules
|
|
|
|
Group: System Environment/Kernel
|
|
License: GPLv2+
|
|
URL: http://zfsonlinux.org/
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Requires: %{name}-kmod = %{version}
|
|
Provides: %{name}-kmod-common = %{version}
|
|
|
|
%description
|
|
This package contains the commands to verify the SPL
|
|
kernel modules are functioning properly.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --with-config=user
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=%{?buildroot}
|
|
|
|
%files
|
|
%doc AUTHORS COPYING DISCLAIMER
|
|
%{_bindir}/*
|
|
%{_sbindir}/*
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man5/*
|
|
|
|
%changelog
|
|
* Wed Jul 26 2017 Brian Behlendorf <behlendorf1@llnl.gov> - 0.7.0-1
|
|
- Released 0.7.0-1, detailed release notes are available at:
|
|
- https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.7.0
|