diff --git a/autojump.spec b/autojump.spec index f6c7d89..b30c8f9 100644 --- a/autojump.spec +++ b/autojump.spec @@ -3,7 +3,7 @@ Name: autojump Version: 22.2.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A fast way to navigate your filesystem from the command line @@ -11,6 +11,7 @@ Group: Applications/Productivity License: GPLv3+ URL: http://wiki.github.com/joelthelion/autojump Source: https://github.com/%{owner}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz +Patch0: remove-homebrew-check.patch BuildArch: noarch @@ -46,6 +47,7 @@ autojump-fish is designed to work with fish shell. %prep %setup -q -n %{name}-%{commit} +%patch0 -p1 # Fix shebang sed -i 's|/usr/bin/env python|/usr/bin/python|' bin/%{name} @@ -80,6 +82,9 @@ sed -e "s@/builddir.*noarch@@g" -i %{buildroot}%{_sysconfdir}/profile.d/autojump %config(noreplace) %{_datadir}/%{name}/%{name}.fish %changelog +* Fri Nov 06 2015 Tomas Tomecek - 22.2.4-2 +- patch: don't check for homebrew + * Tue Sep 08 2015 Tomas Tomecek - 22.2.4-1 - update to 22.2.4 diff --git a/remove-homebrew-check.patch b/remove-homebrew-check.patch new file mode 100644 index 0000000..ef2cc76 --- /dev/null +++ b/remove-homebrew-check.patch @@ -0,0 +1,20 @@ +diff --git a/bin/autojump.zsh b/bin/autojump.zsh +index fbc0960..7d88786 100644 +--- a/bin/autojump.zsh ++++ b/bin/autojump.zsh +@@ -9,12 +9,6 @@ if [[ -d ~/.autojump/functions ]]; then + fi + + +-# set homebrew installation paths +-if command -v brew &>/dev/null && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then +- fpath=("$(brew --prefix)/share/zsh/site-functions" ${fpath}) +-fi +- +- + # set error file location + if [[ "$(uname)" == "Darwin" ]]; then + export AUTOJUMP_ERROR_PATH=~/Library/autojump/errors.log +-- +2.6.2 +