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-mime_guess/rust-mime_guess.spec

81 lines
2.2 KiB

# Generated by rust2rpm
# * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil}
%global crate mime_guess
Name: rust-%{crate}
Version: 2.0.0~alpha.6
Release: 3%{?dist}
Summary: Simple crate for detection of a file's MIME type by its extension
License: MIT
URL: https://crates.io/crates/mime_guess
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(mime/default) >= 0.3.0 with crate(mime/default) < 0.4.0)
BuildRequires: (crate(phf/default) >= 0.7.0 with crate(phf/default) < 0.8.0)
BuildRequires: (crate(phf/unicase) >= 0.7.0 with crate(phf/unicase) < 0.8.0)
BuildRequires: (crate(phf_codegen/default) >= 0.7.0 with crate(phf_codegen/default) < 0.8.0)
BuildRequires: (crate(unicase/default) >= 1.1.0 with crate(unicase/default) < 2.0.0)
%global _description \
A simple crate for detection of a file's MIME type by its extension.
%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
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0~alpha.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jan 26 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0~alpha.6-2
- Run tests in infrastructure
* Sat Jan 26 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0~alpha.6-1
- Initial package