Blame SPECS/nispor.spec

571257
Name:           nispor
b468f1
Version:        1.0.1
b468f1
Release:        2%{?dist}
571257
Summary:        API for network status querying
571257
License:        ASL 2.0
571257
URL:            https://github.com/nispor/nispor
571257
Source:         https://github.com/nispor/nispor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
571257
Source1:        %{name}-%{version}-vendor.tar.xz
571257
BuildRequires:  pkg-config
571257
BuildRequires:  python3-devel
571257
BuildRequires:  rust-toolset
571257
BuildRequires:  systemd-rpm-macros
571257
BuildRequires:  systemd-devel
571257
571257
%description
571257
Unified interface for Linux network state querying.
571257
571257
%package -n     python3-%{name}
571257
Summary:        %{summary}
571257
Requires:       nispor = %{?epoch:%{epoch}:}%{version}-%{release}
571257
BuildArch:      noarch
571257
571257
%description -n python3-%{name}
571257
571257
This package contains python3 binding of %{name}.
571257
571257
%package        devel
571257
Summary:        %{summary}
571257
Requires:       nispor%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
571257
571257
%description devel
571257
571257
This package contains C binding of %{name}.
571257
571257
%prep
571257
%autosetup -p1
571257
571257
# Source1 is vendored dependencies
571257
%cargo_prep -V 1
571257
571257
# The cargo_prep will create `.cargo/config` which take precedence over
571257
# `.cargo/config.toml` shipped by upstream which fix the SONAME of cdylib.
571257
# To workaround that, merge upstream rustflags into cargo_prep created one.
571257
_FLAGS=`sed -ne 's/rustflags = "\(.\+\)"/\1/p' .cargo/config.toml`
571257
sed -i -e "s/rustflags = \[\(.\+\), \]$/rustflags = [\1, \"$_FLAGS\"]/" \
571257
    .cargo/config
571257
571257
%build
571257
make
571257
pushd src/python
571257
%py3_build
571257
popd
571257
571257
%post
571257
/sbin/ldconfig
571257
%systemd_post nispor.service
571257
571257
%preun
571257
%systemd_preun nispor.service
571257
571257
%postun
571257
/sbin/ldconfig
571257
%systemd_postun_with_restart nispor.service
571257
571257
%install
571257
env SKIP_PYTHON_INSTALL=1 PREFIX=%{_prefix} LIBDIR=%{_libdir} %make_install
571257
571257
pushd src/python
571257
%py3_install
571257
popd
571257
571257
%files
571257
%doc AUTHORS CHANGELOG DEVEL.md README.md
571257
%license LICENSE
571257
%{_bindir}/npc
571257
%{_bindir}/npd
571257
%{_libdir}/libnispor.so.*
571257
%{_unitdir}/nispor.socket
571257
%{_unitdir}/nispor.service
571257
571257
%files -n       python3-%{name}
571257
%license LICENSE
571257
%{python3_sitelib}/nispor*
571257
571257
%files devel
571257
%license LICENSE
571257
%{_libdir}/libnispor.so
571257
%{_includedir}/nispor.h
d15622
%{_libdir}/pkgconfig/nispor.pc
571257
571257
%changelog
b468f1
* Fri Nov 13 2020 Gris Ge <fge@redhat.com> - 1.0.1-2
b468f1
- Upload new cargo vendor tarbal without crates used for windows platform.
b468f1
b468f1
* Tue Nov 10 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.1-1
b468f1
- Upgrade to 1.0.1
b468f1
d15622
* Mon Nov 09 2020 Gris Ge <fge@redhat.com> - 1.0.0-1
d15622
- Upgrade to 1.0.0
d15622
e58b2a
* Mon Oct 19 2020 Gris Ge <fge@redhat.com> - 0.6.1-2
e58b2a
- Rebuild to load the compose settings.
e58b2a
571257
* Tue Oct 13 2020 Gris Ge <fge@redhat.com> - 0.6.1-1
571257
- Upgrade to 0.6.1
571257
571257
* Fri Oct 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.6.0-2
571257
- VXLAN Python fix incorrect destination port
571257
571257
* Fri Oct 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.6.0-1
571257
- Upgrade to 0.6.0
571257
571257
* Sun Sep 20 2020 Gris Ge <fge@redhat.com> - 0.5.1-1
571257
- Upgrade to 0.5.1
571257
571257
* Thu Sep 17 2020 Gris Ge <fge@redhat.com> - 0.5.0-3
571257
- Trigger rebuild for CI gating
571257
571257
* Tue Sep 08 2020 Gris Ge <fge@redhat.com> - 0.5.0-2
571257
- Fix the python3-nispor requirement
571257
571257
* Fri Sep 04 2020 Gris Ge <fge@redhat.com> - 0.5.0-1
571257
- Upgrade to 0.5.0
571257
571257
* Sat Aug 29 2020 Gris Ge <fge@redhat.com> - 0.4.0-3
571257
- Fix the ldconfig
571257
571257
* Wed Aug 26 2020 Gris Ge <fge@redhat.com> - 0.4.0-2
571257
- Add ldconfig to post and postun scripts
571257
571257
* Wed Aug 26 2020 Gris Ge <fge@redhat.com> - 0.4.0-1
571257
- Upgrade to 0.4.0
571257
571257
* Mon Aug 17 2020 Gris Ge <fge@redhat.com> - 0.3.0-2
571257
- Fix python linux bridge vlan filtering
571257
571257
* Sun Aug 16 2020 Gris Ge <fge@redhat.com> - 0.3.0-1
571257
- Upgrade to 0.3.0
571257
571257
* Tue Aug 11 2020 Gris Ge <fge@redhat.com> - 0.2.0-1
571257
- Upgrade to 0.2.0
571257
571257
* Thu Jul 09 2020 Gris Ge <fge@redhat.com> - 0.1.1-2
571257
- Include license and documents
571257
571257
* Wed Jul 08 2020 Gris Ge <fge@redhat.com> - 0.1.1-1
571257
- Initial build.