From 68e91bcd05673b05776bcbe4e213f62c2d4b44ba Mon Sep 17 00:00:00 2001 From: Albert Larsan Date: Thu, 18 Jan 2024 18:49:19 +0100 Subject: [PATCH] Initial import (fedora#2254743) --- .gitignore | 2 ++ rust-psl.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 rust-psl.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c0ae4d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/psl-2.1.13.crate +/psl-2.1.14.crate diff --git a/rust-psl.spec b/rust-psl.spec new file mode 100644 index 0000000..557a658 --- /dev/null +++ b/rust-psl.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate psl + +Name: rust-psl +Version: 2.1.14 +Release: %autorelease +Summary: Extract root domain and suffix from a domain name + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/psl +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Extract root domain and suffix from a domain name.} + +%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 + +%package -n %{name}+helpers-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+helpers-devel %{_description} + +This package contains library source intended for building other packages which +use the "helpers" feature of the "%{crate}" crate. + +%files -n %{name}+helpers-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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..e1d1a79 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (psl-2.1.14.crate) = f3a3f215c8f9202f5327bf3491826691d02e164d4555ccbef65a72331c82aa5910691d69ef49d1189cac2653472d83407565b3077ffd94e8c570bfe93501d134