From 544fe904862ed50056778ea9a7dc33d038d5c17e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 13 Feb 2023 14:30:02 +0100 Subject: [PATCH] Initial import (#2169233) --- .gitignore | 1 + README.md | 3 --- cargo2rpm.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 cargo2rpm.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24f81a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cargo2rpm-0.1.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 210b709..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# cargo2rpm - -The cargo2rpm package diff --git a/cargo2rpm.spec b/cargo2rpm.spec new file mode 100644 index 0000000..922d4c1 --- /dev/null +++ b/cargo2rpm.spec @@ -0,0 +1,49 @@ +%bcond_without check + +Name: cargo2rpm +Version: 0.1.0 +Release: %autorelease +Summary: Translation layer between cargo and RPM +License: MIT + +URL: https://pagure.io/fedora-rust/cargo2rpm +Source: %{url}/archive/%{version}/cargo2rpm-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel + +Requires: cargo + +%description +cargo2rpm implements a translation layer between cargo and RPM. It +provides a CLI interface (for implementing RPM macros and generators) +and a Python API (which rust2rpm is built upon). + +%prep +%autosetup -n cargo2rpm-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires -t + +%build +%pyproject_wheel + +%install +%pyproject_install + +%check +%if %{with check} +%tox +%endif + +%files +%license LICENSE +%doc README.md +%doc CHANGELOG.md +%{_bindir}/cargo2rpm +%{python3_sitelib}/cargo2rpm-*.dist-info/ +%{python3_sitelib}/cargo2rpm/ + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..2682030 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cargo2rpm-0.1.0.tar.gz) = 90f5af58e0aeb359909b5fe8546d2d78605da19daacd7372d1c0127ebf5443d48b60c31117e5b0aa0cd0971bbff63da2c79488f23b3f5550f38c28852e22f64c