0afdcda
Name:           gns3-gui
e105e6f
Version:        1.5.3
e105e6f
Release:        1%{?dist}
0afdcda
Summary:        GNS3 graphical user interface
0afdcda
0afdcda
License:        GPLv3+
0afdcda
URL:            http://gns3.com
0afdcda
Source0:        https://github.com/GNS3/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
0afdcda
Source1:        %{name}.desktop
0afdcda
Source2:        gns3.png
0afdcda
Source3:        %{name}.appdata.xml
0afdcda
0afdcda
BuildArch:      noarch
0afdcda
0afdcda
BuildRequires:  python3-devel 
0afdcda
BuildRequires:  desktop-file-utils
0afdcda
BuildRequires:  libappstream-glib
0afdcda
0afdcda
Requires: telnet 
0afdcda
Requires: cpulimit 
0afdcda
Requires: socat
0afdcda
Requires: python3-jsonschema 
0afdcda
Requires: python3-raven 
0afdcda
Requires: python3-psutil 
0afdcda
Requires: python3-qt5
0afdcda
Requires: gns3-net-converter >= 1.3.0
0afdcda
0afdcda
%description
0afdcda
GNS3 is a graphical network simulator that allows you to design complex network
0afdcda
topologies. You may run simulations or configure devices ranging from simple 
0afdcda
workstations to powerful routers. 
0afdcda
0afdcda
This package contains the client graphical user interface.
0afdcda
0afdcda
%prep
0afdcda
%autosetup 
0afdcda
0afdcda
%build
0afdcda
%py3_build
0afdcda
0afdcda
%install
0afdcda
%py3_install
0afdcda
0afdcda
# Remove shebang
0afdcda
for lib in `find %{buildroot}/%{python3_sitelib}/ -name '*.py'`; do
0afdcda
 echo $lib
0afdcda
 sed -i '1{\@^#!/usr/bin/env python@d}' $lib
0afdcda
done
0afdcda
0afdcda
# Remove empty files
0afdcda
find %{buildroot}/%{python3_sitelib}/ -name '.keep' -type f -delete
0afdcda
0afdcda
# Remove exec perm
0afdcda
find %{buildroot}/%{python3_sitelib}/ -type f -exec chmod -x {} \;
0afdcda
0afdcda
# Desktop file
0afdcda
mkdir -p %{buildroot}%{_datadir}/pixmaps/
0afdcda
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
0afdcda
desktop-file-install                                    \
0afdcda
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
0afdcda
%{SOURCE1}
0afdcda
0afdcda
# AppData
0afdcda
mkdir -p %{buildroot}/%{_datadir}/appdata/
0afdcda
install -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/appdata/
0afdcda
0afdcda
%check
0afdcda
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
0afdcda
0afdcda
0afdcda
%files 
0afdcda
%license LICENSE
0afdcda
%doc README.rst AUTHORS CHANGELOG
0afdcda
%{python3_sitelib}/gns3/
0afdcda
%{python3_sitelib}/gns3_gui-*-py*.egg-info/
0afdcda
%{_bindir}/gns3
0afdcda
%{_bindir}/gns3-iouvm-converter
0afdcda
%{_datadir}/applications/%{name}.desktop
0afdcda
%{_datadir}/pixmaps/gns3.png
0afdcda
%{_datadir}/appdata/%{name}.appdata.xml
0afdcda
0afdcda
%changelog
e105e6f
* Sat Apr 01 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.3-1
e105e6f
- Update to 1.5.3
e105e6f
3a5ed86
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
3a5ed86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3a5ed86
ae485f5
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.5.2-2
ae485f5
- Rebuild for Python 3.6
ae485f5
c956b88
* Sun Sep 11 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.2-1
c956b88
- Update to 1.5.2
c956b88
0afdcda
* Fri Aug 05 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.1-2
0afdcda
- Fix appdata
0afdcda
0afdcda
* Tue Aug 02 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.1-1
0afdcda
- Update to 1.5.1
0afdcda
- Fix the url
0afdcda
0afdcda
* Tue Aug 02 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.0-2
0afdcda
- Minor spec fixes
0afdcda
- Provide AppData
0afdcda
0afdcda
* Tue Jul 05 2016 Athmane Madjoudj <athmane@fedoraproject.org> - 1.5.0-1
0afdcda
- Initial spec