diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e34dbda --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/picky-asn1-*.crate diff --git a/picky-asn1-fix-metadata.diff b/picky-asn1-fix-metadata.diff new file mode 100644 index 0000000..f0dea6c --- /dev/null +++ b/picky-asn1-fix-metadata.diff @@ -0,0 +1,11 @@ +--- picky-asn1-0.2.2/Cargo.toml 2020-07-07T13:35:11+00:00 ++++ picky-asn1-0.2.2/Cargo.toml 2020-09-11T19:33:08.130467+00:00 +@@ -26,7 +26,7 @@ + optional = true + + [dependencies.oid] +-version = "^0.1.1" ++version = "^0.2" + features = ["serde_support"] + default-features = false + diff --git a/rust-picky-asn1.spec b/rust-picky-asn1.spec new file mode 100644 index 0000000..9dcc678 --- /dev/null +++ b/rust-picky-asn1.spec @@ -0,0 +1,100 @@ +# Generated by rust2rpm 13 +%bcond_with check +%global debug_package %{nil} + +%global crate picky-asn1 + +Name: rust-%{crate} +Version: 0.2.2 +Release: 1%{?dist} +Summary: Provide ASN.1 simple types + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/picky-asn1 +Source: %{crates_source} +# Initial patched metadata +Patch0: picky-asn1-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Provide ASN.1 simple types.} + +%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 +%doc 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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+chrono-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+chrono-devel %{_description} + +This package contains library source intended for building other packages +which use "chrono" feature of "%{crate}" crate. + +%files -n %{name}+chrono-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+chrono_conversion-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+chrono_conversion-devel %{_description} + +This package contains library source intended for building other packages +which use "chrono_conversion" feature of "%{crate}" crate. + +%files -n %{name}+chrono_conversion-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 +* Fri Sep 11 20:33:08 BST 2020 Peter Robinson - 0.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..34bc04b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (picky-asn1-0.2.2.crate) = d45677205a0683649006a19f03dc3ab58e602268e0831907c3b421845b588c44fcffd73430379c601a1b77925f8848ffe05296164798d55d7112d7b6cfcbe3da