diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e97779c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tree_magic_db-3.0.0.crate diff --git a/rust-tree_magic_db.spec b/rust-tree_magic_db.spec new file mode 100644 index 0000000..163fe90 --- /dev/null +++ b/rust-tree_magic_db.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..82060fd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tree_magic_db-3.0.0.crate) = 4feeed7d555f69c066c7ad61b4b2b0028c5d89dc7cf9363f3eb8fa19290a0a660093e2fa24538b94d06b28b43df02685ff5a3e0581196044c7f5999eddff2c14