Blame SPECS/nispor.spec

57d230
Name:           nispor
012169
Version:        1.2.10
2e8bd9
Release:        1%{?dist}
57d230
Summary:        API for network status querying
57d230
License:        ASL 2.0
57d230
URL:            https://github.com/nispor/nispor
57d230
Source:         https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
012169
Source1:        https://github.com/nispor/nispor/releases/download/v%{version}/nispor-vendor-%{version}.tar.xz
57d230
BuildRequires:  pkg-config
57d230
BuildRequires:  python3-devel
57d230
BuildRequires:  rust-toolset
57d230
BuildRequires:  systemd-rpm-macros
57d230
BuildRequires:  systemd-devel
57d230
012169
Provides: bundled(crate(aho-corasick)) = 0.7.20
012169
Provides: bundled(crate(anyhow)) = 1.0.68
57d230
Provides: bundled(crate(atty)) = 0.2.14
708162
Provides: bundled(crate(autocfg)) = 1.1.0
708162
Provides: bundled(crate(bitflags)) = 1.3.2
708162
Provides: bundled(crate(byteorder)) = 1.4.3
012169
Provides: bundled(crate(bytes)) = 1.3.0
57d230
Provides: bundled(crate(cfg-if)) = 1.0.0
012169
Provides: bundled(crate(clap)) = 3.2.23
012169
Provides: bundled(crate(clap_lex)) = 0.2.4
012169
Provides: bundled(crate(diff)) = 0.1.13
012169
Provides: bundled(crate(env_logger)) = 0.9.3
012169
Provides: bundled(crate(ethtool)) = 0.2.4
012169
Provides: bundled(crate(futures)) = 0.3.26
012169
Provides: bundled(crate(futures-channel)) = 0.3.26
012169
Provides: bundled(crate(futures-core)) = 0.3.26
012169
Provides: bundled(crate(futures-executor)) = 0.3.26
012169
Provides: bundled(crate(futures-io)) = 0.3.26
012169
Provides: bundled(crate(futures-macro)) = 0.3.26
012169
Provides: bundled(crate(futures-sink)) = 0.3.26
012169
Provides: bundled(crate(futures-task)) = 0.3.26
012169
Provides: bundled(crate(futures-util)) = 0.3.26
012169
Provides: bundled(crate(genetlink)) = 0.2.4
012169
Provides: bundled(crate(hashbrown)) = 0.12.3
57d230
Provides: bundled(crate(humantime)) = 2.1.0
012169
Provides: bundled(crate(indexmap)) = 1.9.2
012169
Provides: bundled(crate(itoa)) = 1.0.5
012169
Provides: bundled(crate(libc)) = 0.2.139
708162
Provides: bundled(crate(log)) = 0.4.17
708162
Provides: bundled(crate(memchr)) = 2.5.0
012169
Provides: bundled(crate(mio)) = 0.8.5
012169
Provides: bundled(crate(mptcp-pm)) = 0.1.2
012169
Provides: bundled(crate(netlink-packet-core)) = 0.5.0
012169
Provides: bundled(crate(netlink-packet-generic)) = 0.3.2
012169
Provides: bundled(crate(netlink-packet-route)) = 0.15.0
012169
Provides: bundled(crate(netlink-packet-utils)) = 0.5.2
012169
Provides: bundled(crate(netlink-proto)) = 0.11.1
012169
Provides: bundled(crate(netlink-sys)) = 0.8.4
012169
Provides: bundled(crate(nix)) = 0.26.2
012169
Provides: bundled(crate(once_cell)) = 1.17.0
012169
Provides: bundled(crate(os_str_bytes)) = 6.4.1
012169
Provides: bundled(crate(paste)) = 1.0.11
708162
Provides: bundled(crate(pin-project-lite)) = 0.2.9
57d230
Provides: bundled(crate(pin-utils)) = 0.1.0
012169
Provides: bundled(crate(pretty_assertions)) = 1.3.0
012169
Provides: bundled(crate(proc-macro2)) = 1.0.50
012169
Provides: bundled(crate(quote)) = 1.0.23
012169
Provides: bundled(crate(regex)) = 1.7.1
012169
Provides: bundled(crate(regex-syntax)) = 0.6.28
012169
Provides: bundled(crate(rtnetlink)) = 0.12.0
012169
Provides: bundled(crate(ryu)) = 1.0.12
012169
Provides: bundled(crate(serde)) = 1.0.152
012169
Provides: bundled(crate(serde_derive)) = 1.0.152
012169
Provides: bundled(crate(serde_json)) = 1.0.91
012169
Provides: bundled(crate(serde_yaml)) = 0.9.17
012169
Provides: bundled(crate(slab)) = 0.4.7
012169
Provides: bundled(crate(socket2)) = 0.4.7
012169
Provides: bundled(crate(static_assertions)) = 1.1.0
708162
Provides: bundled(crate(strsim)) = 0.10.0
012169
Provides: bundled(crate(syn)) = 1.0.107
012169
Provides: bundled(crate(termcolor)) = 1.2.0
012169
Provides: bundled(crate(textwrap)) = 0.16.0
012169
Provides: bundled(crate(thiserror)) = 1.0.38
012169
Provides: bundled(crate(thiserror-impl)) = 1.0.38
012169
Provides: bundled(crate(tokio)) = 1.25.0
012169
Provides: bundled(crate(tokio-macros)) = 1.8.2
012169
Provides: bundled(crate(unicode-ident)) = 1.0.6
012169
Provides: bundled(crate(unsafe-libyaml)) = 0.2.5
012169
Provides: bundled(crate(yansi)) = 0.5.1
57d230
57d230
%description
57d230
Unified interface for Linux network state querying.
57d230
57d230
%package -n     python3-%{name}
57d230
Summary:        %{summary}
57d230
Requires:       nispor = %{?epoch:%{epoch}:}%{version}-%{release}
57d230
BuildArch:      noarch
57d230
57d230
%description -n python3-%{name}
57d230
57d230
This package contains python3 binding of %{name}.
57d230
57d230
%package        devel
57d230
Summary:        %{summary}
57d230
Requires:       nispor%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
57d230
57d230
%description devel
57d230
57d230
This package contains C binding of %{name}.
57d230
57d230
%prep
57d230
%autosetup -p1
57d230
57d230
# Source1 is vendored dependencies
57d230
%cargo_prep -V 1
57d230
57d230
# The cargo_prep will create `.cargo/config` which take precedence over
57d230
# `.cargo/config.toml` shipped by upstream which fix the SONAME of cdylib.
57d230
# To workaround that, merge upstream rustflags into cargo_prep created one.
57d230
_FLAGS=`sed -ne 's/rustflags = "\(.\+\)"/\1/p' .cargo/config.toml`
57d230
sed -i -e "s/rustflags = \[\(.\+\), \]$/rustflags = [\1, \"$_FLAGS\"]/" \
57d230
    .cargo/config
