diff --git a/.gitignore b/.gitignore index ee29d31..8f641a1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /directories-1.0.1.crate /directories-1.0.2.crate +/directories-2.0.1.crate diff --git a/directories-fix-metadata.diff b/directories-fix-metadata.diff deleted file mode 100644 index 1cda27f..0000000 --- a/directories-fix-metadata.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- directories-1.0.2/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ directories-1.0.2/Cargo.toml 2018-11-03T14:21:31.364214+01: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"] diff --git a/rust-directories.spec b/rust-directories.spec index a4cadcd..1a2c552 100644 --- a/rust-directories.spec +++ b/rust-directories.spec @@ -1,37 +1,32 @@ -# Generated by rust2rpm -# * Tests are run in infrastructure -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate directories Name: rust-%{crate} -Version: 1.0.2 -Release: 3%{?dist} +Version: 2.0.1 +Release: 1%{?dist} Summary: Library that provides platform-specific standard locations of directories # Upstream license specification: MIT OR 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 +Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) -%if %{with check} -BuildRequires: (crate(bencher/default) >= 0.1.5 with crate(bencher/default) < 0.2.0) -%endif -%global _description \ -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. +%global _description %{expand: +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} @@ -62,9 +57,12 @@ which use "default" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -77,6 +75,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Sat Jun 22 13:15:39 CEST 2019 Igor Gnatenko - 2.0.1-1 +- Update to 2.0.1 + * Sat Feb 02 2019 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index e2c8086..b81e14f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (directories-1.0.2.crate) = 6b1ed06a66e43115c5446ad19d6960ae6ed7956982b23727422ed49e285ba0b86ec9721a83a7949772faf7d1db28abb499f0983c53e70da529a54ef7fadb26f5 +SHA512 (directories-2.0.1.crate) = d3f5c89f4b9040094fe5fa1a6feaaa00585e22446baa3cf22ac772e68db6297efb3efbda906d286c32c923e0b17a852854a3503768eaf24289dbe2a3bde2a23a