diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..caf4044 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/unicase-2.1.0.crate diff --git a/rust-unicase.spec b/rust-unicase.spec new file mode 100644 index 0000000..dd3cc9b --- /dev/null +++ b/rust-unicase.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate unicase + +Name: rust-%{crate} +Version: 2.1.0 +Release: 1%{?dist} +Summary: Case-insensitive wrapper around strings + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/unicase +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [build-dependencies] +BuildRequires: (crate(version_check) >= 0.1.0 with crate(version_check) < 0.2.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A case-insensitive wrapper around strings. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/scripts + +%changelog +* Wed Nov 29 2017 Igor Gnatenko - 2.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4d4fa50 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (unicase-2.1.0.crate) = 422a3424266e262e283ca5af6247ec393670af8e214c4e7d1c389bc827c7572c57ea865449a7d6a834d56cda0ee13a2bd5f3985087cae2369e612f239e8498a7