Sisyphus repository
Last update: 17 october 2019 | SRPMs: 17500 | Visits: 15287730
en ru br
ALT Linux repos
S:3.11.4-alt1
5.0: 3.11.0-alt1
4.1: 164-alt1.1
4.0: 164-alt1
3.0: 3.10.13-alt1

Other repositories

Group :: Development/Python
RPM: drpython

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: drpython
Version: 3.11.4
Release: alt1
Epoch: 1

Summary: Python editor and development environment
Summary(ru_RU.UTF-8): Среда разработки и редактор для языка Python

Url: http://drpython.sourceforge.net/
License: GPL
Group: Development/Python

# Source-url: http://downloads.sourceforge.net/project/drpython/DrPython%20%283.x%29/%version/DrPython_%version.zip

Source: %name-%version.tar
Source1: %name.desktop

Packager: Vitaly Lipatov <lav at altlinux.ru>

BuildArch: noarch

BuildPreReq: python-devel
# Automatically added by buildreq on Sat Oct 12 2013
# optimized out: fontconfig libgdk-pixbuf libwayland-client libwayland-server python-base python-devel python-module-distribute python-module-zope python-modules python-modules-compiler python-modules-email python3-base
BuildRequires: python-module-cmd2 python-module-wx3.0

BuildRequires: ImageMagick, rpm-build-intro
BuildRequires: desktop-file-utils

Requires: webclient

%description
DrPython is a highly customizable, simple, and clean editing environment for
developing Python programs. It is intended primarily for use in schools, and
is a tribute to DrScheme.

%description -l ru_RU.UTF-8
DrPython -- это хорошо настраиваемая простая среда для разработки программ
на Python, первоначально предназначенная для использования в школах.
Сделан он по подобию DrScheme.

%prep
%setup

%remove_repo_info

chmod 644 %name.py

# Fix default paths to docs

#sed -i "s/mozilla/url_handler.sh/" drPreferences.py
#sed -i "s|http://www.python.org/doc/current/|%_docdir/python-doc-2.4.2/index.html|" drPreferences.py
#sed -i "s|http://www.wxwidgets.org/docs.htm|%_docdir/wxGTK2-doc-2.6.2|" drPreferences.py

# Change Windows line endings to Unix line endings

for file in $(find *.txt *.TXT -type f); do
 sed -i 's/\r//' $file
done

# Remove Windows related files and patch the setup.py file so it doesn't rely on the file

rm -rf tools/
rm -f setup.cfg

%build
%python_build

%install
mkdir -p %buildroot%_bindir/
mkdir -p %buildroot%_datadir/%name/
#mkdir -p %buildroot%_datadir/%name/documentation
cp *.py* %buildroot%_datadir/%name/
cp -r examples bitmaps %buildroot%_datadir/%name/

echo '#!/bin/bash' > %buildroot%_bindir/%name
echo 'python %_datadir/%name/drpython.py' >> %buildroot%_bindir/%name
chmod 755 %buildroot%_bindir/%name

install -D -m644 %SOURCE1 %buildroot%_desktopdir/%name.desktop

#icons

mkdir -p %buildroot%_liconsdir
convert -size 16x16 bitmaps/%name.png %buildroot%_liconsdir/%name.png
mkdir -p %buildroot%_niconsdir
convert -size 32x32 bitmaps/%name.png %buildroot%_niconsdir/%name.png
mkdir -p %buildroot%_miconsdir
convert -size 48x48 bitmaps/%name.png %buildroot%_miconsdir/%name.png

#rm -rf %buildroot%_datadir/drpython/bitmaps/24/.xvpics

desktop-file-install --dir %buildroot%_desktopdir \
--add-category=IDE \
%buildroot%_desktopdir/drpython.desktop

%files
%doc examples/ *.txt
%_bindir/%name
%_datadir/%name/
%_desktopdir/%name.desktop
%_liconsdir/%name.png
%_niconsdir/%name.png
%_miconsdir/%name.png

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin