diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..97ce22f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serde_regex-1.1.0.crate diff --git a/rust-serde_regex.spec b/rust-serde_regex.spec new file mode 100644 index 0000000..7b3c84a --- /dev/null +++ b/rust-serde_regex.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate serde_regex + +Name: rust-serde_regex +Version: 1.1.0 +Release: %autorelease +Summary: Serde wrapper that (de)serializes regex as strings + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/serde_regex +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Serde wrapper that (de)serializes regex as strings.} + +%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}/README.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..b9313aa --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serde_regex-1.1.0.crate) = 7e366be1997859cde665ee536f4c67d6d29e65e1ad3aaa438dd5d5b764263dbe8b0981d7b76bfa2e90961aa6b94dea6a9140e404069ffaf862da056dde57b612