From b91ee2c53b591973d44c7ecaa6d25c5afeef66ca Mon Sep 17 00:00:00 2001 From: blinxen Date: Tue, 6 Jun 2023 23:19:55 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + rust-gix-validate.spec | 70 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-gix-validate.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16052c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-validate-0.7.5.crate diff --git a/rust-gix-validate.spec b/rust-gix-validate.spec new file mode 100644 index 0000000..7bd68f3 --- /dev/null +++ b/rust-gix-validate.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-validate + +Name: rust-gix-validate +Version: 0.7.5 +Release: %autorelease +Summary: Validation functions for various kinds of names in git + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-validate +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Validation functions for various kinds of names in git.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..133d520 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-validate-0.7.5.crate) = 22bd3a175e0dd5fd5d0dce464408a28de6d9c050b51b3a175fc21c96c2da18ef57a4664fce10f438c5fc9174dccbdf0e15205cfdfb9cf068a31d73ebef90671c