From d4be9106512eb86282378699c084f3c58d8627c2 Mon Sep 17 00:00:00 2001 From: Artem Polishchuk Date: Tue, 12 Nov 2019 01:27:41 +0200 Subject: [PATCH] Initial import (#1769091). --- .gitignore | 1 + rust-chrono-tz.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 89 insertions(+) create mode 100644 .gitignore create mode 100644 rust-chrono-tz.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b1cea4c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/chrono-tz-0.5.1.crate diff --git a/rust-chrono-tz.spec b/rust-chrono-tz.spec new file mode 100644 index 0000000..dbe90c1 --- /dev/null +++ b/rust-chrono-tz.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 10 +%bcond_without check +%global debug_package %{nil} + +%global crate chrono-tz + +Name: rust-%{crate} +Version: 0.5.1 +Release: 1%{?dist} +Summary: TimeZone implementations for rust-chrono from the IANA database + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/chrono-tz +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +TimeZone implementations for rust-chrono 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 + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-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:23:40 EET 2019 Artem Polishchuk - 0.5.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c3e9237 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (chrono-tz-0.5.1.crate) = fddb6a5015fa87ce5d6d1024f73a497928233b0125ba31fe651cb03e6f9587e7664b360a27ae023bebfd7fbb29796d48a3c499255179d943fea372ce3e7b03dc