diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..652d388 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rfc6979-0.4.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index e0396b3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rfc6979 - -The rust-rfc6979 package diff --git a/rust-rfc6979.spec b/rust-rfc6979.spec new file mode 100644 index 0000000..09a4308 --- /dev/null +++ b/rust-rfc6979.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate rfc6979 + +Name: rust-rfc6979 +Version: 0.4.0 +Release: %autorelease +Summary: Deterministic Usage of the Digital Signature Algorithm (RFC6979) + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/rfc6979 +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Pure Rust implementation of RFC6979: Deterministic Usage of the Digital +Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm +(ECDSA).} + +%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 %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 %{crate_instdir}/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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..00c908c --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Deterministic Usage of the Digital Signature Algorithm (RFC6979) diff --git a/sources b/sources new file mode 100644 index 0000000..f45fdef --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rfc6979-0.4.0.crate) = fb68114f5f8c1e7b921ed175fc01813531a584b8cb2df1264b72e1925bd66b4c021714b3627fbbcf3fabc26e4d6578c4d246369a0c98049d4058dca4cbabb20f