File eric5.spec of Package eric5

#
# spec file for package eric5
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           eric5
Version:        5.2.7
Release:        0
Summary:        Python IDE based on Qt4
License:        GPL-3.0+
Group:          Development/Tools/IDE
Url:            http://eric-ide.python-projects.org/
Source0:        %{name}-%{version}.tar.gz
Source10:       %{name}-i18n-cs-%{version}.tar.gz
Source11:       %{name}-i18n-de-%{version}.tar.gz
Source12:       %{name}-i18n-en-%{version}.tar.gz
Source13:       %{name}-i18n-es-%{version}.tar.gz
Source14:       %{name}-i18n-fr-%{version}.tar.gz
Source15:       %{name}-i18n-it-%{version}.tar.gz
Source16:       %{name}-i18n-ru-%{version}.tar.gz
Source17:       %{name}-i18n-tr-%{version}.tar.gz
Source18:       %{name}-i18n-zh_CN.GB2312-%{version}.tar.gz
Patch0:         %{name}-build_compare.patch
BuildRequires:  fdupes
BuildRequires:  python3-qscintilla
BuildRequires:  python3-qt4
BuildRequires:  python3-sip
BuildRequires:  python3-xml
BuildRequires:  update-desktop-files
Requires:       python3-logilab-astng >= 0.19.0
Requires:       python3-logilab-common >= 0.43.0
Requires:       python3-pysvn >= 1.7.0
Requires:       python3-qscintilla
Requires:       python3-qt4
Requires:       python3-xml
Recommends:     python3-cx_Freeze
Recommends:     python3-doc
Recommends:     python3-enchant >= 1.5.3
Recommends:     python3-pylint >= 0.18.0
Recommends:     python3-rope >= 0.9.2
Conflicts:      eric4
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Eric is a full featured Python and Ruby editor and IDE, written in python. It
is based on the cross platform Qt gui toolkit, integrating the highly flexible
Scintilla editor control. It is designed to be usable as everdays' quick and
dirty editor as well as being usable as a professional project management tool
integrating many advanced features Python offers the professional coder.

%prep
%setup -q -b 10 -b 11 -b 12 -b 13 -b 14 -b 15 -b 16 -b 17 -b 18 -n %{name}-%{version}
%patch0
# Fix non-executable scripts:
sed -i "s|#!/usr/bin/env python*||" eric/{eric5_sqlbrowser,eric5_uipreviewer,Examples/rhallo,eric5_plugininstall,eric5_tray,eric5_pluginrepository,eric5_unittest,eric5_api,UtilitiesPython2/Py2SyntaxChecker,eric5,compileUiFiles,eric5_editor,eric5_trpreviewer,eric5_diff,install-i18n,UtilitiesPython2/TabnannyChecker,uninstall,eric5_re,install,eric5_webbrowser,eric5_configure,eric5_iconeditor,Examples/hallo,eric5_qregexp,eric5_pluginuninstall,Utilities/crypto/py3AES,eric5_compare,eric5_doc}.py

%build
# nothing here

%install
python3 install.py -b /usr/bin -d %python3_sitelib -i %{buildroot} -x
%suse_update_desktop_file -i %{name} Development IDE
%fdupes %{buildroot}/%{python3_sitelib}/%{name}
# fix rpmlint warning
chmod +x %{buildroot}/%{python3_sitelib}/%{name}/Utilities/crypto/py3AES.py

%files
%defattr(-,root,root)
%doc LICENSE.GPL3 README THANKS
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/eric.png
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by