diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a7ecffc --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/ctr-0.8.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 6a67225..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ctr0.8 - -The rust-ctr0.8 package diff --git a/rust-ctr0.8.spec b/rust-ctr0.8.spec new file mode 100644 index 0000000..f892fb7 --- /dev/null +++ b/rust-ctr0.8.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 20 +# * missing dev-dependencies: kuznyechik, magma +%bcond_with check +%global debug_package %{nil} + +%global crate ctr + +Name: rust-%{crate}0.8 +Version: 0.8.0 +Release: %autorelease +Summary: CTR block mode of operation + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/ctr +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +CTR block mode of operation.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc CHANGELOG.md README.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 the "default" feature of the "%{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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..143ff1f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ctr-0.8.0.crate) = 26f4925cb50c72263cb939a4dcc7750f8fd50e3a2785fe86ae01f0d6c76d2842f4b8c35e67cf4df51cb9a72601065b0338f2311acbc2c8d0402b53444a7532cb