From 99e965b6796e57468bd72c476ac0e1588b55c8b0 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jun 07 2020 13:19:53 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2cd2fa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/news-flash-1.0.2.crate diff --git a/rust-news-flash.spec b/rust-news-flash.spec new file mode 100644 index 0000000..55f4c7a --- /dev/null +++ b/rust-news-flash.spec @@ -0,0 +1,100 @@ +# Generated by rust2rpm 15 +# * Tests require internet and a token +%bcond_with check +%global debug_package %{nil} + +%global crate news-flash + +Name: rust-%{crate} +Version: 1.0.2 +Release: 1%{?dist} +Summary: Base library for a modern feed reader + +# Upstream license specification: GPL-3.0-or-later +License: GPLv3+ +URL: https://crates.io/crates/news-flash +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Base library for a modern feed reader.} + +%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 +%doc README.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}+readability-fallback-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+readability-fallback-devel %{_description} + +This package contains library source intended for building other packages +which use "readability-fallback" feature of "%{crate}" crate. + +%files -n %{name}+readability-fallback-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+readability-fork-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+readability-fork-devel %{_description} + +This package contains library source intended for building other packages +which use "readability-fork" feature of "%{crate}" crate. + +%files -n %{name}+readability-fork-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 + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun Jun 07 12:16:36 CEST 2020 Igor Raits - 1.0.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b1ba76c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (news-flash-1.0.2.crate) = f089474c2cee774874aa9f39f2f11c19dee008e94b5e7445134046927534aac007d8a0719861f9bd1b243e801d3908cc5ea3587199335faf7130ba01b277fba1