Hello community,
here is the log from the commit of package python3-smbc for openSUSE:Factory checked in at 2013-09-03 22:06:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-smbc (Old)
and /work/SRC/openSUSE:Factory/.python3-smbc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-smbc"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-smbc/python3-smbc.changes 2013-06-19 15:52:47.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-smbc.new/python3-smbc.changes 2013-09-03 22:06:37.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Sep 2 21:51:50 UTC 2013 - zaitor@opensuse.org
+
+- Add python3-smbc-pkg-config.patch, fixes build with samba 4.
+
+-------------------------------------------------------------------
New:
----
python3-smbc-pkg-config.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-smbc.spec ++++++
--- /var/tmp/diff_new_pack.PlBeyO/_old 2013-09-03 22:06:37.000000000 +0200
+++ /var/tmp/diff_new_pack.PlBeyO/_new 2013-09-03 22:06:37.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package python-smbc
+# spec file for package python3-smbc
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+
%define mod_name pysmbc
Name: python3-smbc
@@ -25,6 +26,8 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://cyberelk.net/tim/software/pysmbc/
Source: http://cyberelk.net/tim/data/pysmbc/%{mod_name}-%{version}.tar.bz2
+# PATCH-FIX-UPSTREAM python3-smbc-pkg-config.patch zaitor@opensuse.org -- Add pkg-config support, fixes build with samba 4. Patch copied from fedora.
+Patch0: python3-smbc-pkg-config.patch
Summary: Python bindings for samba clients (libsmbclient)
License: GPL-2.0+
Group: Development/Libraries/Python
@@ -34,6 +37,7 @@
%prep
%setup -q -n %{mod_name}-%{version}
+%patch0 -p1
%build
CFLAGS="%{optflags} -DVERSION=\\\"%version\\\"" \
++++++ python3-smbc-pkg-config.patch ++++++
diff -up pysmbc-1.0.13/Makefile.pkg-config pysmbc-1.0.13/Makefile
--- pysmbc-1.0.13/Makefile.pkg-config 2010-08-22 15:59:36.000000000 +0100
+++ pysmbc-1.0.13/Makefile 2012-11-21 12:44:29.051173967 +0000
@@ -4,7 +4,7 @@ SDIST_ARGS=--formats=bztar -d.
smbc.so: force
python setup.py build
- mv build/lib*/$@ .
+ mv build/lib*/smbc*.so .
doc: smbc.so
rm -rf html
@@ -14,7 +14,7 @@ doczip: doc
cd html && zip ../smbc-html.zip *
clean:
- -rm -rf build smbc.so *.pyc tests/*.pyc *~ tests/*~
+ -rm -rf build smbc*.so *.pyc tests/*.pyc *~ tests/*~
dist:
python setup.py sdist $(SDIST_ARGS)
diff -up pysmbc-1.0.13/setup.py.pkg-config pysmbc-1.0.13/setup.py
--- pysmbc-1.0.13/setup.py.pkg-config 2012-02-15 16:12:44.000000000 +0000
+++ pysmbc-1.0.13/setup.py 2012-11-21 12:45:05.362285519 +0000
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-## Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2011 Red Hat, Inc
+## Copyright (C) 2002, 2005, 2006, 2007, 2008, 2010, 2011, 2012 Red Hat, Inc
## Copyright (C) 2010 Open Source Solution Technology Corporation
## Authors:
## Tim Waugh