From f2f5fe54f370129bf0a79223f5c3e8ab1888a943 Mon Sep 17 00:00:00 2001 From: Artem Polishchuk Date: Tue, 12 Nov 2019 01:25:05 +0200 Subject: [PATCH] Initial import (#1769089). --- .gitignore | 1 + rust-parse-zoneinfo.spec | 75 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-parse-zoneinfo.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2049cda --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/parse-zoneinfo-0.2.0.crate diff --git a/rust-parse-zoneinfo.spec b/rust-parse-zoneinfo.spec new file mode 100644 index 0000000..33353a9 --- /dev/null +++ b/rust-parse-zoneinfo.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 10 +%bcond_without check +%global debug_package %{nil} + +%global crate parse-zoneinfo + +Name: rust-%{crate} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Parse zoneinfo files from the IANA database + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/parse-zoneinfo +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Parse zoneinfo files from the IANA database.} + +%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 +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/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 +* Tue Nov 05 23:25:26 EET 2019 Artem Polishchuk - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..9dc373e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (parse-zoneinfo-0.2.0.crate) = 2344f2a14ea0245a4bcd1face932fd2b993349e9b81556821cf6edf1d85944455ea5bcdf521e0916a46175b5cde9a7d0f57ee48f5cf9204f98f635f7f3aaab22