file-scripts/file-scripts.spec

67 lines
1.8 KiB
RPMSpec
Raw Normal View History

2021-12-20 09:16:56 -08:00
#
# spec file for package file-scripts
#
# Copyright (c) 2024 SUSE LLC
2021-12-20 09:16:56 -08:00
#
# 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 https://bugs.opensuse.org/
#
Name: file-scripts
2024-09-20 23:25:25 -07:00
Version: 2.0.1
Release: 0
2021-12-25 21:59:15 -08:00
Summary: Set of scripts for manipulating files
2021-12-20 09:16:56 -08:00
License: GPL-3.0-only
Group: Productivity/File utilities
2021-12-25 21:59:15 -08:00
URL: https://github.com/etorres4/file-scripts
2021-12-20 09:16:56 -08:00
Source: %{name}-%{version}.tar.gz
Requires: /usr/bin/bash
2021-12-21 00:24:13 -08:00
Requires: fd
2021-12-21 00:48:59 -08:00
Requires: fzf
2021-12-20 09:16:56 -08:00
BuildArch: noarch
%description
A collection of various helper scripts and some shell completions to speed up terminal workflow.
%package zsh-plugins
Summary: zsh addons for helper scripts
Requires: %{name} = %{version}
Requires: /bin/zsh
%description zsh-plugins
Plugins and completions for helper scripts.
%prep
%setup -q
%install
for script in bin/*; do
install -Dm755 "$script" "%{buildroot}/usr/bin/$(basename script)"
done
2021-12-20 09:16:56 -08:00
# Install zsh completion functions
ZSHCOMPLETIONDIR="%{buildroot}%{_datadir}/zsh/site-functions"
mkdir -p "${ZSHCOMPLETIONDIR}"
2021-12-21 00:24:13 -08:00
for completion in zsh/*; do
install -Dm644 "${completion}" "${ZSHCOMPLETIONDIR}/${completion##*.}"
done
2021-12-21 00:48:59 -08:00
2021-12-20 09:16:56 -08:00
%files
%attr(0755,-,-) %{_bindir}/*
%files zsh-plugins
%{_datadir}/zsh/
%{_datadir}/zsh/site-functions
2021-12-20 09:16:56 -08:00
%changelog