Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 45dab5ecff9302e39b357e13f945a82a > files > 3

rust-pem-1.1.0-1.mga9.src.rpm

# Generated by rust2rpm 21
%bcond_without check

%global crate pem

Name:           rust-%{crate}
Version:        1.1.0
Release:        %mkrel 1
Summary:        Parse and encode PEM-encoded data
Group:          Development/Other

# Upstream license specification: MIT
License:        MIT
URL:            https://crates.io/crates/pem
Source:         %{crates_source}
# Initial patched metadata
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch0:         pem-1.1.0-fix-metadata.patch

ExclusiveArch:  %{rust_arches}
BuildArch:      noarch

BuildRequires:  rust-packaging >= 21
BuildRequires:  crate(base64/default) >= 0.13.0
BuildRequires:  crate(pest/serde_json)

%global _description %{expand:
Parse and encode PEM-encoded data.}

%description %{_description}

%package        devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description    devel %{_description}

This package contains library source intended for building other packages which
use the "%{crate}" crate.

%files          devel
%license LICENSE.md
%doc CHANGELOG.md README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/

%package     -n %{name}+default-devel
Summary:        %{summary}
Group:          Development/Other
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

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif



%changelog
* Thu Nov 24 2022 papoteur <papoteur> 1.1.0-1.mga9
+ Revision: 1910686
- new 1.1.0

* Wed Mar 23 2022 umeabot <umeabot> 1.0.2-2.mga9
+ Revision: 1821156
- Mageia 9 Mass Rebuild

* Sat Mar 05 2022 guillomovitch <guillomovitch> 1.0.2-1.mga9
+ Revision: 1788933
- imported package rust-pem


* Sat Mar 05 2022 Guillaume Rousse <guillomovitch@gmail.com> - 1.0.2-1
- Initial package