diff --git a/ignore-fix-metadata.diff b/ignore-fix-metadata.diff index ed453b1..2db27ce 100644 --- a/ignore-fix-metadata.diff +++ b/ignore-fix-metadata.diff @@ -1,5 +1,5 @@ --- ignore-0.4.4/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ ignore-0.4.4/Cargo.toml 2018-09-08T23:40:02.288602+02:00 ++++ ignore-0.4.4/Cargo.toml 2018-10-28T02:14:34.635582+02:00 @@ -56,5 +56,3 @@ [features] diff --git a/rust-ignore.spec b/rust-ignore.spec index 2c9e2c0..7a5f8ed 100644 --- a/rust-ignore.spec +++ b/rust-ignore.spec @@ -1,5 +1,5 @@ # Generated by rust2rpm -# Tests are run in infrastructure +# * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.4.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Fast library for efficiently matching ignore files # Upstream license specification: Unlicense/MIT @@ -21,34 +21,63 @@ Patch0: ignore-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(crossbeam-channel) >= 0.2.4 with crate(crossbeam-channel) < 0.3.0) -BuildRequires: (crate(globset) >= 0.4.2 with crate(globset) < 0.5.0) -BuildRequires: (crate(lazy_static) >= 1.1.0 with crate(lazy_static) < 2.0.0) -BuildRequires: (crate(log) >= 0.4.5 with crate(log) < 0.5.0) -BuildRequires: (crate(memchr) >= 2.0.2 with crate(memchr) < 3.0.0) -BuildRequires: (crate(regex) >= 1.0.5 with crate(regex) < 2.0.0) -BuildRequires: (crate(same-file) >= 1.0.3 with crate(same-file) < 2.0.0) -BuildRequires: (crate(thread_local) >= 0.3.6 with crate(thread_local) < 0.4.0) -BuildRequires: (crate(walkdir) >= 2.2.5 with crate(walkdir) < 3.0.0) +BuildRequires: (crate(crossbeam-channel/default) >= 0.2.4 with crate(crossbeam-channel/default) < 0.3.0) +BuildRequires: (crate(globset/default) >= 0.4.2 with crate(globset/default) < 0.5.0) +BuildRequires: (crate(globset/simd-accel) >= 0.4.2 with crate(globset/simd-accel) < 0.5.0) +BuildRequires: (crate(lazy_static/default) >= 1.1.0 with crate(lazy_static/default) < 2.0.0) +BuildRequires: (crate(log/default) >= 0.4.5 with crate(log/default) < 0.5.0) +BuildRequires: (crate(memchr/default) >= 2.0.2 with crate(memchr/default) < 3.0.0) +BuildRequires: (crate(regex/default) >= 1.0.5 with crate(regex/default) < 2.0.0) +BuildRequires: (crate(same-file/default) >= 1.0.3 with crate(same-file/default) < 2.0.0) +BuildRequires: (crate(thread_local/default) >= 0.3.6 with crate(thread_local/default) < 0.4.0) +BuildRequires: (crate(walkdir/default) >= 2.2.5 with crate(walkdir/default) < 3.0.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(tempdir) >= 0.3.7 with crate(tempdir) < 0.4.0) +BuildRequires: (crate(tempdir/default) >= 0.3.7 with crate(tempdir/default) < 0.4.0) %endif -%description -%{summary}. +%global _description \ +A fast library for efficiently matching ignore files such as `.gitignore`\ +against file paths. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A fast library for efficiently matching ignore files such as `.gitignore` -against file paths. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license COPYING UNLICENSE LICENSE-MIT +%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 %{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}+simd-accel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+simd-accel-devel %{_description} + +This package contains library source intended for building other packages +which use "simd-accel" feature of "%{crate}" crate. + +%files -n %{name}+simd-accel-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -65,12 +94,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license COPYING UNLICENSE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Oct 28 2018 Igor Gnatenko - 0.4.4-2 +- Adapt to new packaging + * Sat Sep 08 2018 Igor Gnatenko - 0.4.4-1 - Update to 0.4.4