Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel10
Igor Gnatenko 6 years ago
parent 4786b0393f
commit 158b33df4a
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -0,0 +1,5 @@
[DEFAULT]
buildrequires =
pkgconfig(libssh2)
lib.requires =
pkgconfig(libssh2)

@ -1,5 +1,5 @@
--- libssh2-sys-0.2.11/Cargo.toml 1969-12-31T16:00:00-08:00 --- libssh2-sys-0.2.11/Cargo.toml 1970-01-01T01:00:00+01:00
+++ libssh2-sys-0.2.11/Cargo.toml 2018-09-17T15:11:54.418385-07:00 +++ libssh2-sys-0.2.11/Cargo.toml 2018-11-04T17:50:31.913289+01:00
@@ -33,7 +33,5 @@ @@ -33,7 +33,5 @@
[build-dependencies.pkg-config] [build-dependencies.pkg-config]

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.2.11 Version: 0.2.11
Release: 1%{?dist} Release: 2%{?dist}
Summary: Native bindings to the libssh2 library Summary: Native bindings to the libssh2 library
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -17,34 +17,48 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{
# Initial patched metadata # Initial patched metadata
# * No Windows # * No Windows
Patch0: libssh2-sys-fix-metadata.diff Patch0: libssh2-sys-fix-metadata.diff
# # Doesn't seem to be upstreamable # Doesn't seem to be upstreamable
Patch1: 0001-build.rs-always-use-pkg-config.patch Patch1: 0001-build.rs-always-use-pkg-config.patch
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
# [dependencies] BuildRequires: (crate(cc/default) >= 1.0.25 with crate(cc/default) < 2.0.0)
BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
BuildRequires: (crate(libz-sys) >= 1.0.21 with crate(libz-sys) < 2.0.0) BuildRequires: (crate(libz-sys/default) >= 1.0.21 with crate(libz-sys/default) < 2.0.0)
BuildRequires: (crate(openssl-sys) >= 0.9.35 with crate(openssl-sys) < 0.10.0) BuildRequires: (crate(openssl-sys/default) >= 0.9.35 with crate(openssl-sys/default) < 0.10.0)
# [build-dependencies] BuildRequires: (crate(pkg-config/default) >= 0.3.11 with crate(pkg-config/default) < 0.4.0)
BuildRequires: (crate(cc) >= 1.0.25 with crate(cc) < 2.0.0)
BuildRequires: (crate(pkg-config) >= 0.3.11 with crate(pkg-config) < 0.4.0)
BuildRequires: pkgconfig(libssh2) BuildRequires: pkgconfig(libssh2)
%description %global _description \
%{summary}. Native bindings to the libssh2 library.
%description %{_description}
%package devel %package devel
Summary: %{summary} Summary: %{summary}
BuildArch: noarch
Requires: pkgconfig(libssh2) Requires: pkgconfig(libssh2)
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%{cargo_registry}/%{crate}-%{version}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch BuildArch: noarch
%description devel %description -n %{name}+default-devel %{_description}
Native bindings to the libssh2 library.
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} -N %autosetup -n %{crate}-%{version} -N
@ -65,10 +79,10 @@ rm -vrf libssh2/
%cargo_test %cargo_test
%endif %endif
%files devel
%{cargo_registry}/%{crate}-%{version}/
%changelog %changelog
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.11-2
- Adapt to new packaging
* Mon Sep 17 2018 Josh Stone <jistone@redhat.com> - 0.2.11-1 * Mon Sep 17 2018 Josh Stone <jistone@redhat.com> - 0.2.11-1
- Update to 0.2.11 - Update to 0.2.11

Loading…
Cancel
Save