parent
d108fff313
commit
8fb6973e74
@ -0,0 +1 @@
|
||||
/home-0.3.0.crate
|
@ -0,0 +1,20 @@
|
||||
--- home-0.3.0/Cargo.toml 1970-01-01T01:00:00+01:00
|
||||
+++ home-0.3.0/Cargo.toml 2018-01-13T17:54:25.352638+01:00
|
||||
@@ -18,17 +18,3 @@
|
||||
documentation = "https://docs.rs/home"
|
||||
license = "MIT/Apache-2.0"
|
||||
repository = "https://github.com/brson/home"
|
||||
-[target."cfg(windows)".dependencies.winapi]
|
||||
-version = "0.2.8"
|
||||
-
|
||||
-[target."cfg(windows)".dependencies.kernel32-sys]
|
||||
-version = "0.2.1"
|
||||
-
|
||||
-[target."cfg(windows)".dependencies.scopeguard]
|
||||
-version = "0.1.2"
|
||||
-
|
||||
-[target."cfg(windows)".dependencies.userenv-sys]
|
||||
-version = "0.2.0"
|
||||
-
|
||||
-[target."cfg(windows)".dependencies.advapi32-sys]
|
||||
-version = "0.2.0"
|
@ -0,0 +1,58 @@
|
||||
# Generated by rust2rpm
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate home
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.3.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Shared definitions of home directories
|
||||
|
||||
# https://github.com/brson/home/issues/2
|
||||
License: MIT or ASL 2.0
|
||||
URL: https://crates.io/crates/home
|
||||
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||
# Initial patched metadata
|
||||
# * No windows
|
||||
Patch0: home-0.3.0-fix-metadata.diff
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: rust-packaging
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel
|
||||
Shared definitions of home directories.
|
||||
|
||||
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
|
||||
%doc README.md
|
||||
%{cargo_registry}/%{crate}-%{version}/
|
||||
|
||||
%changelog
|
||||
* Sat Jan 13 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-1
|
||||
- Initial package
|
Loading…
Reference in new issue