b0b9566
# Generated by rust2rpm 26
5137d7f
%bcond_without check
bbff322
%global debug_package %{nil}
bbff322
bbff322
%global crate curl-sys
b0b9566
%global upstream_version 0.4.72+curl-8.6.0
bbff322
1a9d688
Name:           rust-curl-sys
b0b9566
Version:        0.4.72
6804cdb
Release:        %autorelease
bbff322
Summary:        Native bindings to the libcurl library
bbff322
bbff322
License:        MIT
bbff322
URL:            https://crates.io/crates/curl-sys
4f94d0e
Source:         %{crates_source %{crate} %{upstream_version}}
4f94d0e
# Automatically generated patch to strip dependencies and normalize metadata
1a9d688
Patch:          curl-sys-fix-metadata-auto.diff
1a9d688
# Manually created patch for downstream crate metadata changes
90a27b3
# * remove curl version suffix from crate version
90a27b3
# * drop windows-specific features and dependencies
90a27b3
# * drop optional dependencies and unused features (libnghttp2, mesalink)
90a27b3
# * drop rustls support (rustls is not supported on all architectures)
90a27b3
# * drop optional, unused zlib-ng support
1a9d688
Patch:          curl-sys-fix-metadata.diff
53a709e
# * remove code related to building vendored curl sources
53a709e
# * unconditionally use pkg-config to link with system libcurl
53a709e
Patch:          0001-unconditionally-use-pkg-config-to-link-with-system-l.patch
bbff322
4f94d0e
BuildRequires:  cargo-rpm-macros >= 24
b0b9566
BuildRequires:  pkgconfig(libcurl)
bbff322
5137d7f
%global _description %{expand:
5137d7f
Native bindings to the libcurl library.}
59d8c8a
59d8c8a
%description %{_description}
bbff322
bbff322
%package        devel
bbff322
Summary:        %{summary}
59d8c8a
BuildArch:      noarch
bbff322
Requires:       pkgconfig(libcurl)
59d8c8a
59d8c8a
%description    devel %{_description}
59d8c8a
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "%{crate}" crate.
59d8c8a
59d8c8a
%files          devel
e9e1800
%license %{crate_instdir}/LICENSE
e9e1800
%{crate_instdir}/
59d8c8a
59d8c8a
%package     -n %{name}+default-devel
59d8c8a
Summary:        %{summary}
bbff322
BuildArch:      noarch
bbff322
59d8c8a
%description -n %{name}+default-devel %{_description}
59d8c8a
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "default" feature of the "%{crate}" crate.
59d8c8a
59d8c8a
%files       -n %{name}+default-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
59d8c8a
1ad5bf0
%package     -n %{name}+http2-devel
59d8c8a
Summary:        %{summary}
59d8c8a
BuildArch:      noarch
59d8c8a
1ad5bf0
%description -n %{name}+http2-devel %{_description}
59d8c8a
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "http2" feature of the "%{crate}" crate.
59d8c8a
1ad5bf0
%files       -n %{name}+http2-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
59d8c8a
90a27b3
%package     -n %{name}+ntlm-devel
90a27b3
Summary:        %{summary}
90a27b3
BuildArch:      noarch
90a27b3
90a27b3
%description -n %{name}+ntlm-devel %{_description}
90a27b3
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "ntlm" feature of the "%{crate}" crate.
90a27b3
90a27b3
%files       -n %{name}+ntlm-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
90a27b3
9c59edd
%package     -n %{name}+openssl-sys-devel
9c59edd
Summary:        %{summary}
9c59edd
BuildArch:      noarch
9c59edd
9c59edd
%description -n %{name}+openssl-sys-devel %{_description}
9c59edd
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "openssl-sys" feature of the "%{crate}" crate.
9c59edd
9c59edd
%files       -n %{name}+openssl-sys-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
9c59edd
4a6aac6
%package     -n %{name}+poll_7_68_0-devel
4a6aac6
Summary:        %{summary}
4a6aac6
BuildArch:      noarch
4a6aac6
4a6aac6
%description -n %{name}+poll_7_68_0-devel %{_description}
4a6aac6
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "poll_7_68_0" feature of the "%{crate}" crate.
4a6aac6
4a6aac6
%files       -n %{name}+poll_7_68_0-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
4a6aac6
e4407c2
%package     -n %{name}+protocol-ftp-devel
e4407c2
Summary:        %{summary}
e4407c2
BuildArch:      noarch
e4407c2
e4407c2
%description -n %{name}+protocol-ftp-devel %{_description}
e4407c2
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "protocol-ftp" feature of the "%{crate}" crate.
e4407c2
e4407c2
%files       -n %{name}+protocol-ftp-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
e4407c2
80b2d53
%package     -n %{name}+spnego-devel
80b2d53
Summary:        %{summary}
80b2d53
BuildArch:      noarch
80b2d53
80b2d53
%description -n %{name}+spnego-devel %{_description}
80b2d53
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "spnego" feature of the "%{crate}" crate.
80b2d53
80b2d53
%files       -n %{name}+spnego-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
80b2d53
59d8c8a
%package     -n %{name}+ssl-devel
59d8c8a
Summary:        %{summary}
59d8c8a
BuildArch:      noarch
59d8c8a
59d8c8a
%description -n %{name}+ssl-devel %{_description}
59d8c8a
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "ssl" feature of the "%{crate}" crate.
59d8c8a
59d8c8a
%files       -n %{name}+ssl-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
bbff322
9c59edd
%package     -n %{name}+upkeep_7_62_0-devel
9c59edd
Summary:        %{summary}
9c59edd
BuildArch:      noarch
9c59edd
9c59edd
%description -n %{name}+upkeep_7_62_0-devel %{_description}
9c59edd
90a27b3
This package contains library source intended for building other packages which
90a27b3
use the "upkeep_7_62_0" feature of the "%{crate}" crate.
9c59edd
9c59edd
%files       -n %{name}+upkeep_7_62_0-devel
e9e1800
%ghost %{crate_instdir}/Cargo.toml
9c59edd
bbff322
%prep
4f94d0e
%autosetup -n %{crate}-%{upstream_version} -p1
fd5c189
%cargo_prep
4a6aac6
# remove bundled curl sources
da39c2c
rm -vr curl/
bbff322
5137d7f
%generate_buildrequires
5137d7f
%cargo_generate_buildrequires
5137d7f
bbff322
%build
bbff322
%cargo_build
bbff322
bbff322
%install
bbff322
%cargo_install
bbff322
bbff322
%if %{with check}
bbff322
%check
bbff322
%cargo_test
bbff322
%endif
bbff322
bbff322
%changelog
6804cdb
%autochangelog