2e8bd9
rm .cargo/config.toml
57d230
57d230
%build
57d230
make
57d230
pushd src/python
57d230
%py3_build
57d230
popd
57d230
57d230
%post
57d230
/sbin/ldconfig
57d230
57d230
%postun
57d230
/sbin/ldconfig
57d230
57d230
%install
57d230
env SKIP_PYTHON_INSTALL=1 PREFIX=%{_prefix} LIBDIR=%{_libdir} %make_install
57d230
57d230
pushd src/python
57d230
%py3_install
57d230
popd
57d230
57d230
%files
57d230
%doc AUTHORS CHANGELOG DEVEL.md README.md
57d230
%license LICENSE
57d230
%{_bindir}/npc
57d230
%{_libdir}/libnispor.so.*
57d230
57d230
%files -n       python3-%{name}
57d230
%license LICENSE
57d230
%{python3_sitelib}/nispor*
57d230
57d230
%files devel
57d230
%license LICENSE
57d230
%{_libdir}/libnispor.so
57d230
%{_includedir}/nispor.h
57d230
%{_libdir}/pkgconfig/nispor.pc
57d230
57d230
%changelog
012169
* Thu Feb 16 2023 Gris Ge <fge@redhat.com> - 1.2.10-1
012169
- Upgrade to 1.2.10. RHBZ#2153165
012169
012169
* Thu Dec 15 2022 Gris Ge <fge@redhat.com> - 1.2.9-1
012169
- Upgrade to 1.2.9. RHBZ#2153165
012169
708162
* Thu Jun 30 2022 Gris Ge <fge@redhat.com> - 1.2.7-1
708162
- Upgrade to 1.2.7.
708162
708162
* Tue Mar 15 2022 Gris Ge <fge@redhat.com> - 1.2.4-1
708162
- Upgarde to 1.2.4. RHBZ#2064299
708162
0b4611
* Thu Jan 13 2022 Gris Ge <fge@redhat.com> - 1.2.3-1
0b4611
- Upgrade to 1.2.3. Resolves: RHBZ#1996623
0b4611
2e8bd9
* Fri Dec 03 2021 Gris Ge <fge@redhat.com> - 1.2.2-1
2e8bd9
- Upgrade to 1.2.2. Resolves: RHBZ#1996623
2e8bd9
57d230
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-2
57d230
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
57d230
  Related: rhbz#1991688
