From e39d9f3b73e169f279f55e92209b8dffa96c14fa Mon Sep 17 00:00:00 2001 From: Artem Polishchuk Date: Wed, 1 Jul 2020 20:41:16 +0300 Subject: [PATCH] Initial import --- .gitignore | 1 + pem-fix-metadata.diff | 10 ++++++ rust-pem.spec | 80 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 92 insertions(+) create mode 100644 .gitignore create mode 100644 pem-fix-metadata.diff create mode 100644 rust-pem.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ea2a56 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pem-0.8.1.crate diff --git a/pem-fix-metadata.diff b/pem-fix-metadata.diff new file mode 100644 index 0000000..f38434a --- /dev/null +++ b/pem-fix-metadata.diff @@ -0,0 +1,10 @@ +--- pem-0.8.1/Cargo.toml 2020-06-08T14:01:44+00:00 ++++ pem-0.8.1/Cargo.toml 2020-06-25T07:55:32.739881+00:00 +@@ -35,6 +35,6 @@ + [dependencies.regex] + version = "1" + [dev-dependencies.criterion] +-version = "0.2.3" ++version = "0.3.0" + [badges.travis-ci] + repository = "jcreekmore/pem-rs" diff --git a/rust-pem.spec b/rust-pem.spec new file mode 100644 index 0000000..d3567de --- /dev/null +++ b/rust-pem.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate pem + +Name: rust-%{crate} +Version: 0.8.1 +Release: 1%{?dist} +Summary: Parse and encode PEM-encoded data + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/pem +Source: %{crates_source} +# Initial patched metadata +# * https://github.com/jcreekmore/pem-rs/pull/24 +# * Bump deps +# - criterion to 0.3.0 +Patch0: pem-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Parse and encode PEM-encoded data.} + +%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.md +%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 + +%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 25 10:55:33 EEST 2020 Artem Polishchuk - 0.8.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..8fc1c24 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pem-0.8.1.crate) = db7a18a7499885262432137c845a81b4daae1e0b6a6e8e83e58735f41f6efa73b3358354d39204295c88a7c241f10588be09f3dd3f034a266a34cfeda82c4466