diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dcff772 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/maplit-1.0.0.crate diff --git a/rust-maplit.spec b/rust-maplit.spec new file mode 100644 index 0000000..90c71f0 --- /dev/null +++ b/rust-maplit.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate maplit + +Name: rust-%{crate} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Collection “literal” macros for HashMap, HashSet, BTreeMap, and BTreeSet + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/maplit +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 +Collection “literal” macros for HashMap, HashSet, BTreeMap, and BTreeSet. + +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.rst +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Mon Nov 06 2017 Igor Gnatenko - 1.0.0-1 +- Update to 1.0.0 + +* Thu Jul 06 2017 Igor Gnatenko - 0.1.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..17d7db6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (maplit-1.0.0.crate) = f81295a51f6924cb9247c5d49cb6db26960b94ae07ce9a47c10d752291c3ea94dc80e896d4d9c3e20289b362e694fd6a41b0d7dc4b32da9b27fd00f0a00e1274