Hello community,

here is the log from the commit of package python-mpservlets for 
openSUSE:Factory
checked in at Fri Mar 25 14:42:14 CET 2011.



--------
--- python-mpservlets/python-mpservlets.changes 2010-05-07 02:23:36.000000000 
+0200
+++ /mounts/work_src_done/STABLE/python-mpservlets/python-mpservlets.changes    
2011-03-15 14:00:01.000000000 +0100
@@ -1,0 +2,8 @@
+Tue Mar 15 12:58:11 UTC 2011 - [email protected]
+
+- Spec file cleanup:
+  * Removed authors from description
+  * Use short license scheme (APLv2 in this case)
+  * Fix build errors
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


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

Other differences:
------------------
++++++ python-mpservlets.spec ++++++
--- /var/tmp/diff_new_pack.DSamwd/_old  2011-03-25 14:33:25.000000000 +0100
+++ /var/tmp/diff_new_pack.DSamwd/_new  2011-03-25 14:33:25.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package python-mpservlets (Version 1.1.6)
+# spec file for package python-mpservlets
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,26 +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:           python-mpservlets
-Summary:        Mod_python Servlets - a mod_python handler
-License:        Apache License, Version 2.0
-Group:          Development/Libraries/Python
+%define mod_name mpservlets
+
+Name:           python-%{mod_name}
 Version:        1.1.6
-Release:        22
-Url:            http://www.astro.umass.edu/~dpopowich/python/mpservlets/
+Release:        23
+Url:            http://www.astro.umass.edu/~dpopowich/python/mpservlets
+Summary:        Mod_python Servlets - a mod_python handler
+License:        APLv2
+Group:          Development/Languages/Python
+Source:         %{mod_name}-%{version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
+%if 0%{?suse_version}
 BuildRequires:  apache2-devel
-BuildRequires:  fdupes
-%if 0%{?suse_version} >= 1120
+%py_requires
+%if 0%{?suse_version} > 1110
 BuildArch:      noarch
+BuildRequires:  fdupes
+%endif
+%else
+BuildRequires:  apache-devel
 %endif
-Source:         mpservlets-%{version}.tar.bz2
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %define         apache_serverroot %(/usr/sbin/apxs2 -q DATADIR)
 %define         apache_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR)
-%py_requires
 
 %description
 A mod_python handler that uses instances of subclasses of class Servlet (thus
@@ -42,13 +51,8 @@
 of methods are called on the instance, the output of such being sent to the
 client as the response.  This handler was inspired by WebWare. 
 
-Author: 
--------
-    Daniel J. Popowich
-
-
 %package doc
-License:        Apache License, Version 2.0
+License:        APLv2
 Summary:        API Reference in HTML and PDF
 Group:          Documentation/Other
 Requires:       %name = %version
@@ -60,13 +64,8 @@
 which uses simple, special markup in python doc strings, so the source code is
 well documented as well.
 
-Author:
--------
-    Daniel J. Popowich
-
-
 %package tutorial
-License:        Apache License, Version 2.0
+License:        APLv2
 Summary:        A tutorial on developing web applications using servlets
 Group:          Documentation/Other
 Requires:       %name = %version
@@ -74,29 +73,20 @@
 %description tutorial
 This package contains a tutorial on developing web applications using %name.
 
-Author:
--------
-    Daniel J. Popowich
-
-
 %prep
-%setup -q -n mpservlets-%{version}
+%setup -q -n %{mod_name}-%{version}
 
 %build
 
 %install
-python setup.py install --root=%{buildroot} \
-                        --record-rpm=INSTALLED_FILES --prefix=%{_prefix}
-#
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 # install documentation
 mkdir -p %{buildroot}/%_defaultdocdir/%{name}
 install -m644 README LICENSE %{buildroot}/%_defaultdocdir/%{name}/
 cp -r Doc %{buildroot}/%_defaultdocdir/%{name}/
-#
 # install the tutorial
 mkdir -p %{buildroot}/%{apache_serverroot}/%{name}-tutorial
 cp -r tutorial/* %{buildroot}/%{apache_serverroot}/%{name}-tutorial/ 
-#
 # install an apache config
 mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d/
 cat > %{buildroot}/%{apache_sysconfdir}/conf.d/%{name}-tutorial.conf << EOF
@@ -111,18 +101,19 @@
   allow from all
 </Directory>
 EOF
-
+%if 0%{?suse_version} > 1110
 %fdupes %{buildroot}/%_defaultdocdir
+%endif
 
 %clean
 rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %dir %_defaultdocdir/%{name}
 %doc %_defaultdocdir/%{name}/README
 %doc %_defaultdocdir/%{name}/LICENSE
-%{python_sitelib}/*
+%python_sitelib/*
 
 %files doc
 %defattr(-,root,root)


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



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to