diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4cce6b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/foreign-types-shared-0.1.1.crate diff --git a/rust-foreign-types-shared.spec b/rust-foreign-types-shared.spec new file mode 100644 index 0000000..3fe252a --- /dev/null +++ b/rust-foreign-types-shared.spec @@ -0,0 +1,57 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate foreign-types-shared + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Internal crate used by foreign-types + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/foreign-types-shared +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +An internal crate used by foreign-types. + +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 +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Wed Nov 29 2017 Igor Gnatenko - 0.1.1-1 +- Update to 0.1.1 + +* Tue Nov 28 2017 Igor Gnatenko - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6ccadc0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (foreign-types-shared-0.1.1.crate) = bafdb2143e136fb0818e2ffd90b5c862b7181647d6568947d4e4531012bbf7a57b597221ec7056c1b562dfc0c3b5dead26d1a4111ebc15e7863737a873518a4a