Blame SPECS/nmstate.spec

06df61
%?python_enable_dependency_generator
06df61
%define srcname nmstate
06df61
%define libname libnmstate
06df61
06df61
Name:           nmstate
06df61
Version:        2.0.0
70e26b
Release:        1%{?dist}
06df61
Summary:        Declarative network manager API
06df61
License:        LGPLv2+
06df61
URL:            https://github.com/%{srcname}/%{srcname}
70e26b
Source0:        %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz
70e26b
Source1:        %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.asc
06df61
Source2:        nmstate.gpg
70e26b
Source3:        nmstate-rust-vendor-%{version}.tar.xz
06df61
BuildRequires:  python3-devel
06df61
BuildRequires:  python3-setuptools
06df61
BuildRequires:  gnupg2
ea117c
BuildRequires:  rust-toolset
ea117c
BuildRequires:  pkg-config
06df61
Requires:       python3-setuptools
06df61
Requires:       python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
06df61
06df61
%description
06df61
Nmstate is a library with an accompanying command line tool that manages host
06df61
networking settings in a declarative manner and aimed to satisfy enterprise
06df61
needs to manage host networking through a northbound declarative API and multi
06df61
provider support on the southbound.
06df61
06df61
06df61
%package -n python3-%{libname}
06df61
Summary:        nmstate Python 3 API library
06df61
Requires:       NetworkManager-libnm >= 1:1.26.0
06df61
# Use Recommends for NetworkManager because only access to NM DBus is required,
06df61
# but NM could be running on a different host
06df61
Recommends:     NetworkManager
06df61
# Avoid automatically generated profiles
06df61
Recommends:     NetworkManager-config-server
06df61
Recommends:     (nmstate-plugin-ovsdb if openvswitch)
06df61
# Use Suggests for NetworkManager-ovs and NetworkManager-team since it is only
06df61
# required for OVS and team support
06df61
Suggests:       NetworkManager-ovs
06df61
Suggests:       NetworkManager-team
06df61
# FIXME: Once upstream included nispor into requirement.txt, remove below line
06df61
Requires:       python3dist(nispor)
06df61
06df61
%package -n nmstate-plugin-ovsdb
06df61
Summary:        nmstate plugin for OVS database manipulation
06df61
Requires:       python3-%{libname} = %{?epoch:%{epoch}:}%{version}-%{release}
06df61
%if 0%{?rhel}
06df61
# The python-openvswitch rpm package is not in the same repo with nmstate,
06df61
# require only if openvswitch is installed.
06df61
Requires:       (python3dist(ovs) if openvswitch)
06df61
Recommends:     python3dist(ovs)
06df61
%else
06df61
Requires:       python3dist(ovs)
06df61
%endif
06df61
ea117c
%package libs
ea117c
Summary:        C binding of nmstate
ea117c
License:        ASL 2.0
ea117c
ea117c
%package devel
ea117c
Summary:        C binding development files of nmstate
ea117c
License:        ASL 2.0
ea117c
Requires:       nmstate-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
ea117c
ea117c
%description libs
ea117c
This package contains the C binding of nmstate.
ea117c
ea117c
%description devel
ea117c
This package contains the C binding development files of nmstate.
ea117c
06df61
06df61
%description -n python3-%{libname}
06df61
This package contains the Python 3 library for Nmstate.
06df61
06df61
%description -n nmstate-plugin-ovsdb
06df61
This package contains the nmstate plugin for OVS database manipulation.
06df61
06df61
%prep
06df61
gpg2 --import --import-options import-export,import-minimal %{SOURCE2} > ./gpgkey-mantainers.gpg
06df61
gpgv2 --keyring ./gpgkey-mantainers.gpg %{SOURCE1} %{SOURCE0}
06df61
%setup -q
06df61
ea117c
pushd rust
ea117c
# Source3 is vendored dependencies
ea117c
%cargo_prep -V 3
ea117c
ea117c
# The cargo_prep will create `.cargo/config` which take precedence over
ea117c
# `.cargo/config.toml` shipped by upstream which fix the SONAME of cdylib.
ea117c
# To workaround that, merge upstream rustflags into cargo_prep created one.
ea117c
_FLAGS=`sed -ne 's/rustflags = "\(.\+\)"/\1/p' .cargo/config.toml`
ea117c
sed -i -e "s/rustflags = \[\(.\+\), \]$/rustflags = [\1, \"$_FLAGS\"]/" \
ea117c
    .cargo/config
