You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-termion/rust-termion.spec

95 lines
2.6 KiB

# Generated by rust2rpm-9-1.fc30
# * Tests rely on tty
%bcond_with check
%global debug_package %{nil}
%global crate termion
Name: rust-%{crate}
Version: 1.5.2
Release: 1%{?dist}
Summary: Bindless library for manipulating terminals
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/termion
Source: %{crates_source}
# Initial patched metadata
# * No redox
# * Update numtoa to 0.2.3
Patch0: termion-fix-metadata.diff
# https://gitlab.redox-os.org/redox-os/termion/merge_requests/153/diffs?commit_id=8c3378e1ff06c40fcd694ddfac93ebb8c272164b
Patch1: 0001-Update-numtoa.patch
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(libc/default) >= 0.2.8 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(numtoa/default) >= 0.2.3 with crate(numtoa/default) < 0.3.0)
%global _description \
A bindless library for manipulating terminals.
%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}/
%exclude %{cargo_registry}/%{crate}-%{version}/logo.svg
%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
* Mon Jun 03 2019 Josh Stone <jistone@redhat.com> - 1.5.2-1
- Update to 1.5.2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.1-2
- Rebuild for rust-packaging v5
* Sun Nov 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.1-1
- Initial package