# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate sdl2-sys Name: rust-%{crate} Version: 0.27.2 Release: 3%{?dist} Summary: # FIXME License: MIT URL: https://crates.io/crates/sdl2-sys Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust BuildRequires: cargo # Manual BuildRequires BuildRequires: SDL2-devel # [dependencies] BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) # [build-dependencies] BuildRequires: (crate(pkg-config) >= 0.3.0 with crate(pkg-config) < 0.4.0) %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch # to use this package you will need this Requires: SDL2-devel Requires: SDL2_mixer-devel Requires: SDL2_gfx-devel Requires: SDL2_ttf-devel Requires: SDL2_image-devel %description devel %{summary}. 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 %{cargo_registry}/%{crate}-%{version}/ %changelog * Thu Mar 02 2017 Michael Cullen - 0.27.2-3 - rebuilt * Thu Mar 02 2017 Michael Cullen - 0.27.2-2 - rebuilt