From 51d5188d39fcf1a1fc6cc0e7221cea95f91fb7d9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 26 Jan 2019 18:05:02 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-mime_guess.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 rust-mime_guess.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4837ba8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mime_guess-2.0.0-alpha.6.crate diff --git a/rust-mime_guess.spec b/rust-mime_guess.spec new file mode 100644 index 0000000..a5e5777 --- /dev/null +++ b/rust-mime_guess.spec @@ -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 - 2.0.0~alpha.6-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..da57c1c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mime_guess-2.0.0-alpha.6.crate) = b32bdea0942443aede186317a7e3b3d2e36e3bda56e43794c040aad6ddc1fb847bd380f514299800e449f188208c218680d4d07f16ab30c9c7cbab02c5245733