Hello community,

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



--------
--- python-argparse/python-argparse.changes     2011-04-01 03:04:51.000000000 
+0200
+++ /mounts/work_src_done/STABLE/python-argparse/python-argparse.changes        
2011-09-22 12:54:49.000000000 +0200
@@ -1,0 +2,13 @@
+Thu Sep 22 10:53:36 UTC 2011 - sasc...@suse.de
+
+- Corrected license to Python-2.0
+
+-------------------------------------------------------------------
+Thu Sep 22 09:24:24 UTC 2011 - sasc...@suse.de
+
+- Set license to Apache-2.0 (SPDX style)
+- Merge doc package back into base package
+- Remove %clean section and authors from description
+- Require python-distribute instead of python-setuptools
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


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

Other differences:
------------------
++++++ python-argparse.spec ++++++
--- /var/tmp/diff_new_pack.fVnzMx/_old  2011-09-26 10:13:44.000000000 +0200
+++ /var/tmp/diff_new_pack.fVnzMx/_new  2011-09-26 10:13:44.000000000 +0200
@@ -15,32 +15,30 @@
 # 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)")}
-
-%define mod_name argparse
 
-Name:           python-%{mod_name}
+Name:           python-argparse
 Version:        1.2.1
-Release:        1
+Release:        0
 Url:            http://code.google.com/p/argparse/
 Summary:        Python command-line parsing library
-License:        Apache 2.0
+License:        Python-2.0
 Group:          Development/Languages/Python
-Source:         %{mod_name}-%{version}.tar.bz2
-Source1:        %{mod_name}-1.1.pdf
+Source:         argparse-%{version}.tar.bz2
+Source1:        argparse-1.1.pdf
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  dos2unix
 BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-distribute
 %if 0%{?suse_version}
 %py_requires
 %if 0%{?suse_version} > 1110
 BuildArch:      noarch
 %endif
 %endif
+Provides:       python-argparse-doc = %{version}
+#TODO: Change back to '<' after next version update:
+Obsoletes:      python-argparse-doc <= %{version}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 %description
 The argparse module provides an easy, declarative interface for
@@ -61,56 +59,25 @@
 * producing more informative usage messages
 * providing a much simpler interface for custom types and actions 
 
-The latest version of argparse, along with API documentation and
-examples can be found at:
-
-  http://code.google.com/p/argparse/
-
-Authors:
---------
-    Steven Bethard <steven.beth...@gmail.com>
-
-%package doc
-License:        Apache
-Summary:        Documentation and examples for %{name}
-Group:          Development/Libraries/Python
-
-%description doc
-This package contains HTML and PDF documentation for %{name} as
-well as examples of how to use them.
-
-
 %prep
-export CFLAGS="%{optflags}"
-%setup -n %{mod_name}-%{version}
-%{__mkdir} html
+%setup -n argparse-%{version}
+mkdir html
 pushd doc
-    # We don't want the source:
-    %{__rm} -rf source
-    %{__mv} * ../html/
-    %{__mv} ../html .
+    mv * ../html/
+    mv ../html .
 popd
-# Avoid warning wrong-file-end-of-line-encoding  
-find doc/html/_static/pygments.css NEWS.txt README.txt -print0 | xargs -0 
dos2unix
+sed -i "s/\r//" NEWS.txt # Avoid warning wrong-file-end-of-line-encoding
 cp %{SOURCE1} doc/
 
 %build
-%{__python} setup.py build
+python setup.py build
 
 %install
-%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} 
%{?suse_version: --record-rpm=INSTALLED_FILES}
-
-%clean
-%{__rm} -rf %{buildroot}
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
-%files %{?suse_version: -f INSTALLED_FILES}
+%files 
 %defattr(-,root,root,-)
-%if 0%{!?suse_version:1}
-%python_sitelib/%{mod_name}*
-%endif
-
-%files doc
-%defattr(-,root,root)
 %doc NEWS.txt README.txt doc/*
+%python_sitelib/*
 
 %changelog


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



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