diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3db1cd5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/unicode-ident-1.0.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 84c9a92..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-unicode-ident - -The rust-unicode-ident package diff --git a/rust-unicode-ident.spec b/rust-unicode-ident.spec new file mode 100644 index 0000000..34cd21f --- /dev/null +++ b/rust-unicode-ident.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 21 +# * missing dev-dependencies: fst, roaring +%bcond_with check +%global debug_package %{nil} + +%global crate unicode-ident + +Name: rust-%{crate} +Version: 1.0.1 +Release: %autorelease +Summary: Determine whether characters have the XID_Start or XID_Continue properties + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/unicode-ident +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Determine whether characters have the XID_Start or XID_Continue properties +according to Unicode Standard Annex #31.} + +%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 +%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_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/sources b/sources new file mode 100644 index 0000000..664c031 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (unicode-ident-1.0.1.crate) = 505650712a51c6f309c97bf72029de1eede33c71b84de9733f5f987859a61225e3d07d369b85a89797d870ea436f30b5b5046306f3d5fd672551a4b30c43e428