Hello community, here is the log from the commit of package gns3-server for openSUSE:Factory checked in at 2020-11-02 10:35:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gns3-server (Old) and /work/SRC/openSUSE:Factory/.gns3-server.new.3463 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gns3-server" Mon Nov 2 10:35:58 2020 rev:12 rq:835879 version:2.2.14 Changes: -------- --- /work/SRC/openSUSE:Factory/gns3-server/gns3-server.changes 2019-06-12 13:10:42.513042587 +0200 +++ /work/SRC/openSUSE:Factory/.gns3-server.new.3463/gns3-server.changes 2020-11-02 10:36:23.671296763 +0100 @@ -1,0 +2,84 @@ +Mon Sep 21 15:21:12 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Use %{?systemd_ordering} instead of %{?systemd_requires} + +------------------------------------------------------------------- +Fri Sep 18 21:47:29 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Update to version 2.2.14 + * Release Web-Ui version 2020.3.0-beta.4 + * Add '-smp sockets=1' by default for Qemu VMs. + * Implement full restart if user reload a Qemu VM which has been + updated. Fixes +- Update to version 2.2.13 + Server + * Release Web-Ui 2020.3.0-beta.3 + * Fix issue when resuming Qemu VM. + +------------------------------------------------------------------- +Sun Aug 9 14:47:28 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Update to version 2.2.12 + * Release Web-Ui version 2020.3.0-beta.2 + * Catch exception when psutil returns OSError + * Downgrade psutil to version 5.6.7 + * Use parent directory as working directory for project + duplication and snapshots. Fixes GNS3/gns3-gui#2909 + * Fix Key Error "vendor_id" is missing when configuring GNS3 VM + with VirtualBox. Fixes GNS3/gns3-gui#3018 +- Update to version 2.2.11 + * Fix crash when project sets 'auto_open' option and a remote + GNS3 VM is used. Fixes GNS3/gns3-gui#3014 + * Fix Dynamips ghost image support when project contains a space. + * Release Web-Ui version 2020.3.0-beta.1 + * Fix issue when cannot skip slots for Dynamips routers. + * Allow tests to be run by root. + * Update classifiers in setup.py + +------------------------------------------------------------------- +Thu Jun 18 16:24:49 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Update to version 2.2.10 + * Don't require hardware acceleration. + * Release Web-Ui version 2020.2.0-beta.5 + * Tests can be run with Python 3.8 + * Wait longer for x11 socket file to be created. Ref #1761 + * Show error message if IPv6 is not enabled when using SPICE console. + * Only use jsonschema 2.6.0 on Windows and macOS. + * Disable default integrations for sentry sdk. + * Remove unused bytes2human function. +- Update to version 2.2.9 + * Release Web-Ui version 2020.2.0-beta.4 + * Support to activate/deactive network connection state + replication in Qemu. + * Possible fix for problem connecting to the GNS3 VM. + * Option to reset or not all MAC addresses when exporting or + duplicating a project. + * Fix bug when changing properties for closed project. + * Fix issues with crash reporting & bump version to 2.2.9dev2. + * Lock listing VMs. + * Try to fix error when listing Hyper-V VMs. + * Catch VirtualBox errors when listing VMs. + * Deprecate running with Python 3.5 + * aiocontextvars is only necessary for Python < 3.7 + * Replace Raven by Sentry SDK. Fixes #1758 + * Require setuptools>=17.1 in setup.py. + +------------------------------------------------------------------- +Tue Jun 2 14:25:44 UTC 2020 - Martin Hauke <mar...@gmx.de> + +- Update to version 2.2.8 + - https://github.com/GNS3/gns3-server/releases/tag/v2.2.8 +- Remove patches (not longer needed): + * gns3-server-timeout-fix.patch + * gns3-server-requirements-fix.patch +- Specfile cleanup +- Add systemd service file +- Filter auto-generated deps from bundled shell scripts + +------------------------------------------------------------------- +Tue Aug 6 13:38:47 UTC 2019 - Todd R <toddrme2...@gmail.com> + +- This package doesn't support jsonschema 3. + +------------------------------------------------------------------- Old: ---- gns3-server-requirements-fix.patch gns3-server-timeout-fix.patch v2.1.16.tar.gz New: ---- gns3-server-2.2.14.tar.gz gns3-server.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gns3-server.spec ++++++ --- /var/tmp/diff_new_pack.Qnblpj/_old 2020-11-02 10:36:26.139298456 +0100 +++ /var/tmp/diff_new_pack.Qnblpj/_new 2020-11-02 10:36:26.143298458 +0100 @@ -1,7 +1,7 @@ # # spec file for package gns3-server # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,24 @@ # +# Filter auto-generated deps from bundled shell script (which depends on busybox only) +%global __requires_exclude_from ^%{python3_sitelib}/gns3server/compute/docker/resources/.*$ + +%define gns3_user _gns3 +%define gns3_group _gns3 +%define gns3_home %{_sharedstatedir}/gns3 Name: gns3-server -Version: 2.1.16 +Version: 2.2.14 Release: 0 Summary: A graphical network simulator License: GPL-3.0-or-later Group: Productivity/Networking/Other URL: https://gns3.com/ -Source0: https://github.com/GNS3/gns3-server/archive/v%{version}.tar.gz +Source0: https://github.com/GNS3/gns3-server/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}-rpmlintrc -# PATCH-FIX-UPSTREAM gns3-server-timeout-fix.patch -Patch0: gns3-server-timeout-fix.patch -# PATCH-FIX-UPSTREAM gns3-server-requirements-fix.patch -Patch1: gns3-server-requirements-fix.patch +Source2: %{name}.service BuildRequires: busybox -BuildRequires: python3-devel >= 3.3 +BuildRequires: fdupes BuildRequires: python3-pip BuildRequires: python3-setuptools Requires: busybox @@ -39,23 +42,35 @@ Requires: dynamips >= 0.2.11 Requires: iouyap Requires: python3-Jinja2 >= 2.7.3 -Requires: python3-aiohttp >= 0.21.5 -Requires: python3-aiohttp-cors +Requires: python3-aiofiles >= 0.5.0 +Requires: python3-aiohttp >= 3.6.2 +Requires: python3-aiohttp_cors >= 0.7.0 +Requires: python3-async_generator +Requires: python3-async_timeout >= 3.0.1 +Requires: python3-distro >= 1.3.0 Requires: python3-docker-py >= 1.4.0 -Requires: python3-jsonschema >= 2.4.0 Requires: python3-prompt_toolkit1 -Requires: python3-psutil >= 3.0.0 +Requires: python3-psutil >= 5.6.6 +Requires: python3-py-cpuinfo >= 7.0.0 Requires: python3-raven >= 5.2.0 -Requires: python3-typing_extensions +Requires: python3-sentry-sdk >= 0.14.4 Requires: python3-zipstream >= 1.1.3 Requires: qemu Requires: ubridge >= 0.9.14 Requires: vpcs >= 0.5b1 Requires: wireshark BuildArch: noarch +%if 0%{?suse_version} > 1500 +Requires: python3-jsonschema >= 3.2.0 +%else +Requires: python3-jsonschema < 3 +Requires: python3-jsonschema >= 2.4.0 +%endif %if 0%{?suse_version} Recommends: virtualbox %endif +Requires(pre): shadow +%{?systemd_ordering} %description The GNS3 server manages emulators such as Dynamips, VirtualBox or Qemu/KVM. @@ -64,33 +79,62 @@ You will need the new GNS3 GUI (gns3-gui repository) to control the server. %prep -%setup -q -n gns3-server-%{version} -%patch0 -p1 -%patch1 -p1 +%setup -q find . -type f -name "*.py" -exec sed -i 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/' {} + find . -type f -name "*.py" -exec sed -i 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' {} + +## Relax requirements +# Leap 15.2 +%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} +sed -i 's|aiohttp==3.6.2|aiohttp>=3.6.1|g' requirements.txt +%endif +sed -i 's|==|>=|g' requirements.txt %build python3 setup.py build %install python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} -rm -rf %{buildroot}/%{python3_sitelib}/gns3server/symbols/.gitkeep +rm %{buildroot}/%{python3_sitelib}/gns3server/static/.gitkeep +rm %{buildroot}/%{python3_sitelib}/gns3server/symbols/.gitkeep find %{buildroot}/%{python3_sitelib}/gns3server -type f -name "*.py" -exec grep -Hl python3 {} + | xargs chmod +x find %{buildroot}/%{python3_sitelib}/gns3server -name "*.svg" -exec chmod -x {} + - rm -rf %{buildroot}/%{python3_sitelib}/tests -rm -rf %{buildroot}/%{python3_sitelib}/gns3server/compute/docker/resources/bin/busybox -ln -sf %{_bindir}/busybox %{buildroot}/%{python3_sitelib}/gns3server/compute/docker/resources/bin/busybox +rm %{buildroot}/%{python3_sitelib}/gns3server/compute/docker/resources/bin/busybox +install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service +install -d %{buildroot}%{_sbindir} +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} +install -d %{buildroot}/%{_sharedstatedir}/gns3 +%fdupes %{buildroot}/%{python3_sitelib} + +%pre +%service_add_pre %{name}.service +# Create gns3 user/group +getent group %{gns3_group} >/dev/null || groupadd -r %{gns3_group} +getent passwd %{gns3_user} >/dev/null || useradd -r -g %{gns3_group} -d %{gns3_home} -s /sbin/nologin -c "GNS3 service user" %{gns3_user} +exit 0 + +%post +%service_add_post %{name}.service +# Replace bundled busybox with the system one +cp -f %{_bindir}/busybox %{python3_sitelib}/gns3server/compute/docker/resources/bin/busybox + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service %files -%defattr(-, root, root, 0755) %license LICENSE %doc AUTHORS README.rst %{_bindir}/gns3server %{_bindir}/gns3vmnet %{_bindir}/gns3loopback +%{_sbindir}/rc%{name} %{python3_sitelib}/gns3server %{python3_sitelib}/gns3_server-%{version}-py%{py3_ver}.egg-info +%ghost %{python3_sitelib}/gns3server/compute/docker/resources/bin/busybox +%dir %attr(0750,%{gns3_user},%{gns3_group}) %{_sharedstatedir}/gns3 +%{_unitdir}/%{name}.service %changelog ++++++ gns3-server.service ++++++ [Unit] Description=GNS3 server [Service] Type=simple Environment=statedir=/var/lib/gns3 ExecStart=/usr/bin/gns3server Restart=on-abort User=_gns3 Group=_gns3 TimeoutSec=300 [Install] WantedBy=multi-user.target