diff --git a/.gitignore b/.gitignore index 55e7a2d..6d6565c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /funty-1.1.0.crate /funty-1.2.0.crate +/funty-2.0.0.crate diff --git a/rust-funty.spec b/rust-funty.spec index 2a46ea1..279e493 100644 --- a/rust-funty.spec +++ b/rust-funty.spec @@ -1,26 +1,19 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate funty -Name: rust-%{crate} -Version: 1.1.0 +Name: rust-funty +Version: 2.0.0 Release: %autorelease Summary: Trait generalization over the primitive types -# Upstream license specification: MIT -# https://github.com/myrrlyn/funty/issues/1 License: MIT URL: https://crates.io/crates/funty Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Trait generalization over the primitive types.} @@ -33,11 +26,12 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE.txt +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -45,11 +39,11 @@ 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. +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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -57,11 +51,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index 485a698..6c3ce3e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (funty-1.1.0.crate) = 771f42f601a0349a8e9344c8df552491c64af350b18eacc99463e972335d4a4c95416704ebf49e904503fb2d6f78bf201c8cb82fa20bfbf460ab1e7ed9f94a9e +SHA512 (funty-2.0.0.crate) = 691e1c275b648110ef42c4adece8178cf037bad40d469780280eb2ebe07aa4b0406737c5ba02c9f9f63ee57a99fec27e5e51712e2113655f7522c8678f689155