diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..006466a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/matches-0.1.6.crate diff --git a/rust-matches.spec b/rust-matches.spec new file mode 100644 index 0000000..d165736 --- /dev/null +++ b/rust-matches.spec @@ -0,0 +1,60 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate matches + +Name: rust-%{crate} +Version: 0.1.6 +Release: 1%{?dist} +Summary: Macro to evaluate, as a boolean, whether an expression matches a pattern + +License: MIT +URL: https://crates.io/crates/matches +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 +A macro to evaluate, as a boolean, whether an expression matches a pattern. + +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 +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Wed Jun 14 2017 Igor Gnatenko - 0.1.6-1 +- Update to 0.1.6 + +* Wed Jun 14 2017 Igor Gnatenko - 0.1.4-2 +- Port to use rust-packaging + +* Sun Feb 12 2017 Igor Gnatenko - 0.1.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..5db1a39 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (matches-0.1.6.crate) = 0a613c6daba26056da06cbc4a8a66751412b8e5709bf0e24e45caef76e308b918a2f6038342f3428633e388fe7631fc3978673560829b0842c9ceadb4037fa90