|
|
|
@ -1,20 +1,16 @@
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%{?python_enable_dependency_generator}
|
|
|
|
|
# https://pagure.io/koji/issue/659
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: rust-packaging
|
|
|
|
|
Version: 10
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Version: 11
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: RPM macros for building Rust packages on various architectures
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://pagure.io/fedora-rust/rust2rpm
|
|
|
|
|
Source: https://releases.pagure.org/fedora-rust/rust2rpm/rust2rpm-%{version}.tar.xz
|
|
|
|
|
# https://pagure.io/fedora-rust/rust2rpm/issue/90
|
|
|
|
|
Patch0001: 0001-Ignore-Cargo.lock.patch
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
ExclusiveArch: %{rust_arches} noarch
|
|
|
|
|
|
|
|
|
|
# gawk is needed for stripping dev-deps in macro
|
|
|
|
|
Requires: gawk
|
|
|
|
@ -34,11 +30,8 @@ BuildRequires: python3-setuptools
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: cargo
|
|
|
|
|
BuildRequires: python3dist(semantic-version)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: cargo
|
|
|
|
|
# pkg_resources due to entry_points
|
|
|
|
|
Requires: python3dist(setuptools)
|
|
|
|
|
Provides: rust2rpm = %{version}-%{release}
|
|
|
|
|
%{?python_provide:%python_provide python3-rust2rpm}
|
|
|
|
|
|
|
|
|
@ -75,6 +68,9 @@ py.test-%{python3_version} -vv test.py
|
|
|
|
|
%{python3_sitelib}/rust2rpm/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Dec 04 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 11-1
|
|
|
|
|
- Update to 11
|
|
|
|
|
|
|
|
|
|
* Sat Sep 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 10-6
|
|
|
|
|
- Depend on setuptools in runtime
|
|
|
|
|
|
|
|
|
|