# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate libc Name: rust-%{crate} Version: 0.2.33 Release: 2%{?dist} Summary: Library for types and bindings to native C functions License: MIT or ASL 2.0 URL: https://crates.io/crates/libc Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: glibc-devel %description %{summary}. %package devel Summary: %{summary} Requires: glibc-devel BuildArch: noarch %description devel A library for types and bindings to native C functions often found in libc or other common platform libraries. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci} %changelog * Mon Nov 20 2017 Igor Gnatenko - 0.2.33-2 - Add BuildRequires/Requires for glibc-devel * Wed Nov 01 2017 Igor Gnatenko - 0.2.33-1 - Update to 0.2.33 * Fri Oct 27 2017 Igor Gnatenko - 0.2.32-1 - Update to 0.2.32 * Fri Jul 21 2017 Igor Gnatenko - 0.2.26-1 - Update to 0.2.26 * Fri Jul 07 2017 Igor Gnatenko - 0.2.25-1 - Update to 0.2.25 * Sun Jun 25 2017 Igor Gnatenko - 0.2.24-1 - Update to 0.2.24 * Wed Jun 14 2017 Igor Gnatenko - 0.2.23-1 - Update to 0.2.23 * Wed Jun 14 2017 Igor Gnatenko - 0.2.21-2 - Port to use rust-packaging * Sun Mar 05 2017 Igor Gnatenko - 0.2.21-1 - Update to 0.2.21 * Fri Feb 24 2017 Igor Gnatenko - 0.2.20-3 - Strip unneeded files * Sun Feb 12 2017 Igor Gnatenko - 0.2.20-2 - Add license files - Fix license tag * Sun Feb 12 2017 Igor Gnatenko - 0.2.20-1 - Initial package