Initial import (dirs 4 compat package)

epel9 imports/e9/rust-dirs4-4.0.0-1.el9
Fabio Valentini 2 years ago
parent fe85773afb
commit e3456fdff7
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/dirs-4.0.0.crate

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

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

@ -0,0 +1,2 @@
[DEFAULT]
summary = Platform abstractions for common directories

@ -0,0 +1 @@
SHA512 (dirs-4.0.0.crate) = be582e5045f1916fb6b918c8e8c5907b4b663534025e4227ea4828e2aa9fe7fbcb3c48f1f0d08d163ba684aa4404076ac210e7f14766a09b9ed89a2825121b3b
Loading…
Cancel
Save