# Generated by rust2rpm # * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} %global crate zoneinfo_compiled Name: rust-%{crate} Version: 0.4.7 Release: 6%{?dist} Summary: Library for parsing compiled zoneinfo files # https://github.com/rust-datetime/zoneinfo-compiled/issues/1 License: MIT URL: https://crates.io/crates/zoneinfo_compiled Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * Bump byteorder to 1, https://github.com/rust-datetime/zoneinfo-compiled/pull/2 Patch0: zoneinfo_compiled-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0) BuildRequires: (crate(datetime/default) >= 0.4.7 with crate(datetime/default) < 0.5.0) %global _description \ Library for parsing compiled zoneinfo files. %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}/ %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} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sat Feb 02 2019 Fedora Release Engineering - 0.4.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 14 2018 Igor Gnatenko - 0.4.7-5 - Adapt to new packaging * Sat Jul 14 2018 Fedora Release Engineering - 0.4.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.4.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.4.7-2 - Rebuild for rust-packaging v5 * Sat Nov 18 2017 Igor Gnatenko - 0.4.7-1 - Initial package