Adapt to new packaging

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

@ -1,5 +1,5 @@
--- grep-0.2.3/Cargo.toml 1970-01-01T01:00:00+01:00 --- grep-0.2.3/Cargo.toml 1970-01-01T01:00:00+01:00
+++ grep-0.2.3/Cargo.toml 2018-09-09T00:04:18.530025+02:00 +++ grep-0.2.3/Cargo.toml 2018-10-28T08:56:47.934212+01:00
@@ -39,17 +39,6 @@ @@ -39,17 +39,6 @@
[dependencies.grep-searcher] [dependencies.grep-searcher]

@ -7,7 +7,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.2.3 Version: 0.2.3
Release: 2%{?dist} Release: 3%{?dist}
Summary: Fast line oriented regex searching as a library Summary: Fast line oriented regex searching as a library
# Upstream license specification: Unlicense/MIT # Upstream license specification: Unlicense/MIT
@ -22,31 +22,71 @@ Patch0: grep-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(grep-cli/default) >= 0.1.1 with crate(grep-cli/default) < 0.2.0)
BuildRequires: (crate(grep-cli) >= 0.1.1 with crate(grep-cli) < 0.2.0) BuildRequires: (crate(grep-matcher/default) >= 0.1.1 with crate(grep-matcher/default) < 0.2.0)
BuildRequires: (crate(grep-matcher) >= 0.1.1 with crate(grep-matcher) < 0.2.0) BuildRequires: (crate(grep-pcre2/default) >= 0.1.2 with crate(grep-pcre2/default) < 0.2.0)
BuildRequires: (crate(grep-pcre2) >= 0.1.2 with crate(grep-pcre2) < 0.2.0) BuildRequires: (crate(grep-printer/default) >= 0.1.1 with crate(grep-printer/default) < 0.2.0)
BuildRequires: (crate(grep-printer) >= 0.1.1 with crate(grep-printer) < 0.2.0) BuildRequires: (crate(grep-regex/default) >= 0.1.1 with crate(grep-regex/default) < 0.2.0)
BuildRequires: (crate(grep-regex) >= 0.1.1 with crate(grep-regex) < 0.2.0) BuildRequires: (crate(grep-searcher/default) >= 0.1.1 with crate(grep-searcher/default) < 0.2.0)
BuildRequires: (crate(grep-searcher) >= 0.1.1 with crate(grep-searcher) < 0.2.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(termcolor/default) >= 1.0.0 with crate(termcolor/default) < 2.0.0)
BuildRequires: (crate(termcolor) >= 1.0.0 with crate(termcolor) < 2.0.0) BuildRequires: (crate(walkdir/default) >= 2.2.2 with crate(walkdir/default) < 3.0.0)
BuildRequires: (crate(walkdir) >= 2.2.2 with crate(walkdir) < 3.0.0)
%endif %endif
%description %global _description \
%{summary}. Fast line oriented regex searching as a library.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Fast line oriented regex searching as a library.
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 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}+grep-pcre2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+grep-pcre2-devel %{_description}
This package contains library source intended for building other packages
which use "grep-pcre2" feature of "%{crate}" crate.
%files -n %{name}+grep-pcre2-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%package -n %{name}+pcre2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pcre2-devel %{_description}
This package contains library source intended for building other packages
which use "pcre2" feature of "%{crate}" crate.
%files -n %{name}+pcre2-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -63,12 +103,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license COPYING UNLICENSE LICENSE-MIT
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sun Oct 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.3-3
- Rebuild
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.3-2 * Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.3-2
- Run tests in infrastructure - Run tests in infrastructure

Loading…
Cancel
Save