Adapt to new packaging

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
epel9
Robert-André Mauchin 6 years ago
parent 1a2431b16e
commit e0775a0719

@ -1,5 +1,5 @@
--- dirs-1.0.4/Cargo.toml 1969-12-31T16:00:00-08:00 --- dirs-1.0.4/Cargo.toml 1970-01-01T01:00:00+01:00
+++ dirs-1.0.4/Cargo.toml 2018-09-27T16:58:11.799412-07:00 +++ dirs-1.0.4/Cargo.toml 2018-11-09T23:57:46.413545+01:00
@@ -19,10 +19,5 @@ @@ -19,10 +19,5 @@
keywords = ["xdg", "basedir", "app_dirs", "path", "folder"] keywords = ["xdg", "basedir", "app_dirs", "path", "folder"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"

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

Loading…
Cancel
Save