You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-cookie/rust-cookie.spec

228 lines
6.3 KiB

# Generated by rust2rpm 18
%bcond_without check
%global debug_package %{nil}
%global crate cookie
Name: rust-%{crate}
Version: 0.14.4
Release: %autorelease
Summary: HTTP cookie parsing and cookie jar management
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/cookie
Source: %{crates_source}
# Initial patched metadata
# * bump aes-gcm from 0.8 to 0.9
# * bump hkdf from 0.10 to 0.11
# * bump hmac from 0.10 to 0.11
Patch0: cookie-fix-metadata.diff
# * patch for crypto-mac API changes
# https://github.com/SergioBenitez/cookie-rs/commit/14b053a
Patch1: 0001-port-to-crypto-mac-0.11.patch
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
HTTP cookie parsing and cookie jar management. Supports signed and private
(encrypted, authenticated) jars.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+aes-gcm-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+aes-gcm-devel %{_description}
This package contains library source intended for building other packages
which use "aes-gcm" feature of "%{crate}" crate.
%files -n %{name}+aes-gcm-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+base64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+base64-devel %{_description}
This package contains library source intended for building other packages
which use "base64" feature of "%{crate}" crate.
%files -n %{name}+base64-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+hkdf-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+hkdf-devel %{_description}
This package contains library source intended for building other packages
which use "hkdf" feature of "%{crate}" crate.
%files -n %{name}+hkdf-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+hmac-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+hmac-devel %{_description}
This package contains library source intended for building other packages
which use "hmac" feature of "%{crate}" crate.
%files -n %{name}+hmac-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+key-expansion-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+key-expansion-devel %{_description}
This package contains library source intended for building other packages
which use "key-expansion" feature of "%{crate}" crate.
%files -n %{name}+key-expansion-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+percent-encode-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+percent-encode-devel %{_description}
This package contains library source intended for building other packages
which use "percent-encode" feature of "%{crate}" crate.
%files -n %{name}+percent-encode-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+percent-encoding-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+percent-encoding-devel %{_description}
This package contains library source intended for building other packages
which use "percent-encoding" feature of "%{crate}" crate.
%files -n %{name}+percent-encoding-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+private-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+private-devel %{_description}
This package contains library source intended for building other packages
which use "private" feature of "%{crate}" crate.
%files -n %{name}+private-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+rand-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rand-devel %{_description}
This package contains library source intended for building other packages
which use "rand" feature of "%{crate}" crate.
%files -n %{name}+rand-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+secure-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+secure-devel %{_description}
This package contains library source intended for building other packages
which use "secure" feature of "%{crate}" crate.
%files -n %{name}+secure-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+sha2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+sha2-devel %{_description}
This package contains library source intended for building other packages
which use "sha2" feature of "%{crate}" crate.
%files -n %{name}+sha2-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+signed-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+signed-devel %{_description}
This package contains library source intended for building other packages
which use "signed" feature of "%{crate}" crate.
%files -n %{name}+signed-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires -a
%build
%cargo_build -a
%install
%cargo_install -a
%if %{with check}
%check
%cargo_test -a
%endif
%changelog
%autochangelog