ea117c
rm .cargo/config.toml
ea117c
ea117c
popd
ea117c
06df61
%build
06df61
%py3_build
06df61
ea117c
pushd rust
ea117c
make
ea117c
popd
ea117c
06df61
%install
06df61
%py3_install
ea117c
pushd rust
ea117c
env SKIP_PYTHON_INSTALL=1 PREFIX=%{_prefix} LIBDIR=%{_libdir} %make_install
ea117c
popd
06df61
06df61
%files
06df61
%doc README.md
06df61
%doc examples/
06df61
%{_mandir}/man8/nmstatectl.8*
11e99b
%{_mandir}/man8/nmstate-autoconf.8*
06df61
%{python3_sitelib}/nmstatectl
06df61
%{_bindir}/nmstatectl
11e99b
%{_bindir}/nmstate-autoconf
ea117c
%{_bindir}/nmstatectl-rust
06df61
06df61
%files -n python3-%{libname}
06df61
%license LICENSE
06df61
%{python3_sitelib}/%{libname}
06df61
%{python3_sitelib}/%{srcname}-*.egg-info/
06df61
%exclude %{python3_sitelib}/%{libname}/plugins/nmstate_plugin_*
06df61
%exclude %{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_*
06df61
06df61
%files -n nmstate-plugin-ovsdb
06df61
%{python3_sitelib}/%{libname}/plugins/nmstate_plugin_ovsdb*
06df61
%{python3_sitelib}/%{libname}/plugins/__pycache__/nmstate_plugin_ovsdb*
06df61
ea117c
%files libs
ea117c
%license rust/LICENSE
ea117c
%{_libdir}/libnmstate.so.*
ea117c
ea117c
%files devel
ea117c
%license LICENSE
ea117c
%{_libdir}/libnmstate.so
ea117c
%{_includedir}/nmstate.h
ea117c
%{_libdir}/pkgconfig/nmstate.pc
ea117c
ea117c
%post libs
ea117c
/sbin/ldconfig
ea117c
ea117c
%postun libs
ea117c
/sbin/ldconfig
ea117c
06df61
%changelog
70e26b
* Wed Feb 16 2022 Fernando Fernandez Mancera <ferferna@redhat.com> - 2.0.0-1
70e26b
- Upgrade to 2.0.0. RHBZ#1996575
70e26b
ea117c
* Thu Jan 13 2022 Gris Ge <fge@redhat.com> - 2.0.0-0.7.alpha6
ea117c
- Add gating.yaml. RHBZ#1996575
ea117c
ea117c
* Wed Jan 12 2022 Gris Ge <fge@redhat.com> - 2.0.0-0.6.alpha6
ea117c
- Upgrade to 2.0.0. alpha 6. Resolves: RHBZ#1996575
ea117c
ea117c
* Thu Dec 16 2021 Fernando Fernandez Mancera <ferferna@redhat.com> - 2.0.0-0.5.alpha5
ea117c
- Upgrade to 2.0.0 alpha 5. Resolves: RHBZ#1996575
ea117c
- Fix release number.
ea117c
ea117c
* Thu Dec 09 2021 Gris Ge <fge@redhat.com> - 2.0.0-0.1.alpha4
ea117c
- Upgrade to 2.0.0 alpha 4. Resolves: RHBZ#1996575
ea117c
11e99b
* Thu Sep 23 2021 Ana Cabral <acabral@redhat.com> - 2.0.0-0.4.alpha3
11e99b
- Upgrade to 2.0.0 alpha 3. Resolves: RHBZ#1996575
11e99b
- Remove connection renaming behaviour. Resolves: RHBZ#1998222
11e99b
- Add prefixes to OVS bridges and interfaces connections. Resolves: RHBZ#1998218
11e99b
- Improve OVS bridge start with nmstate. Resolves: RHBZ#1660250
11e99b
06df61
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.0-0.3.alpha2
06df61
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
06df61
  Related: rhbz#1991688
06df61
06df61
* Wed Jul 14 2021 Gris Ge <fge@redhat.com> - 2.0.0-0.2.alpha2
06df61
- Upgrade to 2.0.0 alpha2
06df61
06df61
* Fri Jul 02 2021 Wen Liang <wenliang@redhat.com> - 2.0.0-0.1
06df61
- Upgrade to 2.0.0 alpha1
06df61
06df61
* Fri Jun 18 2021 Wen Liang <wenliang@redhat.com> - 1.1.0-0.3
06df61
- Fix the 'Release' error. Resolves: RHBZ#1962381
06df61
06df61
* Thu Jun 10 2021 Wen Liang <wenliang@redhat.com> - 1.1.0-0.3
06df61
- Upgrade to 1.1.0 alpha3
06df61
06df61
* Thu May 27 2021 Wen Liang <wenliang@redhat.com> - 1.1.0-0.1
06df61
- Upgrade to 1.1.0 alpha1
06df61
06df61
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-3
06df61
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
06df61
06df61
* Sun Feb 21 2021 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.2-2
06df61
- Add missing source to source file
06df61
06df61
* Sun Feb 21 2021 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.2-1
06df61
- Upgrade to 1.0.2
06df61
06df61
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
06df61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
06df61
06df61
* Tue Jan 19 2021 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.1-1
06df61
- Upgrade to 1.0.1
06df61
06df61
* Tue Dec 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 1.0.0-1
06df61
- Upgrade to 1.0.0
06df61
06df61
* Thu Oct 22 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.4.1-1
06df61
- Upgrade to 0.4.1
06df61
06df61
* Tue Oct 13 2020 Gris Ge <fge@redhat.com> - 0.4.0-2
06df61
- Fix the ELN build by put ovs stuff as soft requirement.
06df61
06df61
* Sun Sep 20 2020 Gris Ge <fge@redhat.com> - 0.4.0-1
06df61
- Upgrade to 0.4.0
06df61
06df61
* Mon Aug 31 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.5-1
06df61
- Update to 0.3.5
06df61
06df61
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
06df61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
06df61
06df61
* Sat Jul 25 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.4-1
06df61
- Update to 0.3.4
06df61
- Sync. with upstream specfile
06df61
06df61
* Thu Jul 02 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.3-1
06df61
- Update to 0.3.3
06df61
06df61
* Tue Jun 16 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.2-1
06df61
- Update to 0.3.2
06df61
- Sync with upstream specfile
06df61
06df61
* Tue Jun 09 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.1-1
06df61
- Update to 0.3.1
06df61
06df61
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-5
06df61
- Rebuilt for Python 3.9
06df61
06df61
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-4
06df61
- Fix source path
06df61
06df61
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-3
06df61
- Fix signature verification
06df61
06df61
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-2
06df61
- Update signature verification
06df61
06df61
* Fri May 08 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.3.0-1
06df61
- Update to 0.3.0
06df61
- Sync with upstream specfile
06df61
06df61
* Tue Apr 21 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.10-1
06df61
- Update to 0.2.10
06df61
06df61
* Thu Mar 26 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.9-1
06df61
- Update to 0.2.9
06df61
06df61
* Fri Mar 13 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.8-1
06df61
- Update to 0.2.8
06df61
06df61
* Wed Mar 04 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.7-1
06df61
- Update to 0.2.7
06df61
06df61
* Mon Feb 24 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.6-1
06df61
- Update to 0.2.6
06df61
06df61
* Wed Feb 19 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.5-1
06df61
- Update to 0.2.5
06df61
- Sync with upstream specfile
06df61
06df61
* Wed Feb 12 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.4-1
06df61
- Update to 0.2.4
06df61
06df61
* Wed Feb 05 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.3-1
06df61
- Update to 0.2.3
06df61
06df61
* Tue Feb 04 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.2-1
06df61
- Update to 0.2.2
06df61
- Sync with upstream specfile
06df61
06df61
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
06df61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
06df61
06df61
* Tue Jan 14 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.1-2
06df61
- Fix changelog
06df61
06df61
* Tue Jan 14 2020 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.1-1
06df61
- Update to 0.2.1
06df61
06df61
* Tue Dec 03 2019 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.0-2
06df61
- Fix changelog
06df61
06df61
* Tue Dec 03 2019 Fernando Fernandez Mancera <ferferna@redhat.com> - 0.2.0-1
06df61
- Update to 0.2.0
06df61
06df61
* Mon Dec 02 2019 Till Maas <opensource@till.name> - 0.1.1-1
06df61
- Update to 0.1.1
06df61
- Sync with upstream specfile
06df61
06df61
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.8-3
06df61
- Rebuilt for Python 3.8.0rc1 (#1748018)
06df61
06df61
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.8-2
06df61
- Rebuilt for Python 3.8
06df61
06df61
* Fri Jul 26 2019 Gris Ge <fge@redhat.com> - 0.0.8-1
06df61
- Upgrade to 0.0.8.
06df61
06df61
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.7-3
06df61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
06df61
06df61
* Fri Jun 14 2019 Gris Ge <fge@redhat.com> - 0.0.7-2
06df61
- Workaround broken dbus-python packaging:
06df61
   https://bugzilla.redhat.com/show_bug.cgi?id=1654774
06df61
06df61
* Fri Jun 14 2019 Gris Ge <fge@redhat.com> - 0.0.7-1
06df61
- Upgrade to 0.0.7
06df61
06df61
* Sun May 05 2019 Gris Ge <fge@redhat.com> - 0.0.6-1
06df61
- Upgrade to 0.0.6
06df61
06df61
* Fri Apr 12 2019 Gris Ge 
06df61
- Add missing runtime requirement: python3-dbus
06df61
06df61
* Tue Mar 12 2019 Gris Ge <fge@redhat.com> - 0.0.5-1
06df61
- Upgrade to 0.0.5
06df61
06df61
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-3
06df61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
06df61
06df61
* Tue Jan 29 2019 Till Maas <opensource@till.name> - 0.0.4-2
06df61
- Sync with upstream spec
06df61
- Use Recommends for NetworkManager
06df61
- Add Suggests for NetworkManager-ovs
06df61
- package examples as doc
06df61
06df61
* Thu Jan 24 2019 Gris Ge <fge@redhat.com> - 0.0.4-1
06df61
- Upgrade to 0.0.4.
06df61
06df61
* Mon Jan 21 2019 Gris Ge <fge@redhat.com> - 0.0.3-3
06df61
- Add missing runtime dependency for nmstatectl.
06df61
06df61
* Wed Jan 02 2019 Gris Ge <fge@redhat.com> - 0.0.3-2
06df61
- Add source file PGP verification.
06df61
06df61
* Thu Dec 20 2018 Gris Ge <fge@redhat.com> - 0.0.3-1
06df61
- Upgrade to 0.0.3.
06df61
06df61
* Mon Dec 03 2018 Gris Ge <fge@redhat.com> - 0.0.2-2
06df61
- Trival RPM SPEC fix.
06df61
06df61
* Wed Nov 28 2018 Gris Ge <fge@redhat.com> - 0.0.2-1
06df61
- Initial release.