Blame rust-libslirp.spec

84c1674
# cargo test is disabled by default as it requires etherparse, and doesn't do much
84c1674
# make test / python scapy requires unshare and CLONE_NETNS which aren't allowed on koji
84c1674
%bcond_with check
84c1674
84c1674
%global crate libslirp
84c1674
84c1674
Name:           rust-%{crate}
84c1674
Version:        4.2.2
484b596
Release:        6%{?dist}
84c1674
Summary:        High-level bindings & helper process for libslirp
84c1674
84c1674
License:        MIT
84c1674
URL:            https://crates.io/crates/libslirp
84c1674
Source:         %{crates_source}
ff67fc7
# For rust-ipnetwork 0.17.0
ff67fc7
# https://gitlab.freedesktop.org/slirp/libslirp-rs/-/merge_requests/7
ff67fc7
Patch0:         libslirp-fix-metadata.diff
84c1674
84c1674
ExclusiveArch:  %{rust_arches}
84c1674
%if %{__cargo_skip_build}
84c1674
BuildArch:      noarch
84c1674
%endif
84c1674
84c1674
BuildRequires:  rust-packaging
84c1674
84c1674
%global _description %{expand:
84c1674
High-level bindings & helper process for libslirp.}
84c1674
84c1674
%description %{_description}
84c1674
84c1674
%if ! %{__cargo_skip_build}
78563d7
%package     -n %{crate}-helper
84c1674
Summary:        %{summary}
d363c5a
# * ASL 2.0
d363c5a
# * ASL 2.0 or MIT
d363c5a
# * BSD
d363c5a
# * MIT
d363c5a
# * MIT or ASL 2.0
d363c5a
# * Unlicense or MIT
d363c5a
License:        MIT and ASL 2.0 and BSD
84c1674
78563d7
%description -n %{crate}-helper %{_description}
84c1674
0fe7477
%files       -n %{crate}-helper
84c1674
%license LICENSE
84c1674
%{_bindir}/libslirp-helper
84c1674
%endif
84c1674
84c1674
%package        devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description    devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "%{crate}" crate.
84c1674
84c1674
%files          devel
84c1674
%license LICENSE
84c1674
%{cargo_registry}/%{crate}-%{version_no_tilde}/
84c1674
84c1674
%package     -n %{name}+default-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+default-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "default" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+default-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+dbus-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+dbus-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "dbus" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+dbus-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+ipnetwork-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+ipnetwork-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "ipnetwork" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+ipnetwork-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+lazy_static-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+lazy_static-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "lazy_static" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+lazy_static-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+libc-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+libc-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "libc" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+libc-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+libsystemd-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+libsystemd-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "libsystemd" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+libsystemd-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+mio-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+mio-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "mio" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+mio-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+mio-extras-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+mio-extras-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "mio-extras" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+mio-extras-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+nix-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+nix-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "nix" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+nix-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+slab-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+slab-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "slab" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+slab-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+structopt-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+structopt-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "structopt" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+structopt-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%package     -n %{name}+url-devel
84c1674
Summary:        %{summary}
84c1674
BuildArch:      noarch
84c1674
84c1674
%description -n %{name}+url-devel %{_description}
84c1674
84c1674
This package contains library source intended for building other packages
84c1674
which use "url" feature of "%{crate}" crate.
84c1674
84c1674
%files       -n %{name}+url-devel
84c1674
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
84c1674
84c1674
%prep
84c1674
%autosetup -n %{crate}-%{version_no_tilde} -p1
84c1674
%cargo_prep
84c1674
84c1674
%generate_buildrequires
84c1674
%cargo_generate_buildrequires
84c1674
84c1674
%build
84c1674
%cargo_build
84c1674
84c1674
%install
84c1674
%cargo_install
84c1674
84c1674
%if %{with check}
84c1674
%check
84c1674
%cargo_test
84c1674
%endif
84c1674
84c1674
%changelog
484b596
* Sun Aug 16 15:01:34 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.2.2-6
484b596
- Rebuild
484b596
674e07a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-5
674e07a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
674e07a
ff67fc7
* Fri Jul 24 2020 Dusty Mabe <dusty@dustymabe.com> - 4.2.2-4
ff67fc7
- Respin. We updated rust-ipnetwork to 0.17.0
ff67fc7
78563d7
* Tue May 12 2020 Igor Raits 
78563d7
- Rename subpackage to a libslirp-helper
78563d7
d363c5a
* Mon May 11 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 4.2.2-2
d363c5a
- Fixup license
d363c5a
84c1674
* Wed May 06 21:46:00 CEST 2020 Marc-André Lureau <marcandre.lureau@redhat.com> - 4.2.2-1
84c1674
- Initial package