parent
e83360b6c7
commit
51d5188d39
@ -0,0 +1 @@
|
||||
/mime_guess-2.0.0-alpha.6.crate
|
@ -0,0 +1,73 @@
|
||||
# Generated by rust2rpm
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate mime_guess
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 2.0.0~alpha.6
|
||||
Release: 1%{?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 Jan 26 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0~alpha.6-1
|
||||
- Initial package
|
Loading…
Reference in new issue