file-scripts/file-scripts.spec

73 lines
1.9 KiB
RPMSpec
Raw Normal View History

2021-12-20 09:16:56 -08:00
#
# spec file for package file-scripts
#
2021-12-20 22:44:22 -08:00
# Copyright (c) 2021 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
2021-12-20 22:44:22 -08:00
Version: 0.9.1
2021-12-20 09:16:56 -08:00
Release: 0
Summary: Eric's helper scripts
License: GPL-3.0-only
Group: Productivity/File utilities
Source: %{name}-%{version}.tar.gz
Requires: %{_bindir}/python3
Requires:: fd
Recommends: fzf
Supplements: bash
Supplements: zsh
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
%build
%install
2021-12-20 22:44:22 -08:00
%{python_install}
2021-12-20 09:16:56 -08:00
# Install zsh plugins
ZSHPLUGINDIR='%{buildroot}%{_datadir}/zsh/plugins/helper-scripts'
mkdir -p "${ZSHPLUGINDIR}"
cp zsh/plugins/* "${ZSHPLUGINDIR}"
# Install zsh completion functions
ZSHCOMPLETIONDIR="%{buildroot}%{_datadir}/zsh/site-functions"
mkdir -p "${ZSHCOMPLETIONDIR}"
cp zsh/completions/* "${ZSHCOMPLETIONDIR}"
%check
%files
%attr(0755,-,-) %{_bindir}/*
%files zsh-plugins
%{_datadir}/zsh/plugins/helper-scripts/*
%{_datadir}/zsh/site-functions/*
%changelog