do not require the hostname package when being built on RHEL-6

This commit is contained in:
Kamil Dudka 2016-12-22 10:42:16 +01:00
parent aeca120e94
commit f927889e50

View File

@ -3,7 +3,7 @@
Summary: Powerful interactive shell Summary: Powerful interactive shell
Name: zsh Name: zsh
Version: 5.3.1 Version: 5.3.1
Release: 1%{?dist} Release: 2%{?dist}
License: MIT License: MIT
URL: http://zsh.sourceforge.net/ URL: http://zsh.sourceforge.net/
Group: System Environment/Shells Group: System Environment/Shells
@ -21,7 +21,6 @@ Patch0: zsh-serial.patch
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: gawk BuildRequires: gawk
BuildRequires: hostname
BuildRequires: libcap-devel BuildRequires: libcap-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: sed BuildRequires: sed
@ -31,6 +30,11 @@ Requires(post): info grep
Requires(preun): info Requires(preun): info
Requires(postun): coreutils grep 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 Provides: /bin/zsh
%description %description
@ -159,6 +163,9 @@ fi
%doc Doc/*.html %doc Doc/*.html
%changelog %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 * Wed Dec 21 2016 Kamil Dudka <kdudka@redhat.com> - 5.3.1-1
- Update to latest upstream release: Zsh 5.3.1 - Update to latest upstream release: Zsh 5.3.1