|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.2.3
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Fast line oriented regex searching as a library
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Unlicense/MIT
|
|
|
|
@ -22,31 +22,71 @@ Patch0: grep-fix-metadata.diff
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
# [dependencies]
|
|
|
|
|
BuildRequires: (crate(grep-cli) >= 0.1.1 with crate(grep-cli) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-matcher) >= 0.1.1 with crate(grep-matcher) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-pcre2) >= 0.1.2 with crate(grep-pcre2) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-printer) >= 0.1.1 with crate(grep-printer) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-regex) >= 0.1.1 with crate(grep-regex) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-searcher) >= 0.1.1 with crate(grep-searcher) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-cli/default) >= 0.1.1 with crate(grep-cli/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-matcher/default) >= 0.1.1 with crate(grep-matcher/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-pcre2/default) >= 0.1.2 with crate(grep-pcre2/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-printer/default) >= 0.1.1 with crate(grep-printer/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-regex/default) >= 0.1.1 with crate(grep-regex/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(grep-searcher/default) >= 0.1.1 with crate(grep-searcher/default) < 0.2.0)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
# [dev-dependencies]
|
|
|
|
|
BuildRequires: (crate(termcolor) >= 1.0.0 with crate(termcolor) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(walkdir) >= 2.2.2 with crate(walkdir) < 3.0.0)
|
|
|
|
|
BuildRequires: (crate(termcolor/default) >= 1.0.0 with crate(termcolor/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(walkdir/default) >= 2.2.2 with crate(walkdir/default) < 3.0.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
%global _description \
|
|
|
|
|
Fast line oriented regex searching as a library.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Fast line oriented regex searching as a library.
|
|
|
|
|
%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}+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
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
@ -63,12 +103,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 <ignatenkobrain@fedoraproject.org> - 0.2.3-3
|
|
|
|
|
- Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.3-2
|
|
|
|
|
- Run tests in infrastructure
|
|
|
|
|
|
|
|
|
|