Blame SPECS/nispor.spec

57ff79
Name:           nispor
7cd820
Version:        1.1.1
7cd820
Release:        1%{?dist}
57ff79
Summary:        API for network status querying
57ff79
License:        ASL 2.0
57ff79
URL:            https://github.com/nispor/nispor
57ff79
Source:         https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
57ff79
Source1:        %{name}-%{version}-vendor.tar.xz
57ff79
BuildRequires:  pkg-config
57ff79
BuildRequires:  python3-devel
57ff79
BuildRequires:  rust-toolset
57ff79
BuildRequires:  systemd-rpm-macros
57ff79
BuildRequires:  systemd-devel
57ff79
7cd820
Provides: bundled(crate(aho-corasick)) = 0.7.15
7cd820
Provides: bundled(crate(ansi_term)) = 0.11.0
7cd820
Provides: bundled(crate(anyhow)) = 1.0.34
7cd820
Provides: bundled(crate(atty)) = 0.2.14
7cd820
Provides: bundled(crate(autocfg)) = 1.0.1
7cd820
Provides: bundled(crate(bitflags)) = 1.2.1
7cd820
Provides: bundled(crate(byteorder)) = 1.3.4
7cd820
Provides: bundled(crate(byteordered)) = 0.5.0
7cd820
Provides: bundled(crate(bytes)) = 0.5.6
7cd820
Provides: bundled(crate(bytes)) = 1.0.1
7cd820
Provides: bundled(crate(cc)) = 1.0.66
7cd820
Provides: bundled(crate(cfg-if)) = 1.0.0
7cd820
Provides: bundled(crate(clap)) = 2.33.3
7cd820
Provides: bundled(crate(ctor)) = 0.1.16
7cd820
Provides: bundled(crate(difference)) = 2.0.0
7cd820
Provides: bundled(crate(dtoa)) = 0.4.6
7cd820
Provides: bundled(crate(env_logger)) = 0.8.3
7cd820
Provides: bundled(crate(futures)) = 0.3.12
7cd820
Provides: bundled(crate(futures-channel)) = 0.3.12
7cd820
Provides: bundled(crate(futures-core)) = 0.3.12
7cd820
Provides: bundled(crate(futures-executor)) = 0.3.12
7cd820
Provides: bundled(crate(futures-io)) = 0.3.12
7cd820
Provides: bundled(crate(futures-macro)) = 0.3.12
7cd820
Provides: bundled(crate(futures-sink)) = 0.3.12
7cd820
Provides: bundled(crate(futures-task)) = 0.3.12
7cd820
Provides: bundled(crate(futures-util)) = 0.3.12
7cd820
Provides: bundled(crate(hermit-abi)) = 0.1.17
7cd820
Provides: bundled(crate(humantime)) = 2.1.0
7cd820
Provides: bundled(crate(itoa)) = 0.4.6
7cd820
Provides: bundled(crate(libc)) = 0.2.93
7cd820
Provides: bundled(crate(linked-hash-map)) = 0.5.3
7cd820
Provides: bundled(crate(log)) = 0.4.14
7cd820
Provides: bundled(crate(memchr)) = 2.3.4
7cd820
Provides: bundled(crate(mio)) = 0.7.7
7cd820
Provides: bundled(crate(miow)) = 0.3.6
7cd820
Provides: bundled(crate(netlink-packet-core)) = 0.2.4
7cd820
Provides: bundled(crate(netlink-packet-route)) = 0.7.0
7cd820
Provides: bundled(crate(netlink-packet-utils)) = 0.4.0
7cd820
Provides: bundled(crate(netlink-proto)) = 0.6.0
7cd820
Provides: bundled(crate(netlink-sys)) = 0.6.0
7cd820
Provides: bundled(crate(nix)) = 0.19.1
7cd820
Provides: bundled(crate(ntapi)) = 0.3.6
7cd820
Provides: bundled(crate(num_cpus)) = 1.13.0
7cd820
Provides: bundled(crate(once_cell)) = 1.4.1
7cd820
Provides: bundled(crate(output_vt100)) = 0.1.2
7cd820
Provides: bundled(crate(paste)) = 1.0.2
7cd820
Provides: bundled(crate(pin-project-lite)) = 0.1.12
7cd820
Provides: bundled(crate(pin-project-lite)) = 0.2.4
7cd820
Provides: bundled(crate(pin-utils)) = 0.1.0
7cd820
Provides: bundled(crate(pretty_assertions)) = 0.6.1
7cd820
Provides: bundled(crate(proc-macro2)) = 1.0.26
7cd820
Provides: bundled(crate(proc-macro-hack)) = 0.5.19
7cd820
Provides: bundled(crate(proc-macro-nested)) = 0.1.6
7cd820
Provides: bundled(crate(quote)) = 1.0.7
7cd820
Provides: bundled(crate(regex)) = 1.4.6
7cd820
Provides: bundled(crate(regex-syntax)) = 0.6.23
7cd820
Provides: bundled(crate(rtnetlink)) = 0.7.0
7cd820
Provides: bundled(crate(ryu)) = 1.0.5
7cd820
Provides: bundled(crate(serde)) = 1.0.117
7cd820
Provides: bundled(crate(serde_derive)) = 1.0.117
7cd820
Provides: bundled(crate(serde_json)) = 1.0.59
7cd820
Provides: bundled(crate(serde_yaml)) = 0.8.14
7cd820
Provides: bundled(crate(slab)) = 0.4.2
7cd820
Provides: bundled(crate(socket2)) = 0.3.19
7cd820
Provides: bundled(crate(strsim)) = 0.8.0
7cd820
Provides: bundled(crate(syn)) = 1.0.69
7cd820
Provides: bundled(crate(termcolor)) = 1.1.2
7cd820
Provides: bundled(crate(textwrap)) = 0.11.0
7cd820
Provides: bundled(crate(thiserror)) = 1.0.22
7cd820
Provides: bundled(crate(thiserror-impl)) = 1.0.22
7cd820
Provides: bundled(crate(tokio)) = 0.2.25
7cd820
Provides: bundled(crate(tokio)) = 1.1.1
7cd820
Provides: bundled(crate(tokio-macros)) = 1.0.0
7cd820
Provides: bundled(crate(tokio-util)) = 0.2.0
7cd820
Provides: bundled(crate(unicode-width)) = 0.1.8
7cd820
Provides: bundled(crate(unicode-xid)) = 0.2.1
7cd820
Provides: bundled(crate(vec_map)) = 0.8.2
7cd820
Provides: bundled(crate(winapi)) = 0.3.9
7cd820
Provides: bundled(crate(winapi-i686-pc-windows-gnu)) = 0.4.0
7cd820
Provides: bundled(crate(winapi-util)) = 0.1.5
7cd820
Provides: bundled(crate(winapi-x86_64-pc-windows-gnu)) = 0.4.0
7cd820
Provides: bundled(crate(yaml-rust)) = 0.4.4
7cd820
57ff79
%description
57ff79
Unified interface for Linux network state querying.
57ff79
57ff79
%package -n     python3-%{name}
57ff79
Summary:        %{summary}
57ff79
Requires:       nispor = %{?epoch:%{epoch}:}%{version}-%{release}
57ff79
BuildArch:      noarch
57ff79
57ff79
%description -n python3-%{name}
57ff79
57ff79
This package contains python3 binding of %{name}.
57ff79
57ff79
%package        devel
57ff79
Summary:        %{summary}
57ff79
Requires:       nispor%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
57ff79
57ff79
%description devel
57ff79
57ff79
This package contains C binding of %{name}.
57ff79
57ff79
%prep
57ff79
%autosetup -p1
57ff79
57ff79
# Source1 is vendored dependencies
57ff79
%cargo_prep -V 1
57ff79
57ff79
# The cargo_prep will create `.cargo/config` which take precedence over
57ff79
# `.cargo/config.toml` shipped by upstream which fix the SONAME of cdylib.
57ff79
# To workaround that, merge upstream rustflags into cargo_prep created one.
57ff79
_FLAGS=`sed -ne 's/rustflags = "\(.\+\)"/\1/p' .cargo/config.toml`
57ff79
sed -i -e "s/rustflags = \[\(.\+\), \]$/rustflags = [\1, \"$_FLAGS\"]/" \
57ff79
    .cargo/config
