From d4f741fb9af5fce51f8a23aed08ffbbb188a4544 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 10 Oct 2023 20:41:54 +0200 Subject: [PATCH] Initial import (directories 4 compat package) --- .gitignore | 1 + README.md | 3 -- rust-directories4.spec | 73 ++++++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 3 ++ sources | 1 + 5 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-directories4.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d482a4f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/directories-4.0.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index f5aa706..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-directories4 - -The rust-directories4 package diff --git a/rust-directories4.spec b/rust-directories4.spec new file mode 100644 index 0000000..7ecde4d --- /dev/null +++ b/rust-directories4.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate directories + +Name: rust-directories4 +Version: 4.0.1 +Release: %autorelease +Summary: Platform-specific standard locations of directories + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/directories +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A tiny mid-level library that provides platform-specific standard +locations of directories for config, cache and other data on Linux, +Windows and macOS 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} -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.toml b/rust2rpm.toml new file mode 100644 index 0000000..1c04cd9 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Platform-specific standard locations of directories" + diff --git a/sources b/sources new file mode 100644 index 0000000..c8d8c68 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (directories-4.0.1.crate) = babe4e23759b2e01a284a14aa1b45ba9d705ad7257246fe8c1ee6a071f48192c58a30b7d09c222268be83f7ebb59c0cc91e8b1342c1f9f0a96ec079fd264f8d5