Sisyphus repository
Last update: 12 november 2019 | SRPMs: 17528 | Visits: 15704573
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: 164
Release: alt1.1

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

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

Source: http://dl.sf.net/%name/%name%version.tar.bz2

Packager: Vitaly Lipatov <lav at altlinux.ru>

BuildArch: noarch

BuildPreReq: python-devel >= %__python_version
BuildRequires: ImageMagick
Requires: python-module-wx >= 2.6
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.KOI8-R
DrPython -- это хорошо настраиваемая простая среда для разработки программ
на Python, первоначально предназначенная для использования в школах.
Сделан он по подобию DrScheme.

%prep
%setup -q -n %name
chmod 644 %name.py

# Fix default paths to docs

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

%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
cp -r documentation/* %buildroot%_datadir/%name/documentation/
echo '#!/bin/bash' > %buildroot%_bindir/%name
echo 'cd %_datadir/%name' >> %buildroot%_bindir/%name
echo 'python drpython.pyw' >> %buildroot%_bindir/%name
chmod 755 %buildroot%_bindir/%name

#menu

mkdir -p %buildroot%_menudir
cat << EOF > %buildroot%_menudir/%name
?package(%name): command="%_bindir/%name" icon="%name.png" needs="x11" title="Dr. Python" \\
longtitle="Python Editor and IDE" section="Applications/Development/Development environments"
EOF

#icons

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

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

%post
%update_menus

%postun
%clean_menus

%files
%doc examples/ *.txt
%_bindir/%name
%_datadir/%name
%_menudir/%name
%_liconsdir/%name.png
%_iconsdir/%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