Initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent e83360b6c7
commit 51d5188d39
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

1
.gitignore vendored

@ -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

@ -0,0 +1 @@
SHA512 (mime_guess-2.0.0-alpha.6.crate) = b32bdea0942443aede186317a7e3b3d2e36e3bda56e43794c040aad6ddc1fb847bd380f514299800e449f188208c218680d4d07f16ab30c9c7cbab02c5245733
Loading…
Cancel
Save