Adapt to new packaging

epel9
Josh Stone 6 years ago
parent 65daa748df
commit bc1818d39b

@ -7,7 +7,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.8.2 Version: 0.8.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: Backend for an HTTP transport in libgit2 powered by libcurl Summary: Backend for an HTTP transport in libgit2 powered by libcurl
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -18,33 +18,48 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(curl/default) >= 0.4.0 with crate(curl/default) < 0.5.0)
BuildRequires: (crate(curl) >= 0.4.0 with crate(curl) < 0.5.0)
BuildRequires: (crate(git2) >= 0.7.0 with crate(git2) < 0.8.0) BuildRequires: (crate(git2) >= 0.7.0 with crate(git2) < 0.8.0)
BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0) BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
BuildRequires: (crate(url) >= 1.0.0 with crate(url) < 2.0.0) BuildRequires: (crate(url/default) >= 1.0.0 with crate(url/default) < 2.0.0)
%if %{with check} %if %{with check}
# [dev-dependencies] BuildRequires: (crate(civet/default) >= 0.11.0 with crate(civet/default) < 0.12.0)
BuildRequires: (crate(civet) >= 0.11.0 with crate(civet) < 0.12.0) BuildRequires: (crate(conduit-git-http-backend/default) >= 0.8.0 with crate(conduit-git-http-backend/default) < 0.9.0)
BuildRequires: (crate(conduit) >= 0.8.0 with crate(conduit) < 0.9.0) BuildRequires: (crate(conduit/default) >= 0.8.0 with crate(conduit/default) < 0.9.0)
BuildRequires: (crate(conduit-git-http-backend) >= 0.8.0 with crate(conduit-git-http-backend) < 0.9.0) BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0)
BuildRequires: (crate(tempfile) >= 3.0.0 with crate(tempfile) < 4.0.0)
%endif %endif
%description %global _description \
%{summary}. Backend for an HTTP transport in libgit2 powered by libcurl.\
\
Intended to be used with the git2 crate.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description devel %{_description}
Backend for an HTTP transport in libgit2 powered by libcurl.
Intended to be used with the git2 crate. This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE-MIT LICENSE-APACHE
%{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
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version} -p1
@ -61,11 +76,10 @@ which use %{crate} from crates.io.
%cargo_test %cargo_test
%endif %endif
%files devel
%license LICENSE-MIT LICENSE-APACHE
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Mon Nov 12 2018 Josh Stone <jistone@redhat.com> - 0.8.2-2
- Adapt to new packaging
* Thu Oct 11 2018 Josh Stone <jistone@redhat.com> - 0.8.2-1 * Thu Oct 11 2018 Josh Stone <jistone@redhat.com> - 0.8.2-1
- Update to 0.8.2 - Update to 0.8.2

Loading…
Cancel
Save