# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate locale_config Name: rust-%{crate} Version: 0.2.2 Release: 1%{?dist} Summary: Maintains locale preferences for process and thread and initialises them License: MIT URL: https://crates.io/crates/locale_config Source: %{crates_source} # Initial patched metadata # * Bump regex and lazy_static to 1, https://github.com/rust-locale/locale_config/pull/1 # * Exclude CI files, https://github.com/rust-locale/locale_config/pull/2 Patch0: locale_config-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0) BuildRequires: (crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0) %global _description \ Maintains locale preferences for process and thread and initialises them by\ inspecting the system for user preference. %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 %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sun Feb 17 2019 Igor Gnatenko - 0.2.2-1 - Initial package