Davide Cavalca 4 years ago
parent d67380d838
commit ac12e8458b

1
.gitignore vendored

@ -0,0 +1 @@
/hamcrest2-0.3.0.crate

@ -0,0 +1,11 @@
--- hamcrest2-0.3.0/Cargo.toml 1970-01-01T00:00:00+00:00
+++ hamcrest2-0.3.0/Cargo.toml 2021-06-18T04:18:16.513685+00:00
@@ -23,7 +23,7 @@
license = "MIT/Apache-2.0"
repository = "https://github.com/Valloric/hamcrest2-rust"
[dependencies.num]
-version = "0.2"
+version = "0.3.1"
[dependencies.regex]
version = "1"

@ -0,0 +1,78 @@
# Generated by rust2rpm 17
%bcond_without check
%global debug_package %{nil}
%global crate hamcrest2
Name: rust-%{crate}
Version: 0.3.0
Release: 1%{?dist}
Summary: Port of the Hamcrest testing library
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/hamcrest2
Source: %{crates_source}
# Bump num to 0.3.1
Patch0: hamcrest2-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Port of the Hamcrest testing library. Fork of original hamcrest-rust (which is
unmaintained) with extra matchers, better docs etc.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-APACHE LICENSE-MIT
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
* Thu Jun 17 2021 Davide Cavalca <davide@cavalca.name> - 0.3.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (hamcrest2-0.3.0.crate) = e8dc89a4386f2fc335994f5b8468c7d2f56835c1b74ee735bed0f81af7f77179151678771b1cffe2134528f5b42c818c57c5375c66d8fe8a20d3c4e9df6dbea6
Loading…
Cancel
Save