Adapt to new packaging

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

@ -1,6 +1,11 @@
--- memmap-0.6.2/Cargo.toml 1970-01-01T01:00:00+01:00 --- memmap-0.6.2/Cargo.toml 1970-01-01T01:00:00+01:00
+++ memmap-0.6.2/Cargo.toml 2018-01-07T02:00:23.956247+01:00 +++ memmap-0.6.2/Cargo.toml 2018-10-28T02:57:40.175231+02:00
@@ -23,9 +23,6 @@ @@ -19,13 +19,11 @@
keywords = ["mmap", "memory-map", "io", "file"]
license = "MIT/Apache-2.0"
repository = "https://github.com/danburkert/memmap-rs"
+exclude = ["/ci/*", "/.appveyor.yml", "/.travis.yml"]
[dev-dependencies.tempdir]
version = "0.3" version = "0.3"
[target."cfg(unix)".dependencies.libc] [target."cfg(unix)".dependencies.libc]
version = "0.2" version = "0.2"

@ -7,38 +7,55 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.6.2 Version: 0.6.2
Release: 5%{?dist} Release: 6%{?dist}
Summary: Cross-platform Rust API for memory-mapped file IO Summary: Cross-platform Rust API for memory-mapped file IO
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/memmap URL: https://crates.io/crates/memmap
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata # Initial patched metadata
# * No windows # * No windows
Patch0: memmap-0.6.2-fix-metadata.diff Patch0: memmap-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)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0)
BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0)
%endif %endif
%description %global _description \
%{summary}. Cross-platform Rust API for memory-mapped file IO.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Cross-platform Rust API for memory-mapped file IO.
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
%{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,13 +72,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/ci
%changelog %changelog
* Sun Oct 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.2-6
- Adapt to new packaging
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.2-5 * Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.2-5
- Run tests in infrastructure - Run tests in infrastructure

Loading…
Cancel
Save