Skip to content

Commit

Permalink
contrib: %install failed at installing files
Browse files Browse the repository at this point in the history
The last argument of install must be a filename and not a directory.
That was making the specfile failing at %install time.

Signed-off-by: Erwan Velu <erwan@redhat.com>
  • Loading branch information
Erwan Velu authored and mergify[bot] committed Dec 19, 2018
1 parent 64fb952 commit 9fb0144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/cn.spec
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export LDFLAGS="$LDFLAGS -X main.version=%{source_version}"

%install
install -D -p -m 755 bin/cn %{buildroot}%{_bindir}/cn
install -D -p -m 644 cn.toml %{buildroot}%{_sysconfdir}/cn/
install -D -p -m 644 contrib/cn_completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/
install -D -p -m 644 cn.toml %{buildroot}%{_sysconfdir}/cn/cn.toml
install -D -p -m 644 contrib/cn_completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/cn_completion.sh

%files
%doc README.md
Expand Down

0 comments on commit 9fb0144

Please sign in to comment.