Makefile: install cargodeps without extension

Otherwise RPM bytecompile script will try to create bytecompiled
code and will fail.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-02-05 22:24:47 +01:00
parent a63ea7f3ed
commit 0038452903
2 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ install-rust2rpm: rust2rpm.pyz
install-cargodeps: cargodeps.pyz
@echo "Installing cargodeps zipapp"
install -d -m 0755 $(DESTDIR)$(RPMDIR)
install -m 0755 -p cargodeps.pyz $(DESTDIR)$(RPMDIR)/cargodeps.py
install -m 0755 -p cargodeps.pyz $(DESTDIR)$(RPMDIR)/cargodeps
@echo "Installing RPM macro"
install -d -m 0755 $(DESTDIR)$(RPMDIR)/macros.d
install -m 0644 -p data/macros.rust-srpm $(DESTDIR)$(RPMDIR)/macros.d/macros.rust-srpm

View file

@ -1,4 +1,4 @@
%__cargo_provides %{_rpmconfigdir}/cargodeps.py --provides
%__cargo_requires %{_rpmconfigdir}/cargodeps.py --requires
%__cargo_conflicts %{_rpmconfigdir}/cargodeps.py --conflicts
%__cargo_provides %{_rpmconfigdir}/cargodeps --provides
%__cargo_requires %{_rpmconfigdir}/cargodeps --requires
%__cargo_conflicts %{_rpmconfigdir}/cargodeps --conflicts
%__cargo_path ^%{cargo_registry}/[^/]+/Cargo\\.toml$