Accepting request 595805 from home:avindra
- initial package OBS-URL: https://build.opensuse.org/request/show/595805 OBS-URL: https://build.opensuse.org/package/show/utilities/fzf?expand=0&rev=1
This commit is contained in:
commit
19f04346ef
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
11
build-mode-pie.patch
Normal file
11
build-mode-pie.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/Makefile 2018-04-01 12:31:18.017762591 -0400
|
||||||
|
+++ b/Makefile 2018-04-01 12:31:26.105558798 -0400
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
SOURCES := $(wildcard *.go src/*.go src/*/*.go) $(SRC_LINK) $(VENDOR_LINK) $(GLIDE_LOCK) $(MAKEFILE)
|
||||||
|
|
||||||
|
REVISION := $(shell git log -n 1 --pretty=format:%h -- $(SOURCES))
|
||||||
|
-BUILD_FLAGS := -a -ldflags "-X main.revision=$(REVISION) -w -extldflags=$(LDFLAGS)" -tags "$(TAGS)"
|
||||||
|
+BUILD_FLAGS := -buildmode=pie -a -ldflags "-X main.revision=$(REVISION) -w -extldflags=$(LDFLAGS)" -tags "$(TAGS)"
|
||||||
|
|
||||||
|
BINARY32 := fzf-$(GOOS)_386
|
||||||
|
BINARY64 := fzf-$(GOOS)_amd64
|
3
fzf-0.17.3.tar.gz
Normal file
3
fzf-0.17.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e843904417adf926613431e4403fded24fade56269446e92aac6ff1db86af81e
|
||||||
|
size 136933
|
4
fzf.changes
Normal file
4
fzf.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 1 16:21:01 UTC 2018 - avindra@opensuse.org
|
||||||
|
|
||||||
|
- initial package
|
105
fzf.spec
Normal file
105
fzf.spec
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
#
|
||||||
|
# spec file for package fzf
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: fzf
|
||||||
|
Version: 0.17.3
|
||||||
|
Release: 0
|
||||||
|
Summary: A command-line fuzzy finder
|
||||||
|
License: MIT
|
||||||
|
Group: Productivity/File utilities
|
||||||
|
URL: https://github.com/junegunn/fzf
|
||||||
|
Source0: https://github.com/junegunn/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.xz
|
||||||
|
# PATCH-FIX-SUSE Build a position independent executable
|
||||||
|
Patch0: build-mode-pie.patch
|
||||||
|
BuildRequires: golang(API) >= 1.7
|
||||||
|
|
||||||
|
%description
|
||||||
|
fzf is an interactive Unix filter for command-line that can be used with any list; files,
|
||||||
|
command history, processes, hostnames, bookmarks, git commits, etc.
|
||||||
|
|
||||||
|
%package tmux
|
||||||
|
Summary: Tmux integration for fzf
|
||||||
|
Supplements: packageand(fzf:tmux)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description tmux
|
||||||
|
Tmux integration for fzf. Includes a wrapper script, fzf-tmux, that opens your list in a
|
||||||
|
separate tmux pane.
|
||||||
|
|
||||||
|
%package bash-completion
|
||||||
|
Summary: Bash completion for fzf
|
||||||
|
Requires: bash-completion
|
||||||
|
Supplements: packageand(fzf:bash)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description bash-completion
|
||||||
|
Bash shell completions for fzf
|
||||||
|
|
||||||
|
%package zsh-completion
|
||||||
|
Summary: ZSH completion for fzf
|
||||||
|
Supplements: packageand(fzf:zsh)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description zsh-completion
|
||||||
|
zsh shell completions for fzf
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -a1
|
||||||
|
%patch0 -p1
|
||||||
|
# fix E: env-script-interpreter
|
||||||
|
sed -i 's,#!%{_bindir}/env ,#!/bin/,' ./bin/fzf-tmux
|
||||||
|
# fix non-executable warning
|
||||||
|
sed -i '1d' ./shell/completion.{bash,zsh}
|
||||||
|
|
||||||
|
%build
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make bin/fzf
|
||||||
|
install -Dm755 bin/fzf %{buildroot}%{_bindir}/fzf
|
||||||
|
install -Dm755 bin/fzf-tmux %{buildroot}%{_bindir}/fzf-tmux
|
||||||
|
install -Dm644 man/man1/fzf.1 %{buildroot}%{_mandir}/man1/fzf.1
|
||||||
|
install -Dm644 man/man1/fzf-tmux.1 %{buildroot}%{_mandir}/man1/fzf-tmux.1
|
||||||
|
|
||||||
|
# shell completions
|
||||||
|
install -Dm0644 shell/completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/fzf
|
||||||
|
install -Dm0644 shell/key-bindings.bash %{buildroot}%{_sysconfdir}/bash_completion.d/fzf-key-bindings
|
||||||
|
install -Dm0644 shell/completion.zsh %{buildroot}%{_datadir}/zsh/site-functions/_fzf
|
||||||
|
install -Dm0644 shell/key-bindings.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/fzf-key-bindings
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%{_bindir}/fzf
|
||||||
|
%{_mandir}/man1/fzf.1%{?ext_man}
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%files tmux
|
||||||
|
%{_bindir}/fzf-tmux
|
||||||
|
%{_mandir}/man1/fzf-tmux.1%{?ext_man}
|
||||||
|
|
||||||
|
%files bash-completion
|
||||||
|
%{_sysconfdir}/bash_completion.d/fzf
|
||||||
|
%{_sysconfdir}/bash_completion.d/fzf-key-bindings
|
||||||
|
|
||||||
|
%files zsh-completion
|
||||||
|
%{_datadir}/zsh
|
||||||
|
%dir %{_sysconfdir}/zsh_completion.d
|
||||||
|
%config %{_sysconfdir}/zsh_completion.d/fzf-key-bindings
|
||||||
|
|
||||||
|
%changelog
|
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4b3c62c4fc1b9ff2905d42ba7c6ed28fc6f60471f19c2b828f55f1c591bb94e2
|
||||||
|
size 9105908
|
Loading…
Reference in New Issue
Block a user