Adapt to new packaging

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

@ -6,35 +6,53 @@
Name: rust-%{crate}
Version: 3.3.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Get a unique thread ID
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/thread-id
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata
# * No windows
# * No redox
Patch0: thread-id-3.3.0-fix-metadata.diff
Patch0: thread-id-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(libc) >= 0.2.6 with crate(libc) < 0.3.0)
BuildRequires: (crate(libc/default) >= 0.2.6 with crate(libc/default) < 0.3.0)
%description
%{summary}.
%global _description \
Get a unique thread ID.
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
Get a unique thread ID.
%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-mit license-apache
%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
@ -51,12 +69,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
%files devel
%license license-mit license-apache
%doc readme.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Sat Oct 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.3.0-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

@ -1,5 +1,5 @@
--- thread-id-3.3.0/Cargo.toml 2018-03-23T05:49:40-07:00
+++ thread-id-3.3.0/Cargo.toml 2018-03-23T17:39:59.408637-07:00
--- thread-id-3.3.0/Cargo.toml 2018-03-23T13:49:40+01:00
+++ thread-id-3.3.0/Cargo.toml 2018-10-27T23:58:09.354520+02:00
@@ -15,9 +15,3 @@
[target.'cfg(unix)'.dependencies]
Loading…
Cancel
Save