From e3456fdff776f73724174dbd42326ba3e0d54c85 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 30 May 2023 00:40:50 +0200 Subject: [PATCH] Initial import (dirs 4 compat package) --- .gitignore | 1 + README.md | 3 -- rust-dirs4.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 2 ++ sources | 1 + 5 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-dirs4.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c1eef3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dirs-4.0.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index a3b807c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-dirs4 - -The rust-dirs4 package diff --git a/rust-dirs4.spec b/rust-dirs4.spec new file mode 100644 index 0000000..12a56a9 --- /dev/null +++ b/rust-dirs4.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate dirs + +Name: rust-dirs4 +Version: 4.0.0 +Release: %autorelease +Summary: Platform abstractions for common directories + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/dirs +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A tiny low-level library that provides platform-specific standard +locations of directories for config, cache and other data on Linux, +Windows, macOS and Redox by leveraging the mechanisms defined by the XDG +base/user directory specifications on Linux, the Known Folder API on +Windows, and the Standard Directory guidelines on macOS.} + +%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}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..7446e56 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Platform abstractions for common directories diff --git a/sources b/sources new file mode 100644 index 0000000..114d3f2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dirs-4.0.0.crate) = be582e5045f1916fb6b918c8e8c5907b4b663534025e4227ea4828e2aa9fe7fbcb3c48f1f0d08d163ba684aa4404076ac210e7f14766a09b9ed89a2825121b3b