Hello community, here is the log from the commit of package bpython for openSUSE:Factory checked in at Tue Jul 19 14:54:34 CEST 2011.
-------- --- bpython/bpython.changes 2011-05-13 14:53:33.000000000 +0200 +++ bpython/bpython.changes 2011-07-03 11:59:17.000000000 +0200 @@ -1,0 +2,9 @@ +Sun Jul 3 09:52:45 UTC 2011 - sasc...@gmx.de + +- Cleaned up spec file: + * Removed 'python' dependency, have python-devel + * Require python-pyparsing instead of python-parsing + * Removed scripting madness and use proper SUSE version checks + * Addded AUTHORS, ROADMAP and TODO doc files + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bpython.spec ++++++ --- /var/tmp/diff_new_pack.jHnCw9/_old 2011-07-19 14:51:33.000000000 +0200 +++ /var/tmp/diff_new_pack.jHnCw9/_new 2011-07-19 14:51:33.000000000 +0200 @@ -15,35 +15,35 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: bpython Version: 0.9.7.1 -Release: 6 +Release: 8 +Url: http://www.bpython-interpreter.org Summary: Fancy Curses Interface to the Python Interactive Interpreter +License: MIT +Group: Development/Languages/Python Source: http://www.bpython-interpreter.org/releases/bpython-%{version}.tar.gz Source1: bpython.desktop Source99: rpmlintrc -Url: http://www.bpython-interpreter.org/ -Group: Development/Languages/Python -License: MIT/X Consortium License BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python python-devel -%if 0%{?suse_version} > 1020 -BuildRequires: python-setuptools -%endif +BuildRequires: python-devel BuildRequires: update-desktop-files -Requires: python-pygments python-parsing python-curses +BuildRequires: python-setuptools +Requires: python-curses +Requires: python-pygments +Requires: python-pyparsing +%if 0%{?suse_version} +%py_requires %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif -%py_requires +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %description -bpython is an enhanced Python interactive interpreter that uses curses +Bpython is an enhanced Python interactive interpreter that uses curses and provides the following main features: in-line syntax highlighting; readline-like autocompletion with suggestions displayed as you type; expected argument specification for functions; a handy pastebin function to quickly @@ -51,34 +51,29 @@ ideas to enhance the standard interpreter without getting carried away. %prep -%setup -q -n "bpython-%{version}" +%setup -q +sed -i '1d' bpython/keys.py # Remove she-bang line %build -%__python ./setup.py build +python setup.py build %install -%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" \ - --record-rpm=files.lst - -for f in keys cli; do - if head -1 '%{buildroot}%{python_sitelib}/bpython'/"$f".py | grep -qE '^#!'; then - %__sed -i '1d' '%{buildroot}%{python_sitelib}/bpython'/"$f".py - fi -done - -%__perl -n -i -e 'print $_ unless m,^(%dir\s+)?%{_datadir}/(applications|man),' files.lst - -%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop" -%suse_update_desktop_file -r "%{name}" Development IDE +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop +%if 0%{?suse_version} +%suse_update_desktop_file -r %{name} Development IDE +%endif %clean -%{?buildroot:%__rm -rf "%{buildroot}"} +rm -rf %{buildroot} -%files -f files.lst +%files %defattr(-,root,root) -%doc CHANGELOG LICENSE README +%doc AUTHORS CHANGELOG LICENSE README ROADMAP TODO %doc %{_mandir}/man1/bpython.1%{ext_man} %doc %{_mandir}/man5/bpython-config.5%{ext_man} +%{_bindir}/bpython* +%{python_sitelib}/* %{_datadir}/applications/%{name}.desktop %changelog ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org