Adapt to new packaging

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

@ -6,39 +6,69 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.1.40 Version: 0.1.40
Release: 2%{?dist} Release: 3%{?dist}
Summary: Utilities for working with time-related functions in Rust Summary: Utilities for working with time-related functions in Rust
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/time URL: https://crates.io/crates/time
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/redox # * No windows/redox
Patch0: time-0.1.40-fix-metadata.diff # * Exclude CI files, https://github.com/rust-lang-deprecated/time/pull/170
Patch0: time-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(libc/default) >= 0.2.1 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(libc) >= 0.2.1 with crate(libc) < 0.3.0) BuildRequires: (crate(rustc-serialize/default) >= 0.3.0 with crate(rustc-serialize/default) < 0.4.0)
BuildRequires: (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0)
%endif %endif
%description %global _description \
%{summary}. Utilities for working with time-related functions in Rust.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Utilities for working with time-related functions in Rust.
This package contains library source intended for building other packages
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 This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+rustc-serialize-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rustc-serialize-devel %{_description}
This package contains library source intended for building other packages
which use "rustc-serialize" feature of "%{crate}" crate.
%files -n %{name}+rustc-serialize-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -55,13 +85,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}/appveyor.yml
%changelog %changelog
* Wed Oct 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.40-3
- Adapt to new packaging
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.40-2 * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.40-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

@ -1,6 +1,14 @@
--- time-0.1.40/Cargo.toml 1970-01-01T01:00:00+01:00 --- time-0.1.40/Cargo.toml 1970-01-01T01:00:00+01:00
+++ time-0.1.40/Cargo.toml 2018-05-12T15:37:08.034131+02:00 +++ time-0.1.40/Cargo.toml 2018-10-31T12:07:30.284075+01:00
@@ -28,14 +28,6 @@ @@ -19,6 +19,7 @@
documentation = "https://doc.rust-lang.org/time"
license = "MIT/Apache-2.0"
repository = "https://github.com/rust-lang/time"
+exclude = ["/.travis.yml", "/appveyor.yml"]
[dependencies.libc]
version = "0.2.1"
@@ -28,14 +29,6 @@
[dev-dependencies.log] [dev-dependencies.log]
version = "0.4" version = "0.4"
Loading…
Cancel
Save