Blob Blame History Raw
%global modname rust_update_set
%global srcname %{py_dist_name %modname}

Name:           python-%{srcname}
Version:        0.0.1
Release:        %autorelease
Summary:        A tool to help Fedora packagers update Rust packages

License:        MIT
Source:         %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

# proposed patch to port from removed rust2rpm APIs to cargo2rpm
# FIXME: likely an incomplete port, it just makes the tests pass
Patch:          %{url}/pull-request/11.patch

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest)

%global _description %{expand:
rust-update-set is a Fedora packager tool which tries to automate some common tasks

- recursively check out all packages that need to be updated or missing deps that need to be packaged
- preserve changes in old spec file when updating spec file using rust2rpm
- check update compatibility and create packages with suffix when a transitive closure is introduced
- automate parallel COPR builds of sets of packages in dependency order
- chain-build all packages in Koji with requested side tag
- merging and chain-building all packages across release branches
- create compat crate rust-{crate}{older} when updating some packages will break other packages.}

%description %_description

%package -n %{srcname}
Summary:        %{summary}
Requires:       copr-cli

%description -n %{srcname} %_description

%autosetup -p1 -n %{srcname}-%{version}




%pyproject_save_files %{modname}


%files -n %{srcname} -f %{pyproject_files}
%license LICENSE