Blame thonny.spec

8a7d10b
Name:           thonny
98f1ef3
Version:        2.1.18
98f1ef3
Release:        1%{?dist}
8a7d10b
Summary:        Python IDE for beginners
8a7d10b
8a7d10b
# Code is MIT, toolbar icons are EPL
8a7d10b
License:        MIT and EPL
8a7d10b
URL:            http://thonny.org
8a7d10b
Source0:        https://files.pythonhosted.org/packages/source/t/%{name}/%{name}-%{version}.tar.gz
8a7d10b
8a7d10b
BuildArch:      noarch
8a7d10b
8a7d10b
BuildRequires:  python3-devel
8a7d10b
BuildRequires:  python3-pytest
8a7d10b
BuildRequires:  python3-tkinter
8a7d10b
BuildRequires:  python3-jedi
8a7d10b
BuildRequires:  desktop-file-utils
8a7d10b
BuildRequires:  libappstream-glib
8a7d10b
BuildRequires:  xorg-x11-server-Xvfb 
8a7d10b
8a7d10b
Requires:       python3 
8a7d10b
Requires:       python3-tkinter
8a7d10b
Requires:       python3-pip
8a7d10b
Requires:       python3-jedi
8a7d10b
Requires:       hicolor-icon-theme
8a7d10b
8a7d10b
%description
8a7d10b
Thonny is a simple Python IDE with features useful for learning programming.
8a7d10b
It comes with a debugger which is able to visualize all the conceptual steps
8a7d10b
taken to run a Python program (executing statements, evaluating expressions,
8a7d10b
maintaining the call stack). There is a GUI for installing 3rd party packages
8a7d10b
and special mode for learning about references.
8a7d10b
8a7d10b
%prep
8a7d10b
%autosetup 
8a7d10b
8a7d10b
8a7d10b
%build
8a7d10b
%py3_build
8a7d10b
8a7d10b
%install
8a7d10b
%py3_install
8a7d10b
8a7d10b
install -m 0644 -D -T packaging/icons/thonny-256x256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/thonny.png
8a7d10b
install -m 0644 -D -T packaging/icons/thonny-128x128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/thonny.png
8a7d10b
install -m 0644 -D -T packaging/icons/thonny-64x64.png   %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/thonny.png
8a7d10b
install -m 0644 -D -T packaging/icons/thonny-48x48.png   %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/thonny.png
8a7d10b
install -m 0644 -D -T packaging/icons/thonny-32x32.png   %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/thonny.png
8a7d10b
install -m 0644 -D -T packaging/icons/thonny-22x22.png   %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/thonny.png
8a7d10b
install -m 0644 -D -T packaging/icons/thonny-16x16.png   %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/thonny.png
8a7d10b
8a7d10b
install -D -m 0644 -t %{buildroot}%{_datadir}/metainfo                    packaging/linux/org.thonny.Thonny.appdata.xml
8a7d10b
install -D -m 0644 -t %{buildroot}%{_mandir}/man1                         packaging/linux/thonny.1
8a7d10b
desktop-file-install --dir=%{buildroot}%{_datadir}/applications           packaging/linux/org.thonny.Thonny.desktop
8a7d10b
8a7d10b
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.thonny.Thonny.appdata.xml
8a7d10b
8a7d10b
8a7d10b
%check
8a7d10b
xvfb-run py.test-3 --pyargs thonny
8a7d10b
8a7d10b
%files
8a7d10b
%license LICENSE.txt licenses/ECLIPSE-ICONS-LICENSE.txt
8a7d10b
%doc README.rst CHANGELOG.rst CREDITS.rst
8a7d10b
%{python3_sitelib}/%{name}/
8a7d10b
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/
8a7d10b
%{_bindir}/%{name}
8a7d10b
%{_datadir}/icons/hicolor/*/apps/thonny.png
8a7d10b
%{_datadir}/applications/org.thonny.Thonny.desktop
8a7d10b
%{_datadir}/metainfo/org.thonny.Thonny.appdata.xml
8a7d10b
%{_mandir}/man1/thonny.1*
8a7d10b
8a7d10b
8a7d10b
%changelog
98f1ef3
* Fri Jun 22 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.18-1
98f1ef3
- Update to 2.1.18 to fix new jedi incompatibilities
98f1ef3
6249c9b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.17-2
6249c9b
- Rebuilt for Python 3.7
6249c9b
c294238
* Wed Mar 21 2018 Aivar Annamaa <aivar.annamaa@gmail.com> - 2.1.17-1
c294238
- New upstream version (fixes a bug in pip package manager)
c294238
30aad9c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.16-3
30aad9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
30aad9c
bb8a162
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.16-2
bb8a162
- Remove obsolete scriptlets
bb8a162
8a7d10b
* Fri Nov 10 2017 Aivar Annamaa <aivar.annamaa@gmail.com> - 2.1.16-1
8a7d10b
- Initial package