Adapt to new packaging

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

@ -1,5 +1,5 @@
--- libm-0.1.2/Cargo.toml 1970-01-01T01:00:00+01:00 --- libm-0.1.2/Cargo.toml 1970-01-01T01:00:00+01:00
+++ libm-0.1.2/Cargo.toml 2018-09-10T11:04:32.801965+02:00 +++ libm-0.1.2/Cargo.toml 2019-02-04T10:03:29.520964+01:00
@@ -20,3 +20,4 @@ @@ -20,3 +20,4 @@
categories = ["no-std"] categories = ["no-std"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"

@ -1,18 +1,19 @@
# Generated by rust2rpm # Generated by rust2rpm
%bcond_without check # * Tests are run in infrastructure
%bcond_with check
%global debug_package %{nil} %global debug_package %{nil}
%global crate libm %global crate libm
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.1.2 Version: 0.1.2
Release: 2%{?dist} Release: 3%{?dist}
Summary: libm in pure Rust Summary: libm in pure Rust
# Upstream license specification: MIT OR Apache-2.0 # Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/libm URL: https://crates.io/crates/libm
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source: %{crates_source}
# Initial patched metadata # Initial patched metadata
# * Exclude ci/, https://github.com/japaric/libm/pull/148 # * Exclude ci/, https://github.com/japaric/libm/pull/148
Patch0: libm-fix-metadata.diff Patch0: libm-fix-metadata.diff
@ -21,21 +22,39 @@ ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
%description %global _description \
%{summary}. libm in pure Rust.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
libm in pure Rust.
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-MIT LICENSE-APACHE
%doc README.md CHANGELOG.md CONTRIBUTING.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_no_tilde} -p1
%cargo_prep %cargo_prep
%build %build
@ -49,12 +68,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md CHANGELOG.md CONTRIBUTING.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Mon Feb 04 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.2-3
- Adapt for new packaging
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save