do not require the hostname package when being built on RHEL-6
This commit is contained in:
parent
aeca120e94
commit
f927889e50
11
zsh.spec
11
zsh.spec
@ -3,7 +3,7 @@
|
||||
Summary: Powerful interactive shell
|
||||
Name: zsh
|
||||
Version: 5.3.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
URL: http://zsh.sourceforge.net/
|
||||
Group: System Environment/Shells
|
||||
@ -21,7 +21,6 @@ Patch0: zsh-serial.patch
|
||||
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: gawk
|
||||
BuildRequires: hostname
|
||||
BuildRequires: libcap-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: sed
|
||||
@ -31,6 +30,11 @@ Requires(post): info grep
|
||||
Requires(preun): info
|
||||
Requires(postun): coreutils grep
|
||||
|
||||
# the hostname package is not available on RHEL-6
|
||||
%if 12 < 0%{?fedora} || 6 < 0%{?rhel}
|
||||
BuildRequires: hostname
|
||||
%endif
|
||||
|
||||
Provides: /bin/zsh
|
||||
|
||||
%description
|
||||
@ -159,6 +163,9 @@ fi
|
||||
%doc Doc/*.html
|
||||
|
||||
%changelog
|
||||
* Thu Dec 22 2016 Kamil Dudka <kdudka@redhat.com> - 5.3.1-2
|
||||
- do not require the hostname package when being built on RHEL-6
|
||||
|
||||
* Wed Dec 21 2016 Kamil Dudka <kdudka@redhat.com> - 5.3.1-1
|
||||
- Update to latest upstream release: Zsh 5.3.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user