Hello community,

here is the log from the commit of package dbus-1-python for openSUSE:Factory 
checked in at 2012-05-29 11:45:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dbus-1-python (Old)
 and      /work/SRC/openSUSE:Factory/.dbus-1-python.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dbus-1-python", Maintainer is "thoe...@suse.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/dbus-1-python/dbus-1-python.changes      
2012-03-19 10:07:03.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.dbus-1-python.new/dbus-1-python.changes 
2012-05-29 11:46:18.000000000 +0200
@@ -1,0 +2,5 @@
+Sun May 27 11:04:49 UTC 2012 - highwaystar...@gmail.com
+
+- dbus-1-python3 package added 
+
+-------------------------------------------------------------------
New Changes file:

--- /dev/null   2012-05-03 01:24:41.895590051 +0200
+++ /work/SRC/openSUSE:Factory/.dbus-1-python.new/dbus-1-python3.changes        
2012-05-29 11:46:18.000000000 +0200
@@ -0,0 +1,8 @@
+-------------------------------------------------------------------
+Sun May 27 11:05:03 UTC 2012 - highwaystar...@gmail.com
+
+- python3 package added
+- api docs currently not built because there is no epydoc for py3
+- dbus-python.h renamed to dbus-python-%{py3_ver}.h
+- шdbus-python.pc renamed to dbus-python-%{py3_ver}.pc
+

New:
----
  dbus-1-python3.changes
  dbus-1-python3.spec

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

Other differences:
------------------
++++++ dbus-1-python3.spec ++++++
#
# spec file for package dbus-1-python3
#
# Copyright (c) 2012 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
# 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/
#


Name:           dbus-1-python3
Version:        1.0.0
Release:        0
Summary:        Python bindings for D-Bus
License:        MIT
Group:          Development/Libraries/Python
Url:            http://www.freedesktop.org/wiki/Software/DBusBindings/
Source0:        
http://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz
#BuildRequires:  epydoc
BuildRequires:  fdupes
BuildRequires:  python3-devel >= 3.2
BuildRequires:  python3-2to3
%if 0%{?suse_version} && 0%{?suse_version} <= 1140
BuildRequires:  docutils
%else
BuildRequires:  python3-docutils
%endif
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
#libxml2 for python3 not avaliable yet
#Requires:       libxml2-python3
Requires:       python3-xml
Requires:       dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' 
dbus-1`)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version} <= 1140
%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version)")}
%endif
Requires:       python(abi) = %{py3_ver}

%description
D-Bus python bindings for use with python programs.

%package -n dbus-1-python3-devel
Summary:        Python bindings for D-Bus
Group:          Development/Libraries/Python
Requires:       dbus-1-python3 = %{version}
Requires:       dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' 
dbus-1`)
Requires:       dbus-1-devel >= %( echo `rpm -q --queryformat 
'%{VERSION}-%{RELEASE}' dbus-1-devel`)

%description -n dbus-1-python3-devel
Developer files for Python bindings for D-Bus.

%prep
%setup -q -n dbus-python-%{version}

%build
2to3 -w -n .
export CFLAGS="%{optflags} -fstack-protector -fno-strict-aliasing -fPIC"
export PYTHON=python3
#api dov require epydoc that currently not avaliable for py3
%configure --docdir=%{_docdir}/dbus-1-python3 --disable-api-docs
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

# Install additional docs
install -pm 0644 AUTHORS COPYING ChangeLog 
%{buildroot}%{_docdir}/dbus-1-python3/
rm -f %{buildroot}%{_docdir}/dbus-1-python3-devel-doc/examples/Makefile*
# Remove empty files (fix rpmlint warning "zero-length")
rm -f %{buildroot}%{_docdir}/dbus-1-python3/TODO*
# Remove files that will be included in dbus-1-python-devel
rm -f 
%{buildroot}%{_docdir}/dbus-1-python3/{API_CHANGES.*,HACKING.*,PY3PORT.*,tutorial.*}

# Install devel docs (do it manually to fix also rpmlint warning 
"files-duplicate" with %%fdupes)
mkdir -p %{buildroot}%{_docdir}/dbus-1-python3-devel-doc
#skip api dir 
cp -a doc/ examples/ %{buildroot}%{_docdir}/dbus-1-python3-devel-doc/
# Remove Makefile* (fix rpmlint warning "makefile-junk")
rm -f %{buildroot}%{_docdir}/dbus-1-python3-devel-doc/examples/Makefile*
#avoid conflicts with py2

mv %{buildroot}%{_includedir}/dbus-1.0/dbus/dbus-python.h \
   %{buildroot}%{_includedir}/dbus-1.0/dbus/dbus-python-%{py3_ver}.h
mv %{buildroot}%{_libdir}/pkgconfig/dbus-python.pc \
   %{buildroot}%{_libdir}/pkgconfig/dbus-python-%{py3_ver}.pc

%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%doc %{_docdir}/dbus-1-python3/
%{python3_sitelib}/dbus
%{python3_sitearch}/_dbus_*.so
%{python3_sitearch}/_dbus_*.la
%files -n dbus-1-python3-devel
%defattr(-,root,root,-)
%doc %{_docdir}/dbus-1-python3-devel-doc/
#this files just to avoid confict
%{_includedir}/dbus-1.0/dbus/dbus-python-%{py3_ver}.h
%{_libdir}/pkgconfig/dbus-python-%{py3_ver}.pc

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

Reply via email to