Группа :: Разработка/Python
Пакет: drpython
Главная Изменения Спек Патчи Загрузить Bugs and FR
Name: drpython
Version: 3.10.13
Release: alt0.M24.2
Summary: Python editor and development environment
Summary(ru_RU.KOI8-R): Среда разработки и редактор для языка Python
Url: http://drpython.sourceforge.net/
License: GPL
Group: Development/Python
Source: http://prdownloads.sourceforge.net/drpython/%name-%version.tar.bz2
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildArch: noarch
BuildPreReq: python-devel >= 2.3
BuildRequires: ImageMagick
Requires: python-module-wx >= 2.5.4.1
# It needs Zope-docutils!
%add_python_req_skip docutils
%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
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.1/index.html|" drPreferences.py
%__subst "s|http://www.wxwidgets.org/docs.htm|%_docdir/wxGTK2-doc-2.5.5|" drPreferences.py
%install
mkdir -p $RPM_BUILD_ROOT/%_bindir
mkdir -p $RPM_BUILD_ROOT/%_datadir/%name
mkdir -p $RPM_BUILD_ROOT/%_datadir/%name/documentation
cp *.py* $RPM_BUILD_ROOT/%_datadir/%name
cp -r examples bitmaps $RPM_BUILD_ROOT/%_datadir/%name
cp -r documentation/* $RPM_BUILD_ROOT/%_datadir/%name/documentation/
echo '#!/bin/bash' > $RPM_BUILD_ROOT/%_bindir/%name
echo 'cd %_datadir/%name' >> $RPM_BUILD_ROOT/%_bindir/%name
echo 'python drpython.pyw' >> $RPM_BUILD_ROOT/%_bindir/%name
chmod 755 $RPM_BUILD_ROOT/%_bindir/%name
#menu
mkdir -p $RPM_BUILD_ROOT%_menudir
cat << EOF > $RPM_BUILD_ROOT%_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 $RPM_BUILD_ROOT/%_liconsdir
convert -size 16x16 documentation/%name.png $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
convert -size 32x32 documentation/%name.png $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
convert -size 48x48 documentation/%name.png $RPM_BUILD_ROOT/%_miconsdir/%name.png
rm -rf $RPM_BUILD_ROOT%_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
…
Полный changelog можно просмотреть здесь
Version: 3.10.13
Release: alt0.M24.2
Summary: Python editor and development environment
Summary(ru_RU.KOI8-R): Среда разработки и редактор для языка Python
Url: http://drpython.sourceforge.net/
License: GPL
Group: Development/Python
Source: http://prdownloads.sourceforge.net/drpython/%name-%version.tar.bz2
Packager: Vitaly Lipatov <lav at altlinux.ru>
BuildArch: noarch
BuildPreReq: python-devel >= 2.3
BuildRequires: ImageMagick
Requires: python-module-wx >= 2.5.4.1
# It needs Zope-docutils!
%add_python_req_skip docutils
%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
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.1/index.html|" drPreferences.py
%__subst "s|http://www.wxwidgets.org/docs.htm|%_docdir/wxGTK2-doc-2.5.5|" drPreferences.py
%install
mkdir -p $RPM_BUILD_ROOT/%_bindir
mkdir -p $RPM_BUILD_ROOT/%_datadir/%name
mkdir -p $RPM_BUILD_ROOT/%_datadir/%name/documentation
cp *.py* $RPM_BUILD_ROOT/%_datadir/%name
cp -r examples bitmaps $RPM_BUILD_ROOT/%_datadir/%name
cp -r documentation/* $RPM_BUILD_ROOT/%_datadir/%name/documentation/
echo '#!/bin/bash' > $RPM_BUILD_ROOT/%_bindir/%name
echo 'cd %_datadir/%name' >> $RPM_BUILD_ROOT/%_bindir/%name
echo 'python drpython.pyw' >> $RPM_BUILD_ROOT/%_bindir/%name
chmod 755 $RPM_BUILD_ROOT/%_bindir/%name
#menu
mkdir -p $RPM_BUILD_ROOT%_menudir
cat << EOF > $RPM_BUILD_ROOT%_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 $RPM_BUILD_ROOT/%_liconsdir
convert -size 16x16 documentation/%name.png $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
convert -size 32x32 documentation/%name.png $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
convert -size 48x48 documentation/%name.png $RPM_BUILD_ROOT/%_miconsdir/%name.png
rm -rf $RPM_BUILD_ROOT%_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
…
Полный changelog можно просмотреть здесь