Hello community,

here is the log from the commit of package python-py2pack for openSUSE:Factory
checked in at Mon Sep 26 10:17:15 CEST 2011.



--------
--- python-py2pack/python-py2pack.changes       2011-09-20 16:58:36.000000000 
+0200
+++ /mounts/work_src_done/STABLE/python-py2pack/python-py2pack.changes  
2011-09-22 13:17:34.000000000 +0200
@@ -1,0 +2,7 @@
+Thu Sep 22 11:15:40 UTC 2011 - sasc...@suse.de
+
+- Set license to GPL-2.0+ (SPDX style)
+- Update to version 0.3.21:
+  * Improvements to the Fedora and SUSE spec templates
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  py2pack-0.3.20.tar.gz

New:
----
  py2pack-0.3.21.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-py2pack.spec ++++++
--- /var/tmp/diff_new_pack.ZDn7nQ/_old  2011-09-26 10:17:11.000000000 +0200
+++ /var/tmp/diff_new_pack.ZDn7nQ/_new  2011-09-26 10:17:11.000000000 +0200
@@ -16,11 +16,11 @@
 #
 
 Name:           python-py2pack
-Version:        0.3.20
+Version:        0.3.21
 Release:        0
 Url:            http://github.com/saschpe/py2pack
 Summary:        Generate distribution packages from Python packages on PyPI
-License:        GPLv2
+License:        GPL-2.0+
 Group:          Development/Languages/Python
 Source:         
