X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdrpython.git;a=blobdiff_plain;f=drpython.spec;h=c05e579f026d34ca4a8b22a6576812bbbd8fac3a;hp=187c8fef254ca923f259ad661590ed9f706641fd;hb=55ac5410c3716cf1f9604f074898c1247ac19789;hpb=22f0bccad52daf257a2c60c1ef19e6125d08b987 diff --git a/drpython.spec b/drpython.spec index 187c8fe..c05e579 100644 --- a/drpython.spec +++ b/drpython.spec @@ -1,15 +1,14 @@ Summary: DrPython - cross-platform IDE to aid programming in Python -Summary(pl): DrPython - wieloplatformowe IDE pomagaj±ce w programowaniu w Pythonie +Summary(pl.UTF-8): DrPython - wieloplatformowe IDE wspomagające programowanie w Pythonie Name: drpython -Version: 3.6.8 -Release: 0.1 +Version: 3.11.1 +Release: 1 License: GPL Group: Libraries/Python Source0: http://dl.sourceforge.net/drpython/%{name}-%{version}.zip -# Source0-md5: bafc92efcb435c29dc41ffe5486da36a -# Source0-size: 468343 +# Source0-md5: a972744c88cdfdf76b0bfdc15f553446 URL: http://drpython.sourceforge.net/ -BuildRequires: python-modules >= 2.3 +BuildRequires: python-modules >= 1:2.3 BuildRequires: unzip %pyrequires_eq python-modules Requires: python-wxPython >= 2.5.1.5 @@ -22,40 +21,55 @@ editor/environment for developing programs written in the Python programming Language. It is written in Python, and uses the wxWidgets GUI Library through the use of wxPython. -%description -l pl -DrPython to przejrzysty i prosty, ale potê¿ny i wysoko konfigurowalny -edytor/¶rodowisko do tworzenia programów napisanych w jêzyku Python. -Jest napisany w Pythonie i u¿ywa biblioteki graficznej wxWidgets +%description -l pl.UTF-8 +DrPython to przejrzysty i prosty, ale potężny i wysoko konfigurowalny +edytor/środowisko do tworzenia programów napisanych w języku Python. +Jest napisany w Pythonie i używa biblioteki graficznej wxWidgets poprzez interfejs wxPython. %prep -%setup -q +%setup -q -n %{name}_%{version} %build -chmod 0644 *.py +chmod 644 *.py +%{_bindir}/python setup.py build %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/drpython} +install -d $RPM_BUILD_ROOT%{_bindir} -install *.py $RPM_BUILD_ROOT%{_datadir}/drpython -cp -a examples bitmaps $RPM_BUILD_ROOT%{_datadir}/drpython +python -- setup.py install \ + --root=$RPM_BUILD_ROOT \ + --optimize=2 echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython -echo 'cd %{_datadir}/drpython' >> $RPM_BUILD_ROOT%{_bindir}/drpython -echo 'exec python drpython.pyo' >> $RPM_BUILD_ROOT%{_bindir}/drpython -chmod 0755 $RPM_BUILD_ROOT%{_bindir}/drpython +echo 'exec python %{py_sitescriptdir}/drpython/drpython.pyw' >> $RPM_BUILD_ROOT%{_bindir}/drpython +chmod 755 $RPM_BUILD_ROOT%{_bindir}/drpython -%py_comp $RPM_BUILD_ROOT%{_datadir}/drpython -%py_ocomp $RPM_BUILD_ROOT%{_datadir}/drpython - -find $RPM_BUILD_ROOT%{_datadir} -name \*.py | xargs rm -f +find $RPM_BUILD_ROOT%{py_sitescriptdir} -not -wholename '*/drpython/examples/*' -name \*.py -exec rm -f {} \; +rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/bitmaps/{16,24}/.xvpics +# win32 only +rm $RPM_BUILD_ROOT%{_bindir}/postinst.py +# replace by %{_bindir}/drpython +rm $RPM_BUILD_ROOT%{py_sitescriptdir}/drpython/drpython.lin %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc ChangeLog.txt documentation/* +%doc Changelog.txt History.txt Notes.txt todo.txt documentation/* %attr(755,root,root) %{_bindir}/drpython -%{_datadir}/drpython +%dir %{py_sitescriptdir}/drpython +%{py_sitescriptdir}/drpython/drpython.pyw +%{py_sitescriptdir}/drpython/*.py[oc] +%{py_sitescriptdir}/drpython/examples +%doc %{py_sitescriptdir}/drpython/documentation +%dir %{py_sitescriptdir}/drpython/bitmaps +%{py_sitescriptdir}/drpython/bitmaps/*.ico +%{py_sitescriptdir}/drpython/bitmaps/*.png +%dir %{py_sitescriptdir}/drpython/bitmaps/16 +%{py_sitescriptdir}/drpython/bitmaps/16/*.png +%dir %{py_sitescriptdir}/drpython/bitmaps/24 +%{py_sitescriptdir}/drpython/bitmaps/24/*.png +%{py_sitescriptdir}/*.egg-info