Hello community, here is the log from the commit of package python-py2pack for openSUSE:Factory checked in at Fri Jun 24 10:21:23 CEST 2011.
-------- --- python-py2pack/python-py2pack.changes 2011-05-18 13:41:03.000000000 +0200 +++ /mounts/work_src_done/STABLE/python-py2pack/python-py2pack.changes 2011-06-22 12:35:32.000000000 +0200 @@ -1,0 +2,13 @@ +Wed Jun 22 10:21:55 UTC 2011 - sasc...@suse.de + +- Update to version 0.3.20 + * Use URL for RPM tag 'Source' instead of filename + +------------------------------------------------------------------- +Tue May 31 08:01:06 UTC 2011 - sasc...@suse.de + +- Update to version 0.3.18 + * Also list dependencies from 'install_requires' + * Allow to depend on specific Python versions + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- py2pack-0.3.17.tar.gz New: ---- py2pack-0.3.20.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-py2pack.spec ++++++ --- /var/tmp/diff_new_pack.fjsw60/_old 2011-06-24 10:16:49.000000000 +0200 +++ /var/tmp/diff_new_pack.fjsw60/_new 2011-06-24 10:16:49.000000000 +0200 @@ -16,16 +16,15 @@ # -%define mod_name py2pack -Name: python-%{mod_name} -Version: 0.3.17 +Name: python-py2pack +Version: 0.3.20 Release: 1 Url: http://github.com/saschpe/py2pack Summary: Generate distribution packages from Python packages on PyPI License: GPLv2 Group: Development/Languages/Python -Source: %{mod_name}-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-argparse BuildRequires: python-devel @@ -48,19 +47,19 @@ universal tool to package Python modules. %prep -export CFLAGS="%{optflags}" -%setup -q -n %{mod_name}-%{version} +%setup -q -n py2pack-%{version} %build +export CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} # The setup script installs stuff into '/usr/local', move stuff around accordingly install -d %{buildroot}%{_mandir}/man1 -mv %{buildroot}/usr/man/man1/%{mod_name}.* %{buildroot}%{_mandir}/man1 +mv %{buildroot}/usr/man/man1/py2pack.* %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_docdir}/%{name} -mv %{buildroot}/usr/share/doc/%{mod_name}/* %{buildroot}%{_docdir}/%{name} +mv %{buildroot}/usr/share/doc/py2pack/* %{buildroot}%{_docdir}/%{name} %clean rm -rf %{buildroot} @@ -68,8 +67,8 @@ %files %defattr(-,root,root,-) %{_docdir}/%{name} -%{_mandir}/man?/%{mod_name}.* -%{_bindir}/%{mod_name} -%python_sitelib/%{mod_name}* +%{_mandir}/man?/py2pack.* +%{_bindir}/py2pack +%python_sitelib/* %changelog ++++++ py2pack-0.3.17.tar.gz -> py2pack-0.3.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.17/PKG-INFO new/py2pack-0.3.20/PKG-INFO --- old/py2pack-0.3.17/PKG-INFO 2011-05-18 13:32:53.000000000 +0200 +++ new/py2pack-0.3.20/PKG-INFO 2011-06-22 12:26:21.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: py2pack -Version: 0.3.17 +Version: 0.3.20 Summary: Generate distribution packages from Python packages on PyPI Home-page: http://github.com/saschpe/py2pack Author: Sascha Peilicke diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.17/py2pack/__init__.py new/py2pack-0.3.20/py2pack/__init__.py --- old/py2pack-0.3.17/py2pack/__init__.py 2011-05-18 13:32:15.000000000 +0200 +++ new/py2pack-0.3.20/py2pack/__init__.py 2011-06-22 12:26:04.000000000 +0200 @@ -1,5 +1,5 @@ __doc__ = 'Generate distribution packages from Python packages on PyPI' __author__ = 'Sascha Peilicke <sasc...@gmx.de>' -__version__ = '0.3.17' +__version__ = '0.3.20' from py2pack import list, search, fetch, generate, main diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.17/py2pack/py2pack.py new/py2pack-0.3.20/py2pack/py2pack.py --- old/py2pack-0.3.17/py2pack/py2pack.py 2011-05-18 13:30:19.000000000 +0200 +++ new/py2pack-0.3.20/py2pack/py2pack.py 2011-06-22 12:25:08.000000000 +0200 @@ -64,9 +64,9 @@ data = pypi.release_data(args.name, args.version) # fetch all meta data url = newest_download_url(args) if url: - data['file_name'] = url['filename'] + data['source_url'] = url['url'] else: - data['file_name'] = args.name + '-' + args.version + '.zip' + data['source_url'] = args.name + '-' + args.version + '.zip' data['year'] = datetime.now().year # set current year data['user_name'] = pwd.getpwuid(os.getuid())[4] # set system user (packager) template = env.get_template(args.template) @@ -93,7 +93,7 @@ return [] def template_list(): - return os.listdir(TEMPLATE_DIR) + return filter(lambda filename: not filename.startswith('.'), os.listdir(TEMPLATE_DIR)) def main(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.17/py2pack/templates/fedora.spec new/py2pack-0.3.20/py2pack/templates/fedora.spec --- old/py2pack-0.3.17/py2pack/templates/fedora.spec 2011-05-06 15:51:01.000000000 +0200 +++ new/py2pack-0.3.20/py2pack/templates/fedora.spec 2011-06-22 12:25:06.000000000 +0200 @@ -4,34 +4,36 @@ # Copyright (c) {{ year }} {{ user_name }}. # -%define mod_name {{ name }} - -Name: python-%{mod_name} +Name: python-{{ name }} Version: {{ version }} Release: 0 Url: {{ home_page }} Summary: {{ summary }} License: {{ license }} Group: Development/Languages/Python -Source: {{ file_name }} +Source: {{ source_url|replace(version, '%{version}') }} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel +BuildRequires: python-devel {%- if requires_python %} = {{ requires_python }} {% endif %} {%- for req in requires %} BuildRequires: python-{{ req|replace('(','')|replace(')','') }} Requires: python-{{ req|replace('(','')|replace(')','') }} {%- endfor %} +{%- for req in install_requires %} +BuildRequires: python-{{ req|replace('(','')|replace(')','') }} +Requires: python-{{ req|replace('(','')|replace(')','') }} +{%- endfor %} %description {{ description }} %prep -%setup -q -n %{mod_name}-%{version} +%setup -q -n {{ name }}-%{version} %build +export CFLAGS="%{optflags}" python setup.py build %install -export CFLAGS="%{optflags}" python setup.py install --prefix=%{_prefix} --root=%{buildroot} %clean @@ -40,7 +42,7 @@ %files %defattr(-,root,root,-) # You may have to add additional files here (documentation and binaries mostly) -%python_sitelib/1 +%{python_sitelib}/* %changelog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.17/py2pack/templates/mageia.spec new/py2pack-0.3.20/py2pack/templates/mageia.spec --- old/py2pack-0.3.17/py2pack/templates/mageia.spec 2011-05-18 12:28:33.000000000 +0200 +++ new/py2pack-0.3.20/py2pack/templates/mageia.spec 2011-06-22 12:25:06.000000000 +0200 @@ -7,17 +7,17 @@ Summary: {{ summary }} License: {{ license }} Group: Development/Python -{%- if name != name|lower %} -Source: {{ name }}-%{version}{{ ending }} -{%- else %} -Source: %{mod_name}-%{version}{{ ending }} -{%- endif %} +Source: {{ source_url|replace(version, '%{version}') }} BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: python-devel {%- for req in requires %} BuildRequires: python-{{ req|lower }} Requires: pyhton-{{ req|lower }} {%- endfor %} +{%- for req in install_requires %} +BuildRequires: python-{{ req|lower }} +Requires: pyhton-{{ req|lower }} +{%- endfor %} %description {{ summary }} @@ -34,7 +34,7 @@ %{__python} setup.py build %install -%{__python} setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} +%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} %clean rm -rf %{buildroot} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.17/py2pack/templates/opensuse.dsc new/py2pack-0.3.20/py2pack/templates/opensuse.dsc --- old/py2pack-0.3.17/py2pack/templates/opensuse.dsc 2011-05-06 15:18:53.000000000 +0200 +++ new/py2pack-0.3.20/py2pack/templates/opensuse.dsc 2011-06-22 12:01:46.000000000 +0200 @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ Format: 1.0 -Source: {{ file_name }} +Source: {{ source_url }} Version: {{ version }} Binary: python-{{ name|lower }} Maintainer: {{ user_name }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/py2pack-0.3.17/py2pack/templates/opensuse.spec new/py2pack-0.3.20/py2pack/templates/opensuse.spec --- old/py2pack-0.3.17/py2pack/templates/opensuse.spec 2011-05-06 15:50:55.000000000 +0200 +++ new/py2pack-0.3.20/py2pack/templates/opensuse.spec 2011-06-22 12:25:07.000000000 +0200 @@ -15,23 +15,24 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -%define mod_name {{ name }} - -Name: python-%{mod_name} +Name: python-{{ name }} Version: {{ version }} Release: 0 Url: {{ home_page }} Summary: {{ summary }} License: {{ license }} Group: Development/Languages/Python -Source: {{ file_name }} +Source: {{ source_url|replace(version, '%{version}') }} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel +BuildRequires: python-devel {%- if requires_python %} = {{ requires_python }} {% endif %} {%- for req in requires %} BuildRequires: python-{{ req|replace('(','')|replace(')','') }} Requires: python-{{ req|replace('(','')|replace(')','') }} {%- endfor %} +{%- for req in install_requires %} +BuildRequires: python-{{ req|replace('(','')|replace(')','') }} +Requires: python-{{ req|replace('(','')|replace(')','') }} +{%- endfor %} %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 @@ -45,7 +46,7 @@ {{ description }} %prep -%setup -q -n %{mod_name}-%{version} +%setup -q -n {{ name }}-%{version} %build export CFLAGS="%{optflags}" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org