Hello community, here is the log from the commit of package python-scgi for openSUSE:Factory checked in at 2017-07-19 11:21:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-scgi (Old) and /work/SRC/openSUSE:Factory/.python-scgi.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-scgi" Wed Jul 19 11:21:30 2017 rev:17 rq:510907 version:1.14 Changes: -------- --- /work/SRC/openSUSE:Factory/python-scgi/python-scgi.changes 2013-05-02 11:44:45.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-scgi.new/python-scgi.changes 2017-07-19 12:21:54.824699545 +0200 @@ -1,0 +2,7 @@ +Mon Jul 17 07:14:43 UTC 2017 - mplus...@suse.com + +- Cleanup spec file with spec cleaner +- Provide python2 version of package to be consisten with python + packaging + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-scgi.spec ++++++ --- /var/tmp/diff_new_pack.W5EaGt/_old 2017-07-19 12:21:55.376621662 +0200 +++ /var/tmp/diff_new_pack.W5EaGt/_new 2017-07-19 12:21:55.376621662 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-scgi # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,45 +16,38 @@ # +%define apxs %{_sbindir}/apxs2 +%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) +%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) Name: python-scgi Version: 1.14 Release: 0 -# -# -BuildRequires: apache2-devel -BuildRequires: pcre-devel -BuildRequires: python-devel -%define apxs /usr/sbin/apxs2 -%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) -%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) -# -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: Python implementation of the SCGI protocol +License: SUSE-Python-1.6 +Group: Development/Libraries/Python Url: http://www.mems-exchange.org/software/scgi/ # repacked from http://quixote.python.ca/releases/scgi-%{version}.tar.gz -# Source: http://python.ca/scgi/releases/scgi-%{version}.tar.gz Patch0: python-scgi-newstyle-classes.patch Patch1: python-scgi-1.13_documentation_path.patch Patch2: python-scgi-apache24.patch -# -Summary: Python implementation of the SCGI protocol -License: SUSE-Python-1.6 -Group: Development/Libraries/Python +BuildRequires: apache2-devel +BuildRequires: pcre-devel +BuildRequires: python-devel +Provides: python2-scgi = %{version} %description -The SCGI protocol is a replacement for the Common Gateway Interface -(CGI) protocol. It is a standard for applications to interface with -HTTP servers. It is similar to FastCGI but is designed to be easier to -implement. +The SCGI protocol is a replacement for the Common Gateway Interface (CGI) +protocol. It is a standard for applications to interface with HTTP servers. +It is similar to FastCGI but is designed to be easier to implement. This package contains the python bindings. %package -n apache2-mod_scgi -Requires: %{apache_mmn} -Requires: apache2 -# Summary: Apache module named mod_scgi that implements the client side of the protocol Group: Development/Libraries/Python +Requires: %{apache_mmn} +Requires: apache2 %description -n apache2-mod_scgi The SCGI protocol is a replacement for the Common Gateway Interface @@ -67,32 +60,27 @@ To load mod_python into Apache, run the command "a2enmod scgi" as root. %prep -%setup -n scgi-%{version} +%setup -q -n scgi-%{version} %patch0 -p1 %patch1 %patch2 -p1 %build CFLAGS="%{optflags}" \ -%{__python} setup.py build +python setup.py build pushd apache2 %{apxs} -c mod_scgi.c popd %install -%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot} --record-rpm %{name}.files -%{__install} -D -m 0755 apache2/.libs/mod_scgi.so %{buildroot}%{apache_libexecdir}/mod_scgi.so -%{__cp} apache2/README.txt README.apache2.txt - -%clean -%{__rm} -rf %{buildroot} +python setup.py install --prefix=%{_prefix} --root %{buildroot} --record-rpm %{name}.files +install -Dpm 0755 apache2/.libs/mod_scgi.so %{buildroot}%{apache_libexecdir}/mod_scgi.so +cp apache2/README.txt README.apache2.txt %files -f %{name}.files -%defattr(-,root,root) %doc README.txt cgi2scgi.c CHANGES.txt LICENSE.txt doc/guide.html cgi2scgi.c %files -n apache2-mod_scgi -%defattr(-,root,root) %{apache_libexecdir}/mod_scgi.so %doc README.txt CHANGES.txt LICENSE.txt README.apache2.txt doc/guide.html