57d230
57d230
* Sat Jun 19 2021 Gris Ge <fge@redhat.com> - 1.1.1-1
57d230
- Upgrade to 1.1.1. Resolves: RHBZ#1962382
57d230
57d230
* Wed Jun 16 2021 Wen Liang <wenliang@redhat.com> - 1.1.0-2
57d230
- Upload the new vendor tarball compressed by 'xz' tool. Resolves: RHBZ#1962382
57d230
57d230
* Tue Jun 01 2021 Wen Liang <wenliang@redhat.com> - 1.1.0-1
57d230
- Upgrade to 1.1.0. RHBZ#1962382
57d230
57d230
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.1-3
57d230
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
57d230
57d230
* Fri Nov 13 2020 Gris Ge <fge@redhat.com> - 1.0.1-2
57d230
- Upload new cargo vendor tarbal without crates used for windows platform.
57d230
57d230
* Tue Nov 10 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.1-1
57d230
- Upgrade to 1.0.1
57d230
57d230
* Mon Nov 09 2020 Gris Ge <fge@redhat.com> - 1.0.0-1
57d230
- Upgrade to 1.0.0
57d230
57d230
* Mon Oct 19 2020 Gris Ge <fge@redhat.com> - 0.6.1-2
57d230
- Rebuild to load the compose settings.
57d230
57d230
* Tue Oct 13 2020 Gris Ge <fge@redhat.com> - 0.6.1-1
57d230
- Upgrade to 0.6.1
57d230
57d230
* Fri Oct 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.6.0-2
57d230
- VXLAN Python fix incorrect destination port
57d230
57d230
* Fri Oct 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.6.0-1
57d230
- Upgrade to 0.6.0
57d230
57d230
* Sun Sep 20 2020 Gris Ge <fge@redhat.com> - 0.5.1-1
57d230
- Upgrade to 0.5.1
57d230
57d230
* Thu Sep 17 2020 Gris Ge <fge@redhat.com> - 0.5.0-3
57d230
- Trigger rebuild for CI gating
57d230
57d230
* Tue Sep 08 2020 Gris Ge <fge@redhat.com> - 0.5.0-2
57d230
- Fix the python3-nispor requirement
57d230
57d230
* Fri Sep 04 2020 Gris Ge <fge@redhat.com> - 0.5.0-1
57d230
- Upgrade to 0.5.0
57d230
57d230
* Sat Aug 29 2020 Gris Ge <fge@redhat.com> - 0.4.0-3
57d230
- Fix the ldconfig
57d230
57d230
* Wed Aug 26 2020 Gris Ge <fge@redhat.com> - 0.4.0-2
57d230
- Add ldconfig to post and postun scripts
57d230
57d230
* Wed Aug 26 2020 Gris Ge <fge@redhat.com> - 0.4.0-1
57d230
- Upgrade to 0.4.0
57d230
57d230
* Mon Aug 17 2020 Gris Ge <fge@redhat.com> - 0.3.0-2
57d230
- Fix python linux bridge vlan filtering
57d230
57d230
* Sun Aug 16 2020 Gris Ge <fge@redhat.com> - 0.3.0-1
57d230
- Upgrade to 0.3.0
57d230
57d230
* Tue Aug 11 2020 Gris Ge <fge@redhat.com> - 0.2.0-1
57d230
- Upgrade to 0.2.0
57d230
57d230
* Thu Jul 09 2020 Gris Ge <fge@redhat.com> - 0.1.1-2
57d230
- Include license and documents
57d230
57d230
* Wed Jul 08 2020 Gris Ge <fge@redhat.com> - 0.1.1-1
57d230
- Initial build.