Fix broken specfile
This commit is contained in:
parent
0be96f144a
commit
19b6ea6726
@ -23,8 +23,11 @@ Summary: Eric's helper scripts
|
|||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
Group: Productivity/File utilities
|
Group: Productivity/File utilities
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: python3
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-Sphinx
|
||||||
Requires: %{_bindir}/python3
|
Requires: %{_bindir}/python3
|
||||||
Requires:: fd
|
Requires: fd
|
||||||
Recommends: fzf
|
Recommends: fzf
|
||||||
Supplements: bash
|
Supplements: bash
|
||||||
Supplements: zsh
|
Supplements: zsh
|
||||||
@ -45,28 +48,26 @@ Plugins and completions for helper scripts.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%{python3_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{python_install}
|
%{python3_install}
|
||||||
|
|
||||||
# Install zsh plugins
|
|
||||||
ZSHPLUGINDIR='%{buildroot}%{_datadir}/zsh/plugins/helper-scripts'
|
|
||||||
mkdir -p "${ZSHPLUGINDIR}"
|
|
||||||
cp zsh/plugins/* "${ZSHPLUGINDIR}"
|
|
||||||
|
|
||||||
# Install zsh completion functions
|
# Install zsh completion functions
|
||||||
ZSHCOMPLETIONDIR="%{buildroot}%{_datadir}/zsh/site-functions"
|
ZSHCOMPLETIONDIR="%{buildroot}%{_datadir}/zsh/site-functions"
|
||||||
mkdir -p "${ZSHCOMPLETIONDIR}"
|
mkdir -p "${ZSHCOMPLETIONDIR}"
|
||||||
|
|
||||||
cp zsh/completions/* "${ZSHCOMPLETIONDIR}"
|
for completion in zsh/*; do
|
||||||
|
install -Dm644 "${completion}" "${ZSHCOMPLETIONDIR}/${completion##*.}"
|
||||||
|
done
|
||||||
%check
|
%check
|
||||||
|
|
||||||
|
# %files %%{python_files} (bug)
|
||||||
%files
|
%files
|
||||||
%attr(0755,-,-) %{_bindir}/*
|
%attr(0755,-,-) %{_bindir}/*
|
||||||
|
/usr/lib/python3*/*
|
||||||
|
|
||||||
%files zsh-plugins
|
%files zsh-plugins
|
||||||
%{_datadir}/zsh/plugins/helper-scripts/*
|
|
||||||
%{_datadir}/zsh/site-functions/*
|
%{_datadir}/zsh/site-functions/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user