Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9 imports/e9/rust-tree_magic_db-3.0.0-1.el9
Michel Alexandre Salim 2 years ago
parent 9e9f29450d
commit b6b9cf00f2
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

1
.gitignore vendored

@ -0,0 +1 @@
/tree_magic_db-3.0.0.crate

@ -0,0 +1,69 @@
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate tree_magic_db
Name: rust-tree_magic_db
Version: 3.0.0
Release: %autorelease
Summary: Packages the FreeDesktop.org shared MIME database for optional use with tree_magic_mini
License: GPL-2.0-or-later
URL: https://crates.io/crates/tree_magic_db
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Packages the FreeDesktop.org shared MIME database for optional use with
tree_magic_mini.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/COPYING
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1 @@
SHA512 (tree_magic_db-3.0.0.crate) = 4feeed7d555f69c066c7ad61b4b2b0028c5d89dc7cf9363f3eb8fa19290a0a660093e2fa24538b94d06b28b43df02685ff5a3e0581196044c7f5999eddff2c14
Loading…
Cancel
Save