14894d
# Pre-release
14894d
#%%global git_tag 2.1.0rc3
14894d
14894d
%global git_tag %{version}
14894d
14894d
Name:           gns3-gui
7013ce
Version:        2.2.6
7013ce
Release:        1%{?dist}
14894d
Summary:        GNS3 graphical user interface
14894d
14894d
License:        GPLv3+
14894d
URL:            http://gns3.com
14894d
Source0:        https://github.com/GNS3/%{name}/archive/v%{git_tag}/%{name}-%{git_tag}.tar.gz
14894d
Source3:        %{name}.appdata.xml
14894d
14894d
BuildArch:      noarch
14894d
14894d
BuildRequires:  python3-devel 
14894d
BuildRequires:  desktop-file-utils
14894d
BuildRequires:  libappstream-glib
14894d
14894d
Requires: telnet 
14894d
Requires: cpulimit 
14894d
Requires: socat
14894d
Requires: python3-jsonschema 
14894d
Requires: python3-raven 
14894d
Requires: python3-psutil 
14894d
Requires: python3-qt5
14894d
Requires: gns3-net-converter >= 1.3.0
14894d
14894d
%description
14894d
GNS3 is a graphical network simulator that allows you to design complex network
14894d
topologies. You may run simulations or configure devices ranging from simple 
14894d
workstations to powerful routers. 
14894d
14894d
This package contains the client graphical user interface.
14894d
14894d
%prep
14894d
%autosetup -n %{name}-%{git_tag}
14894d
14894d
# Relax strict reqs
14894d
sed -i -r 's/==/>=/g' requirements.txt
14894d
14894d
# Disable update alerts
14894d
sed -i 's/"check_for_update": True,/"check_for_update": False,/' gns3/settings.py
14894d
14894d
# Disable anonymous data collection
14894d
sed -i 's/"send_stats": True,/"send_stats": False,/' gns3/settings.py
14894d
14894d
%build
14894d
%py3_build
14894d
14894d
%install
14894d
%py3_install
14894d
14894d
# Remove shebang
14894d
for lib in `find %{buildroot}/%{python3_sitelib}/ -name '*.py'`; do
14894d
 echo $lib
14894d
 sed -i '1{\@^#!/usr/bin/env python@d}' $lib
14894d
done
14894d
14894d
# Remove empty files
14894d
find %{buildroot}/%{python3_sitelib}/ -name '.keep' -type f -delete
14894d
14894d
# Remove exec perm
14894d
find %{buildroot}/%{python3_sitelib}/ -type f -exec chmod -x {} \;
14894d
14894d
# AppData
14894d
mkdir -p %{buildroot}/%{_datadir}/appdata/
14894d
install -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/appdata/
14894d
7013ce
14894d
%check
14894d
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
7013ce
desktop-file-validate %{buildroot}%{_datadir}/applications/gns3*.desktop
14894d
14894d
14894d
%files 
14894d
%license LICENSE
14894d
%doc README.rst AUTHORS CHANGELOG
14894d
%{python3_sitelib}/gns3/
14894d
%{python3_sitelib}/gns3_gui*.egg-info/
14894d
%{_bindir}/gns3
95cbc4
%{_datadir}/applications/gns3*.desktop
95cbc4
%{_datadir}/icons/hicolor/*/apps/*gns3*
95cbc4
%{_datadir}/icons/hicolor/*/mimetypes/*-gns3*
95cbc4
%{_datadir}/mime/packages/gns3-gui.xml
14894d
%{_datadir}/appdata/%{name}.appdata.xml
14894d
14894d
%changelog
7013ce
* Thu Mar 26 2020 Nicolas Chauvet <kwizart@gmail.com> - 2.2.6-1
7013ce
- Update to 2.2.6
7013ce
- Drop duplicate desktop entry
7013ce
a862e3
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
a862e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a862e3
95cbc4
* Mon Jan 20 2020 Nicolas Chauvet <kwizart@gmail.com> - 2.2.5-1
95cbc4
- Update to 2.2.5
95cbc4
fa4ec3
* Thu Jan 09 2020 Nicolas Chauvet <kwizart@gmail.com> - 2.1.20-1
fa4ec3
- Update to 2.1.20
fa4ec3
14894d
* Wed Sep 18 2019 Rex Dieter <rdieter@fedoraproject.org> - 2.1.16-5
14894d
- drop dep on python3-sip
14894d
14894d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.16-4
14894d
- Rebuilt for Python 3.8
14894d
14894d
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.16-3
14894d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
14894d
14894d
* Sat Apr 27 2019 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.16-2
14894d
- Relax strict reqs
14894d
14894d
* Sat Apr 27 2019 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.16-1
14894d
- Update to 2.1.16 (rhbz #1668653 #1668654)
14894d
14894d
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.11-3
14894d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
14894d
14894d
* Sat Nov 17 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.11-2
14894d
- Add missing PyQt dep
14894d
14894d
* Sat Nov 17 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.112.1.11-11
14894d
- Update to 2.1.11 (rhbz #1581506)
14894d
14894d
* Wed Jul 18 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.8-1
14894d
- Update to 2.1.8 (rhbz #1581506)
14894d
14894d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.5-3
14894d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
14894d
14894d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.5-2
14894d
- Rebuilt for Python 3.7
14894d
14894d
* Sat Apr 21 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.5-1
14894d
- Update to 2.1.5 (rhbz #1569275)
14894d
14894d
* Sun Mar 18 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.4-1
14894d
- Update to 2.1.4 (rhbz #1554315)
14894d
14894d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-2
14894d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
14894d
14894d
* Sun Jan 21 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.3-1
14894d
- Update to 2.1.3 (rhbz #1536428)
14894d
14894d
* Thu Jan 18 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.2-1
14894d
- Update to 2.1.2 (rhbz #1532421)
14894d
- Disable anonymous data collection
14894d
14894d
* Sat Dec 30 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.1-1
14894d
- Update to 2.1.1 (rhbz #1528825)
14894d
14894d
* Mon Nov 20 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.0-1
14894d
- Update to 2.1.0 final
14894d
14894d
* Sat Nov 04 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.0-0.rc3
14894d
- Update to 2.1.0-0.rc3
14894d
14894d
* Sun Oct 15 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.1.0-0.rc1
14894d
- Update to 2.1.0 RC1
14894d
- Fix appdata
14894d
14894d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
14894d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
14894d
14894d
* Sun Jul 23 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.0.3-2
14894d
- Disable update alert
14894d
14894d
* Sat Jul 15 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.0.3-1
14894d
- Update to 2.0.3
14894d
14894d
* Sat May 13 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.0.0-2
14894d
- Update files section
14894d
14894d
* Fri May 12 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 2.0.0-1
14894d
- Update to 2.0.0
14894d
14894d
* Fri Apr 14 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.4-1
14894d
- Update to 1.5.4
14894d
14894d
* Sat Apr 01 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.3-1
14894d
- Update to 1.5.3
14894d
14894d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
14894d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
14894d
14894d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-2
14894d
- Rebuild for Python 3.6
14894d
14894d
* Sun Sep 11 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.2-1
14894d
- Update to 1.5.2
14894d
14894d
* Fri Aug 05 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.1-2
14894d
- Fix appdata
14894d
14894d
* Tue Aug 02 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.1-1
14894d
- Update to 1.5.1
14894d
- Fix the url
14894d
14894d
* Tue Aug 02 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.0-2
14894d
- Minor spec fixes
14894d
- Provide AppData
14894d
14894d
* Tue Jul 05 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.0-1
14894d
- Initial spec