http://pypi.python.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ py2pack-0.3.20.tar.gz -> py2pack-0.3.21.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/MANIFEST.in 
new/py2pack-0.3.21/MANIFEST.in
--- old/py2pack-0.3.20/MANIFEST.in      1970-01-01 01:00:00.000000000 +0100
+++ new/py2pack-0.3.21/MANIFEST.in      2011-03-09 09:45:40.000000000 +0100
@@ -0,0 +1,3 @@
+include AUTHORS LICENSE README.rst
+include doc/*
+include py2pack/templates/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/PKG-INFO new/py2pack-0.3.21/PKG-INFO
--- old/py2pack-0.3.20/PKG-INFO 2011-06-22 12:26:21.000000000 +0200
+++ new/py2pack-0.3.21/PKG-INFO 2011-09-22 12:48:42.000000000 +0200
@@ -1,13 +1,12 @@
 Metadata-Version: 1.1
 Name: py2pack
-Version: 0.3.20
+Version: 0.3.21
 Summary: Generate distribution packages from Python packages on PyPI
 Home-page: http://github.com/saschpe/py2pack
 Author: Sascha Peilicke
 Author-email: sasc...@gmx.de
 License: GPLv2
-Description: =======
-        py2pack
+Description: py2pack
         =======
         
         This script allows to generate RPM spec or DEB dsc files from Python 
modules.
@@ -19,8 +18,8 @@
         Prerequisites
         =============
         
-        py2pack needs the argparse_ Python module installed. It is also part of
-        the Python-2.7 Standard Library. Additionally, it uses the Jinja2_ 
templating
+        py2pack needs the argparse_ Python module installed. It is also part 
of the 
+        Python-2.7 Standard Library. Additionally, it uses the Jinja2_ 
templating
         engine.
         
         
@@ -61,10 +60,9 @@
          $ py2pack help
         
         
-        License
-        =======
+         :copyright: (c) 2011 Sascha Peilicke.
+         :license: GPLv2, see LICENSE for more details.
         
-        See the file LICENSE.
         
         .. _argparse: http://pypi.python.org/pypi/argparse
         .. _Jinja2: http://pypi.python.org/pypi/Jinja2 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/README.rst 
new/py2pack-0.3.21/README.rst
--- old/py2pack-0.3.20/README.rst       2011-01-13 10:15:09.000000000 +0100
+++ new/py2pack-0.3.21/README.rst       2011-08-25 13:43:43.000000000 +0200
@@ -1,4 +1,3 @@
-=======
 py2pack
 =======
 
@@ -11,8 +10,8 @@
 Prerequisites
 =============
 
-py2pack needs the argparse_ Python module installed. It is also part of
-the Python-2.7 Standard Library. Additionally, it uses the Jinja2_ templating
+py2pack needs the argparse_ Python module installed. It is also part of the 
+Python-2.7 Standard Library. Additionally, it uses the Jinja2_ templating
 engine.
 
 
@@ -53,10 +52,9 @@
  $ py2pack help
 
 
-License
-=======
+ :copyright: (c) 2011 Sascha Peilicke.
+ :license: GPLv2, see LICENSE for more details.
 
-See the file LICENSE.
 
 .. _argparse: http://pypi.python.org/pypi/argparse
 .. _Jinja2: http://pypi.python.org/pypi/Jinja2 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/doc/py2pack.1 
new/py2pack-0.3.21/doc/py2pack.1
--- old/py2pack-0.3.20/doc/py2pack.1    2011-03-09 10:15:46.000000000 +0100
+++ new/py2pack-0.3.21/doc/py2pack.1    2011-08-25 13:43:43.000000000 +0200
@@ -1,13 +1,22 @@
 '\" t
 .\"     Title: py2pack
 .\"    Author: Sascha Peilicke <sasc...@gmx.de>
-.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
-.\"      Date: 03/09/2011
+.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
+.\"      Date: 07/19/2011
 .\"    Manual: @VERSION@
 .\"    Source: http://github.com/saschpe/py2pack @VERSION@
 .\"  Language: English
 .\"
-.TH "PY2PACK" "1" "03/09/2011" "http://github\&.com/saschpe/py"; "@VERSION@"
+.TH "PY2PACK" "1" "07/19/2011" "http://github\&.com/saschpe/py"; "@VERSION@"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el       .ds Aq '
 .\" -----------------------------------------------------------------
 .\" * set default formatting
 .\" -----------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/doc/py2pack.html 
new/py2pack-0.3.21/doc/py2pack.html
--- old/py2pack-0.3.20/doc/py2pack.html 2011-03-09 10:15:45.000000000 +0100
+++ new/py2pack-0.3.21/doc/py2pack.html 2011-08-25 13:43:43.000000000 +0200
@@ -1,4 +1,4 @@
-<html><head><meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1"><title>py2pack</title><meta name="generator" 
content="DocBook XSL Stylesheets V1.75.2"><meta name="description" 
content=""></head><body bgcolor="white" text="black" link="#0000FF" 
vlink="#840084" alink="#0000FF"><div lang="en" class="refentry" 
title="py2pack"><a name="py2pack"></a><div class="titlepage"></div><div 
class="refnamediv"><h2>Name</h2><p>py2pack &#8212; 
+<html><head><meta http-equiv="Content-Type" content="text/html; 
charset=ISO-8859-1"><title>py2pack</title><meta name="generator" 
content="DocBook XSL Stylesheets V1.76.1"><meta name="description" 
content=""></head><body bgcolor="white" text="black" link="#0000FF" 
vlink="#840084" alink="#0000FF"><div lang="en" class="refentry" 
title="py2pack"><a name="py2pack"></a><div class="titlepage"></div><div 
class="refnamediv"><h2>Name</h2><p>py2pack &#8212; 
       Generate Distribution Packages from Python Packages on PyPI
     </p></div><div class="refsynopsisdiv" title="Synopsis"><a 
name="py2pack.synopsis"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><code 
class="command">py2pack</code>  [-h] [--version] { search  |   help  |   show  
|   list  |   fetch  |   generate }  ... </p></div></div><div class="refsect1" 
title="Commands"><a name="py2pack.options"></a><h2>Commands</h2><p>The 
following commands are available:</p><div class="refsect2" title="The fetch 
Command"><a name="py2pack.cmd.fetch"></a><h3>The fetch Command</h3><div 
class="cmdsynopsis"><p><code class="command">py2pack</code>  fetch   name  
[version]</p></div><p>Downloads a package from PyPI and stores it in the 
current directory. Optionally you
         can specify a version number.</p></div><div class="refsect2" 
title="The generate Command"><a name="py2pack.cmd.generate"></a><h3>The 
generate Command</h3><div class="cmdsynopsis"><p><code 
class="command">py2pack</code> <br><code class="command"> generate</code>  [-h] 
[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/doc/py2pack.xml.in 
new/py2pack-0.3.21/doc/py2pack.xml.in
--- old/py2pack-0.3.20/doc/py2pack.xml.in       2011-01-13 11:42:44.000000000 
+0100
+++ new/py2pack-0.3.21/doc/py2pack.xml.in       1970-01-01 01:00:00.000000000 
+0100
@@ -1,176 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE refentry PUBLIC 
-   "-//OASIS//DTD DocBook XML V4.5//EN"
-   "http://www.docbook.org/xml/4.5/docbookx.dtd";
-[
-  <!ENTITY product "py2pack">
-]>
-
-
-
-<refentry lang="en" id="py2pack">
-  <refentryinfo>
-    <productname>&product;</productname>
-    <authorgroup>
-      <author>
-        <contrib>Developer</contrib>
-        <firstname>Sascha</firstname>
-        <surname>Peilicke</surname>
-        <email>sasc...@gmx.de</email>
-      </author>
-      <othercredit>
-        <contrib>Manpage author</contrib>
-        <firstname>Thomas</firstname>
-        <surname>Schraitle</surname>
-      </othercredit>
-    </authorgroup>
-    <abstract>
-      <!-- Taken from the RPM description, but modified slightly -->
-      &product; allows to generate RPM spec or DEB dsc files from 
-      Python modules, to list Python modules or search for them on 
-      the Python Package Index (PyPI). Conveniently, it can fetch 
-      tarballs and changelogs making it an universal tool to 
-      package Python modules.
-    </abstract>
-  </refentryinfo>
-  <refmeta>
-    <refentrytitle>&product;</refentrytitle>
-    <manvolnum>1</manvolnum>
-    <refmiscinfo class="version">@VERSION@</refmiscinfo>
-    <refmiscinfo class="source"
-      >http://github.com/saschpe/py2pack</refmiscinfo>
-    <!--<refmiscinfo class="manual"></refmiscinfo>-->
-  </refmeta>
-
-  <refnamediv>
-    <refname>&product;</refname>
-    <refpurpose>
-      Generate Distribution Packages from Python Packages on PyPI
-    </refpurpose>
-  </refnamediv>
-
-  <refsynopsisdiv id="py2pack.synopsis">
-    <title>Synopsis</title>
-    <cmdsynopsis>
-      <command>py2pack</command>
-      <arg choice="opt">-h</arg>
-      <arg choice="opt">--version</arg>
-      <group choice="req">
-        <arg choice="plain">search</arg>
-        <arg choice="plain">help</arg>
-        <arg choice="plain">show</arg>
-        <arg choice="plain">list</arg>
-        <arg choice="plain">fetch</arg>
-        <arg choice="plain">generate</arg>
-      </group>
-      <arg rep="repeat" choice="plain"/>
-    </cmdsynopsis>
-  </refsynopsisdiv>
-
-  <refsect1 id="py2pack.options">
-    <title>Commands</title>
-    <para>The following commands are available:</para>
-  
-    <!-- Commands sorted alphabetically: -->
-    <refsect2 id="py2pack.cmd.fetch">
-      <title>The fetch Command</title>
-      <cmdsynopsis><command>py2pack</command><!--
-         --> fetch <!--
-          --><arg choice="plain">name</arg> <!--
-          --><arg choice="opt">version</arg>
-      </cmdsynopsis>
-      <para>Downloads a package from PyPI and stores it in the current 
directory. Optionally you
-        can specify a version number.</para>
-    </refsect2>
-    
-    <refsect2 id="py2pack.cmd.generate">
-      <title>The generate Command</title>
-      <cmdsynopsis><command>py2pack</command>
-          <command> generate</command> 
-          <arg choice="opt">-h</arg>
-          <arg choice="opt">
-            <arg choice="plain">-t</arg>
-            <group choice="req">
-              <arg choice="plain">fedora.spec</arg>
-              <arg choice="plain">opensuse.dsc</arg>
-              <arg choice="plain">opensuse.spec</arg>
-            </group>
-          </arg>
-          <arg choice="opt">-f <replaceable>FILENAME</replaceable></arg>
-          <arg choice="plain">name</arg>
-          <arg choice="opt">version</arg>
-      </cmdsynopsis>
-      <para>Creates a SPEC or DSC file for a specific distribution.</para>
-    </refsect2>
-    
-    <refsect2 id="py2pack.cmd.list">
-      <title>The list Command</title>
-      <cmdsynopsis><command>py2pack</command>
-          <command> list</command> 
-        <arg choice="opt">-h</arg>
-      </cmdsynopsis>
-      <para>Gives a list of all Python modules available on PyPI.</para>
-    </refsect2>
-    
-    <refsect2 id="py2pack.cmd.search">
-      <title>The search Command</title>
-      <cmdsynopsis><command>py2pack</command>
-          <command> search</command> 
-        <arg choice="opt">-h</arg>
-        <arg choice="req">name</arg>
-      </cmdsynopsis>
-      <para>Gives a list of all Python modules found in
-        <replaceable>name</replaceable>.</para>
-    </refsect2>
-    
-    <refsect2 id="py2pack.cmd.show">
-      <title>The show Command</title>
-      <cmdsynopsis><command>py2pack</command>
-          <command> show</command> 
-        <arg choice="opt">-h</arg>
-        <arg choice="req">name</arg>
-        <arg choice="opt">version</arg>
-      </cmdsynopsis>
-      <para>Shows the <ulink
-        url="http://usefulinc.com/doap";>DOAP</ulink> record for the
-        given name and version (optionally). The output is a Python
-        dictionary.</para>
-    </refsect2>
-    
-  </refsect1>
-
-  <refsect1 id="py2pack.examples">
-    <title>Examples</title>
-    <para>Creating a package from a Python module involves the following
-    steps:</para>
-    <procedure>
-      <step>
-        <para>Search for your favorite Python module, for example,
-          <package></package>:</para>
-        <screen><prompt>$ </prompt><command>py2pack</command> search pylint
-searching for package pylint...
-found logilab.pylintinstaller-0.15.2
-found plpylint-0.1.2
-found pylint-0.22.0</screen>
-      </step>
-      <step>
-        <para>Download</para>
-        <screen><prompt>$ </prompt><command>py2pack</command> fetch
-downloading package pylint-0.22.0...
-from 
http://pypi.python.org/packages/source/p/pylint/pylint-0.22.0.tar.gz</screen>
-      </step>
-      <step>
-        <para>Create a SPEC file, for example, for openSUSE:</para>
-        <screen><prompt>$ </prompt><command>py2pack</command> generate -t 
opensuse.spec<!--
-        --> -f python-pylint.spec pylint</screen>
-      </step>
-      <step>
-        <para>Check the SPEC file
-          <filename>python-pylint.spec</filename> and adapt it to your
-          needs.</para>
-      </step>
-    </procedure>
-    
-  </refsect1>
-  
-</refentry>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack/__init__.py 
new/py2pack-0.3.21/py2pack/__init__.py
--- old/py2pack-0.3.20/py2pack/__init__.py      2011-06-22 12:26:04.000000000 
+0200
+++ new/py2pack-0.3.21/py2pack/__init__.py      2011-09-22 12:16:03.000000000 
+0200
@@ -1,5 +1,24 @@
+#
+# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2010, Sascha Peilicke <sasc...@gmx.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program (see the file COPYING); if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
 __doc__ = 'Generate distribution packages from Python packages on PyPI'
+__docformat__ = 'restructuredtext en'
 __author__ = 'Sascha Peilicke <sasc...@gmx.de>'
-__version__ = '0.3.20'
 
-from py2pack import list, search, fetch, generate, main
+from py2pack import __version__, list, search, fetch, generate, main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack/py2pack.py 
new/py2pack-0.3.21/py2pack/py2pack.py
--- old/py2pack-0.3.20/py2pack/py2pack.py       2011-06-22 12:25:08.000000000 
+0200
+++ new/py2pack-0.3.21/py2pack/py2pack.py       2011-09-22 12:15:56.000000000 
+0200
@@ -17,15 +17,25 @@
 # Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 
-import argparse, os, pwd, sys, urllib, xmlrpclib
+import argparse
+import os
+import pwd
+import sys
+import urllib
+import warnings
+import xmlrpclib
+
 from datetime import datetime
-from jinja2 import Environment, FileSystemLoader, Template
 from pprint import pprint
 
-TEMPLATE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 
'templates') # absolute template path
+warnings.filterwarnings('ignore', 'Module argparse was already imported')   # 
Filter a UserWarning from Jinja2
+import jinja2
+
+__version__ = '0.3.21'
 
+TEMPLATE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 
'templates')  # absolute template path
 pypi = xmlrpclib.ServerProxy('http://python.org/pypi')                      # 
XML RPC connection to PyPI
-env = Environment(loader = FileSystemLoader(TEMPLATE_DIR))                  # 
Jinja2 template environment
+env = jinja2.Environment(loader=jinja2.FileSystemLoader(TEMPLATE_DIR))      # 
Jinja2 template environment
 
 
 def list(args):
@@ -33,27 +43,31 @@
     for package in pypi.list_packages():                                    # 
nothing fancy
         print(package)
 
+
 def search(args):
     print('searching for package {0}...'.format(args.name))
     for hit in pypi.search({'name': args.name}):
         print('found {0}-{1}'.format(hit['name'], hit['version']))
 
+
 def show(args):
     check_or_set_version(args)
     print('showing package {0}...'.format(args.name))
     data = pypi.release_data(args.name, args.version)                       # 
fetch all meta data
     pprint(data)
 
+
 def fetch(args):
     check_or_set_version(args)
     url = newest_download_url(args)
     if not url:
-      print("unable to find a source release for {0}!".format(args.name))   # 
pass out if nothing is found
-      sys.exit(1)
+        print("unable to find a source release for {0}!".format(args.name))  # 
pass out if nothing is found
+        sys.exit(1)
     print('downloading package {0}-{1}...'.format(args.name, args.version))
     print('from {0}'.format(url['url']))
     urllib.urlretrieve(url['url'], url['filename'])                         # 
download the object behind the URL
 
+
 def generate(args):
     check_or_set_version(args)
     if not args.template:
@@ -77,6 +91,7 @@
     finally:
         outfile.close()
 
+
 def check_or_set_version(args):
     if not args.version:                                                    # 
take first version found
         releases = pypi.package_releases(args.name)
@@ -86,19 +101,21 @@
         else:
             args.version = pypi.package_releases(args.name)[0]              # 
return first (current) release number
 
+
 def newest_download_url(args):
     for url in pypi.package_urls(args.name, args.version):                  # 
fetch all download URLs
         if url['packagetype'] == 'sdist':                                   # 
found the source URL we care for
             return url
     return []
 
+
 def template_list():
     return filter(lambda filename: not filename.startswith('.'), 
os.listdir(TEMPLATE_DIR))
 
 
 def main():
-    parser = argparse.ArgumentParser(description = __doc__)
-    parser.add_argument('--version', action='version', version='%(prog)s 0.1')
+    parser = argparse.ArgumentParser(description=__doc__)
+    parser.add_argument('--version', action='version', version='%(prog)s 
{0}'.format(__version__))
     subparsers = parser.add_subparsers(title='commands')
 
     parser_list = subparsers.add_parser('list', help='list all packages on 
PyPI')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack/templates/opensuse.dsc 
new/py2pack-0.3.21/py2pack/templates/opensuse.dsc
--- old/py2pack-0.3.20/py2pack/templates/opensuse.dsc   2011-06-22 
12:01:46.000000000 +0200
+++ new/py2pack-0.3.21/py2pack/templates/opensuse.dsc   2011-09-22 
11:59:11.000000000 +0200
@@ -1,21 +1,5 @@
-#
-# dsc file for package python-{{ name|lower }}
-#
-# Copyright (c) {{ year }} {{ user_name }}.
-#
-# All modifications and additions to the file contributed by third parties
-# remain the property of their copyright owners, unless otherwise agreed
-# upon. The license for this file, and modifications and additions to the
-# file, is the same license as for the pristine package itself (unless the
-# license for the pristine package is not an Open Source License, in which
-# case the license is the MIT License). An "Open Source License" is a
-# license that conforms to the Open Source Definition (Version 1.9)
-# published by the Open Source Initiative.
-
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-
 Format: 1.0
-Source: {{ source_url }}
+Source: {{ name }}
 Version: {{ version }}
 Binary: python-{{ name|lower }}
 Maintainer: {{ user_name }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack/templates/opensuse.spec 
new/py2pack-0.3.21/py2pack/templates/opensuse.spec
--- old/py2pack-0.3.20/py2pack/templates/opensuse.spec  2011-06-22 
12:25:07.000000000 +0200
+++ new/py2pack-0.3.21/py2pack/templates/opensuse.spec  2011-09-22 
11:59:23.000000000 +0200
@@ -49,15 +49,11 @@
 %setup -q -n {{ name }}-%{version}
 
 %build
-export CFLAGS="%{optflags}"
-python setup.py build
+CFLAGS="%{optflags}" python setup.py build
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
-%clean
-rm -rf %{buildroot}
-
 %files
 %defattr(-,root,root,-)
 # You may have to add additional files here (documentation and binaries mostly)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack.egg-info/PKG-INFO 
new/py2pack-0.3.21/py2pack.egg-info/PKG-INFO
--- old/py2pack-0.3.20/py2pack.egg-info/PKG-INFO        1970-01-01 
01:00:00.000000000 +0100
+++ new/py2pack-0.3.21/py2pack.egg-info/PKG-INFO        2011-09-22 
12:48:42.000000000 +0200
@@ -0,0 +1,90 @@
+Metadata-Version: 1.1
+Name: py2pack
+Version: 0.3.21
+Summary: Generate distribution packages from Python packages on PyPI
+Home-page: http://github.com/saschpe/py2pack
+Author: Sascha Peilicke
+Author-email: sasc...@gmx.de
+License: GPLv2
+Description: py2pack
+        =======
+        
+        This script allows to generate RPM spec or DEB dsc files from Python 
modules.
+        It allows to list Python modules or search for them on the Python 
Package Index
+        (PyPI). Conveniently, it can fetch tarballs and changelogs making it an
+        universal tool to package Python modules.
+        
+        
+        Prerequisites
+        =============
+        
+        py2pack needs the argparse_ Python module installed. It is also part 
of the 
+        Python-2.7 Standard Library. Additionally, it uses the Jinja2_ 
templating
+        engine.
+        
+        
+        Usage
+        =====
+        
+        Lets suppose you want to package zope.interface_ and you don't know 
how it is named
+        exactly. First of all, you can search for it and download the source 
tarball if
+        you found the correct module::
+        
+         $ py2pack search zope.interface
+         searching for module zope.interface...
+         found zope.interface-3.6.1
+         $ py2pack fetch zope.interface
+         downloading package zope.interface-3.6.1...
+         from 
http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.6.1.tar.gz
+        
+        As a next step you may want to generate a package recipe for your 
distribution.
+        For RPM_-based distributions (let's use openSUSE_ as an example), you 
want to
+        generate a spec file (named 'python-zope.interface.spec')::
+        
+         $ py2pack generate zope.interface -t opensuse.spec -f 
python-zope.interface.spec
+        
+        The source tarball and the package recipe is all you need to generate 
the RPM_
+        (or DEB_) file. This final step may depend on which distribution you 
use. Again,
+        for openSUSE_ (and by using the `openSUSE Build Service`_), the 
complete recipe is::
+        
+         $ osc mkpac python-zope.interface
+         $ cd python-zope.interface
+         $ py2pack fetch zope.interface
+         $ py2pack generate zope.interface -f python-zope.interface.spec
+         $ osc build
+         ...
+        
+        Depending on the module, you may have to adapt the resulting spec file 
slightly.
+        To get further help about py2pack usage, issue the following command::
+        
+         $ py2pack help
+        
+        
+         :copyright: (c) 2011 Sascha Peilicke.
+         :license: GPLv2, see LICENSE for more details.
+        
+        
+        .. _argparse: http://pypi.python.org/pypi/argparse
+        .. _Jinja2: http://pypi.python.org/pypi/Jinja2 
+        .. _zope.interface: http://pypi.python.org/pypi/zope.interface/
+        .. _openSUSE: http://www.opensuse.org/en/
+        .. _openSUSE Build Service: https://build.opensuse.org/
+        .. _RPM: http://en.wikipedia.org/wiki/RPM_Package_Manager
+        .. _DEB: http://en.wikipedia.org/wiki/Deb_(file_format)
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 4 - Beta
+Classifier: Environment :: Console
+Classifier: Intended Audience :: End Users/Desktop
+Classifier: Intended Audience :: Developers
+Classifier: Intended Audience :: System Administrators
+Classifier: License :: OSI Approved :: GNU General Public License (GPL)
+Classifier: Operating System :: MacOS :: MacOS X
+Classifier: Operating System :: Microsoft :: Windows
+Classifier: Operating System :: POSIX
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python
+Classifier: Topic :: Software Development :: Code Generators
+Classifier: Topic :: Software Development :: Pre-processors
+Requires: argparse
+Requires: Jinja2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack.egg-info/SOURCES.txt 
new/py2pack-0.3.21/py2pack.egg-info/SOURCES.txt
--- old/py2pack-0.3.20/py2pack.egg-info/SOURCES.txt     1970-01-01 
01:00:00.000000000 +0100
+++ new/py2pack-0.3.21/py2pack.egg-info/SOURCES.txt     2011-09-22 
12:48:42.000000000 +0200
@@ -0,0 +1,19 @@
+AUTHORS
+LICENSE
+MANIFEST.in
+README.rst
+setup.py
+doc/py2pack.1
+doc/py2pack.html
+py2pack/__init__.py
+py2pack/py2pack.py
+py2pack.egg-info/PKG-INFO
+py2pack.egg-info/SOURCES.txt
+py2pack.egg-info/dependency_links.txt
+py2pack.egg-info/top_level.txt
+py2pack/templates/fedora.spec
+py2pack/templates/mageia.spec
+py2pack/templates/opensuse.dsc
+py2pack/templates/opensuse.spec
+scripts/py2pack
+test/test_py2pack.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack.egg-info/dependency_links.txt 
new/py2pack-0.3.21/py2pack.egg-info/dependency_links.txt
--- old/py2pack-0.3.20/py2pack.egg-info/dependency_links.txt    1970-01-01 
01:00:00.000000000 +0100
+++ new/py2pack-0.3.21/py2pack.egg-info/dependency_links.txt    2011-09-22 
12:48:42.000000000 +0200
@@ -0,0 +1 @@
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/py2pack.egg-info/top_level.txt 
new/py2pack-0.3.21/py2pack.egg-info/top_level.txt
--- old/py2pack-0.3.20/py2pack.egg-info/top_level.txt   1970-01-01 
01:00:00.000000000 +0100
+++ new/py2pack-0.3.21/py2pack.egg-info/top_level.txt   2011-09-22 
12:48:42.000000000 +0200
@@ -0,0 +1 @@
+py2pack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/scripts/py2pack 
new/py2pack-0.3.21/scripts/py2pack
--- old/py2pack-0.3.20/scripts/py2pack  2010-12-13 08:51:34.000000000 +0100
+++ new/py2pack-0.3.21/scripts/py2pack  2011-08-25 13:43:43.000000000 +0200
@@ -1,2 +1,22 @@
 #!/usr/bin/env python
-from py2pack import main; main()
+# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2010, Sascha Peilicke <sasc...@gmx.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program (see the file COPYING); if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+from py2pack import main
+
+main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/setup.cfg new/py2pack-0.3.21/setup.cfg
--- old/py2pack-0.3.20/setup.cfg        1970-01-01 01:00:00.000000000 +0100
+++ new/py2pack-0.3.21/setup.cfg        2011-09-22 12:48:42.000000000 +0200
@@ -0,0 +1,5 @@
+[egg_info]
+tag_build = 
+tag_date = 0
+tag_svn_revision = 0
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/setup.py new/py2pack-0.3.21/setup.py
--- old/py2pack-0.3.20/setup.py 2011-03-09 10:16:21.000000000 +0100
+++ new/py2pack-0.3.21/setup.py 2011-09-22 12:15:33.000000000 +0200
@@ -1,8 +1,31 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
+#
+# Copyright (c) 2010, Sascha Peilicke <sasc...@gmx.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program (see the file COPYING); if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+import os
+import subprocess
+import sys
+
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
 
-from distutils.core import setup
-import os,subprocess, sys
 import py2pack
 
 
@@ -10,8 +33,8 @@
     """Generate manpage, HTML and PDF documentation.
     """
     try:
-        subprocess.call(["xsltproc", "--output", "doc/py2pack.html", 
"/usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl", 
"doc/py2pack.xml.in"])
-        subprocess.call(["xsltproc", "--output", "doc/py2pack.1", 
"/usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl", 
"doc/py2pack.xml.in"])
+        subprocess.call(["xsltproc", "--output", "doc/py2pack.html", 
"/usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl", 
"doc/src/py2pack.xml.in"])
+        subprocess.call(["xsltproc", "--output", "doc/py2pack.1", 
"/usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl", 
"doc/src/py2pack.xml.in"])
         #subprocess.call(["xsltproc", "--output", "doc/py2pack.fo",
         #                 "--stringparam", "paper.type", "A4",
         #                 "--stringparam", "body.start.indent", "0pt",
@@ -26,23 +49,23 @@
     sys.exit()
 
 setup(
-    name = py2pack.__name__,
-    version = py2pack.__version__,
-    license = "GPLv2",
-    description = py2pack.__doc__,
-    long_description = open('README.rst').read(),
-    author = py2pack.__author__.rsplit(' ', 1)[0],
-    author_email = py2pack.__author__.rsplit(' ', 1)[1][1:-1],
-    url = 'http://github.com/saschpe/py2pack',
-    scripts = ['scripts/py2pack'],
-    packages = ['py2pack'],
-    package_data = {'py2pack': ['templates/*']},
-    data_files = [('share/doc/py2pack', ['AUTHORS', 'LICENSE', 'README.rst']),
-                  ('share/doc/py2pack/html', ['doc/py2pack.html']),
-                  #('share/doc/py2pack/pdf', ['doc/py2pack.pdf']),
-                  ('man/man1', ['doc/py2pack.1'])],
-    requires = ['argparse', 'Jinja2'],
-    classifiers = [
+    name=py2pack.__name__,
+    version=py2pack.__version__,
+    license="GPLv2",
+    description=py2pack.__doc__,
+    long_description=open('README.rst').read(),
+    author=py2pack.__author__.rsplit(' ', 1)[0],
+    author_email=py2pack.__author__.rsplit(' ', 1)[1][1:-1],
+    url='http://github.com/saschpe/py2pack',
+    scripts=['scripts/py2pack'],
+    packages=['py2pack'],
+    package_data={'py2pack': ['templates/*']},
+    data_files=[('share/doc/py2pack', ['AUTHORS', 'LICENSE', 'README.rst']),
+                ('share/doc/py2pack/html', ['doc/py2pack.html']),
+               #('share/doc/py2pack/pdf', ['doc/py2pack.pdf']),
+                ('man/man1', ['doc/py2pack.1'])],
+    requires=['argparse', 'Jinja2'],
+    classifiers=[
         'Development Status :: 4 - Beta',
         'Environment :: Console',
         'Intended Audience :: End Users/Desktop',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.20/test/test_py2pack.py 
new/py2pack-0.3.21/test/test_py2pack.py
--- old/py2pack-0.3.20/test/test_py2pack.py     2011-05-06 16:04:06.000000000 
+0200
+++ new/py2pack-0.3.21/test/test_py2pack.py     2011-08-25 13:43:43.000000000 
+0200
@@ -22,6 +22,7 @@
 
 import py2pack
 
+
 class Test(unittest.TestCase):
     """Unit tests for py2pack."""
 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to