|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 1.0.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Platform abstractions for common directories
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT OR Apache-2.0
|
|
|
|
@ -20,25 +20,42 @@ Patch0: dirs-fix-metadata.diff
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
# [dependencies]
|
|
|
|
|
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
%global _description \
|
|
|
|
|
A tiny low-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
|
|
|
|
|
A tiny low-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 devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use %{crate} from crates.io.
|
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
|
|
%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 "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
@ -55,12 +72,10 @@ which use %{crate} from crates.io.
|
|
|
|
|
%cargo_test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE-APACHE LICENSE-MIT
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Nov 09 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.4-2
|
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
|
|
|
|
|
* Thu Sep 27 2018 Josh Stone <jistone@redhat.com> - 1.0.4-1
|
|
|
|
|
- Update to 1.0.4
|
|
|
|
|
|
|
|
|
|