Initial import (directories 4 compat package)

epel9 imports/e9/rust-directories4-4.0.1-1.el9
Fabio Valentini 1 year ago
parent a4d2ad3658
commit d4f741fb9a
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/directories-4.0.1.crate

@ -1,3 +0,0 @@
# rust-directories4
The rust-directories4 package

@ -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

@ -0,0 +1,3 @@
[package]
summary = "Platform-specific standard locations of directories"

@ -0,0 +1 @@
SHA512 (directories-4.0.1.crate) = babe4e23759b2e01a284a14aa1b45ba9d705ad7257246fe8c1ee6a071f48192c58a30b7d09c222268be83f7ebb59c0cc91e8b1342c1f9f0a96ec079fd264f8d5
Loading…
Cancel
Save