57ff79
57ff79
%build
57ff79
make
57ff79
pushd src/python
57ff79
%py3_build
57ff79
popd
57ff79
57ff79
%post
57ff79
/sbin/ldconfig
57ff79
57ff79
%postun
57ff79
/sbin/ldconfig
57ff79
57ff79
%install
57ff79
env SKIP_PYTHON_INSTALL=1 PREFIX=%{_prefix} LIBDIR=%{_libdir} %make_install
57ff79
57ff79
pushd src/python
57ff79
%py3_install
57ff79
popd
57ff79
57ff79
%files
57ff79
%doc AUTHORS CHANGELOG DEVEL.md README.md
57ff79
%license LICENSE
57ff79
%{_bindir}/npc
57ff79
%{_libdir}/libnispor.so.*
57ff79
57ff79
%files -n       python3-%{name}
57ff79
%license LICENSE
57ff79
%{python3_sitelib}/nispor*
57ff79
57ff79
%files devel
57ff79
%license LICENSE
57ff79
%{_libdir}/libnispor.so
57ff79
%{_includedir}/nispor.h
57ff79
%{_libdir}/pkgconfig/nispor.pc
57ff79
57ff79
%changelog
7cd820
* Sat Jun 19 2021 Gris Ge <fge@redhat.com> - 1.1.1-1
7cd820
- Upgrade to 1.1.1. RHBZ#1942459
7cd820
7cd820
* Fri Jun 18 2021 Gris Ge <fge@redhat.com> - 1.1.0-3
7cd820
- Include SPEC information for bundled rust crates. RHBZ#1927789
7cd820
7cd820
* Tue Jun 08 2021 Gris Ge <fge@redhat.com> - 1.1.0-2
7cd820
- Fix cli output, loopback interface and ethtool features.
7cd820
7cd820
* Tue May 25 2021 Wen Liang <wenliang@redhat.com> - 1.1.0-1
7cd820
- Upgrade to 1.1.0. RHBZ#1942459
7cd820
57ff79
* Thu Feb 18 2021 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.2-4
57ff79
- Remove the varlink support. RHBZ#1926941
57ff79
57ff79
* Tue Feb 02 2021 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.1-3
57ff79
- Add support to bond vlan+srcmac tx hashing option. RHBZ#1919986
57ff79
57ff79
* Fri Nov 13 2020 Gris Ge <fge@redhat.com> - 1.0.1-2
57ff79
- Upload new cargo vendor tarbal without crates used for windows platform.
57ff79
57ff79
* Tue Nov 10 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.1-1
57ff79
- Upgrade to 1.0.1
57ff79
57ff79
* Mon Nov 09 2020 Gris Ge <fge@redhat.com> - 1.0.0-1
57ff79
- Upgrade to 1.0.0
57ff79
57ff79
* Mon Oct 19 2020 Gris Ge <fge@redhat.com> - 0.6.1-2
57ff79
- Rebuild to load the compose settings.
57ff79
57ff79
* Tue Oct 13 2020 Gris Ge <fge@redhat.com> - 0.6.1-1
57ff79
- Upgrade to 0.6.1
57ff79
57ff79
* Fri Oct 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.6.0-2
57ff79
- VXLAN Python fix incorrect destination port
57ff79
57ff79
* Fri Oct 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.6.0-1
57ff79
- Upgrade to 0.6.0
57ff79
57ff79
* Sun Sep 20 2020 Gris Ge <fge@redhat.com> - 0.5.1-1
57ff79
- Upgrade to 0.5.1
57ff79
57ff79
* Thu Sep 17 2020 Gris Ge <fge@redhat.com> - 0.5.0-3
57ff79
- Trigger rebuild for CI gating
57ff79
57ff79
* Tue Sep 08 2020 Gris Ge <fge@redhat.com> - 0.5.0-2
57ff79
- Fix the python3-nispor requirement
57ff79
57ff79
* Fri Sep 04 2020 Gris Ge <fge@redhat.com> - 0.5.0-1
57ff79
- Upgrade to 0.5.0
57ff79
57ff79
* Sat Aug 29 2020 Gris Ge <fge@redhat.com> - 0.4.0-3
57ff79
- Fix the ldconfig
57ff79
57ff79
* Wed Aug 26 2020 Gris Ge <fge@redhat.com> - 0.4.0-2
57ff79
- Add ldconfig to post and postun scripts
57ff79
57ff79
* Wed Aug 26 2020 Gris Ge <fge@redhat.com> - 0.4.0-1
57ff79
- Upgrade to 0.4.0
57ff79
57ff79
* Mon Aug 17 2020 Gris Ge <fge@redhat.com> - 0.3.0-2
57ff79
- Fix python linux bridge vlan filtering
57ff79
57ff79
* Sun Aug 16 2020 Gris Ge <fge@redhat.com> - 0.3.0-1
57ff79
- Upgrade to 0.3.0
57ff79
57ff79
* Tue Aug 11 2020 Gris Ge <fge@redhat.com> - 0.2.0-1
57ff79
- Upgrade to 0.2.0
57ff79
57ff79
* Thu Jul 09 2020 Gris Ge <fge@redhat.com> - 0.1.1-2
57ff79
- Include license and documents
57ff79
57ff79
* Wed Jul 08 2020 Gris Ge <fge@redhat.com> - 0.1.1-1
57ff79
- Initial build.