You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-libssh2-sys/rust-libssh2-sys.spec

148 lines
4.1 KiB

5 years ago
# Generated by rust2rpm 13
%bcond_without check
%global debug_package %{nil}
%global crate libssh2-sys
Name: rust-%{crate}
5 years ago
Version: 0.2.17
Release: 1%{?dist}
Summary: Native bindings to the libssh2 library
7 years ago
# Upstream license specification: MIT/Apache-2.0
# https://github.com/alexcrichton/ssh2-rs/issues/75
License: MIT or ASL 2.0
URL: https://crates.io/crates/libssh2-sys
Source: %{crates_source}
7 years ago
# Initial patched metadata
# * No Windows
# * No vendored feature
7 years ago
Patch0: libssh2-sys-fix-metadata.diff
# Doesn't seem to be upstreamable
Patch1: 0001-build.rs-always-use-pkg-config.patch
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Native bindings to the libssh2 library.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
Requires: pkgconfig(libssh2)
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
5 years ago
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
# No bundled deps
rm -vrf libssh2/
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
echo 'pkgconfig(libssh2)'
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
5 years ago
* Wed Apr 29 2020 Josh Stone <jistone@redhat.com> - 0.2.17-1
- Update to 0.2.17
5 years ago
* Wed Mar 04 2020 Josh Stone <jistone@redhat.com> - 0.2.16-1
- Update to 0.2.16
* Sun Feb 23 11:38:17 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.2.15-1
- Update to 0.2.15
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5 years ago
* Wed Jan 15 2020 Josh Stone <jistone@redhat.com> - 0.2.14-1
- Update to 0.2.14
5 years ago
* Tue Nov 19 2019 Josh Stone <jistone@redhat.com> - 0.2.13-1
- Update to 0.2.13
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jun 20 12:36:15 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.11-5
- Regenerate
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Dec 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.11-3
- Run tests in infrastructure
* Sun Nov 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.11-2
- Adapt to new packaging
7 years ago
* Mon Sep 17 2018 Josh Stone <jistone@redhat.com> - 0.2.11-1
- Update to 0.2.11
7 years ago
* Tue Aug 07 2018 Josh Stone <jistone@redhat.com> - 0.2.10-1
- Update to 0.2.10
* Sat Jul 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.8-1
- Update to 0.2.8
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7 years ago
* Fri May 04 2018 Josh Stone <jistone@redhat.com> - 0.2.7-1
- Update to 0.2.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.6-2
- Rebuild for rust-packaging v5
* Thu Jun 15 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.6-1
- Update to 0.2.6
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.5-3
- Port to use rust-packaging
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.5-2
- Rebuild
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.5-1
- Initial package