Regenerate with rust2rpm v24

epel9
Fabio Valentini 2 years ago
parent 5c2faaf2e6
commit a679a1a9c1
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,5 +1,5 @@
--- httpdate-1.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 --- httpdate-1.0.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ httpdate-1.0.2/Cargo.toml 2021-11-18T11:32:40.627817+00:00 +++ httpdate-1.0.2/Cargo.toml 2023-06-07T20:40:11.426939+00:00
@@ -23,5 +23,3 @@ @@ -23,5 +23,3 @@
[[bench]] [[bench]]
name = "benchmarks" name = "benchmarks"

@ -1,28 +1,23 @@
# Generated by rust2rpm 18 # Generated by rust2rpm 24
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
%global crate httpdate %global crate httpdate
Name: rust-%{crate} Name: rust-httpdate
Version: 1.0.2 Version: 1.0.2
Release: %autorelease Release: %autorelease
Summary: HTTP date parsing and formatting Summary: HTTP date parsing and formatting
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT OR Apache-2.0
URL: https://crates.io/crates/httpdate URL: https://crates.io/crates/httpdate
Source: %{crates_source} Source: %{crates_source}
# Initial patched metadata # Manually created patch for downstream crate metadata changes
# * drop unused, benchmark-only criterion dev-dependency to speed up builds # * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch0: httpdate-fix-metadata.diff Patch: httpdate-fix-metadata.diff
ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand: %global _description %{expand:
HTTP date parsing and formatting.} HTTP date parsing and formatting.}
@ -35,13 +30,14 @@ BuildArch: noarch
%description devel %{_description} %description devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "%{crate}" crate. use the "%{crate}" crate.
%files devel %files devel
%license LICENSE-APACHE LICENSE-MIT %license %{crate_instdir}/LICENSE-APACHE
%doc README.md %license %{crate_instdir}/LICENSE-MIT
%{cargo_registry}/%{crate}-%{version_no_tilde}/ %doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel %package -n %{name}+default-devel
Summary: %{summary} Summary: %{summary}
@ -49,11 +45,11 @@ BuildArch: noarch
%description -n %{name}+default-devel %{_description} %description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "default" feature of "%{crate}" crate. use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel %files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1

Loading…
Cancel
Save