initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 7 years ago
parent ab402f7773
commit ffa3b33f96
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

1
.gitignore vendored

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

@ -0,0 +1,9 @@
--- directories-1.0.1/Cargo.toml 1970-01-01T01:00:00+01:00
+++ directories-1.0.1/Cargo.toml 2018-09-03T09:09:38.486287+02:00
@@ -27,6 +27,3 @@
version = "0.1.5"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
-[target."cfg(windows)".dependencies.winapi]
-version = "0.3"
-features = ["knownfolders", "objbase", "shlobj", "winbase", "winerror"]

@ -0,0 +1,69 @@
# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate directories
Name: rust-%{crate}
Version: 1.0.1
Release: 1%{?dist}
Summary: Library that provides platform-specific standard locations of directories
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/directories
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata
# * No Windows
Patch0: directories-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(bencher) >= 0.1.5 with crate(bencher) < 0.2.0)
%endif
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
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.
This package contains library source intended for building other packages
which use %{crate} from crates.io.
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Mon Sep 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-1
- Initial package

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