From 5dfd997cdb886ed4ca02060bd51592b7011d8d11 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 14 Jul 2023 19:43:03 +0200 Subject: [PATCH] Initial import (idna 0.3 compat package) --- .gitignore | 1 + README.md | 3 --- rust-idna0.3.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 2 ++ sources | 1 + 5 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-idna0.3.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31f5167 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/idna-0.3.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 54d82e2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-idna0.3 - -The rust-idna0.3 package diff --git a/rust-idna0.3.spec b/rust-idna0.3.spec new file mode 100644 index 0000000..963ca91 --- /dev/null +++ b/rust-idna0.3.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate idna + +Name: rust-idna0.3 +Version: 0.3.0 +Release: %autorelease +Summary: IDNA (Internationalizing Domain Names in Applications) and Punycode + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/idna +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +IDNA (Internationalizing Domain Names in Applications) and Punycode.} + +%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 +%{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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..7d57285 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = IDNA (Internationalizing Domain Names in Applications) and Punycode diff --git a/sources b/sources new file mode 100644 index 0000000..21e322c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (idna-0.3.0.crate) = 9b7cee27811ee52ed9bb39fe82f724742eef2e5370642b6c756bd134c8cbc20bb6faa9f296053672dba8a66f7356a08b2ca99f176407b173e2d566d85d066441