From 6b6528346011ea6bf7d22e7ae2a2624a448e5e54 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 30 Oct 2023 22:26:40 +0100 Subject: [PATCH] Initial import (#2246720) --- .gitignore | 1 + LICENSE | 25 ++++++++++++++++++ README.md | 3 --- rust-h3.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 LICENSE delete mode 100644 README.md create mode 100644 rust-h3.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..83bf5b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/h3-0.0.2.crate diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..97d180d --- /dev/null +++ b/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2020 h3 authors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 6aa50c7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-h3 - -The rust-h3 package diff --git a/rust-h3.spec b/rust-h3.spec new file mode 100644 index 0000000..4ced984 --- /dev/null +++ b/rust-h3.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 25 +# * missing dev-dependency: rcgen ^0.10 +%bcond_with check +%global debug_package %{nil} + +%global crate h3 + +Name: rust-h3 +Version: 0.0.2 +Release: %autorelease +Summary: Async HTTP/3 implementation + +License: MIT +URL: https://crates.io/crates/h3 +Source: %{crates_source} +Source: https://github.com/hyperium/h3/raw/h3-v%{version}/LICENSE + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +An async HTTP/3 implementation.} + +%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 +%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} -p1 +%cargo_prep +cp -pav %{SOURCE1} . + +%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..6881589 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (h3-0.0.2.crate) = 839c1317b584bfa7a706492227b750d1ec8b9fa6cc33a7132fa46c649b20c87ad7aa8cafced1868b8182c95b9af4d304ba7caff58607e767efed1a91872bf4ab