summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Rękorajski2016-05-07 18:16:25 (GMT)
committerJan Rękorajski2016-05-07 18:16:25 (GMT)
commitd99a1f776d29d3c38ab88b7786438f0d44bb04c5 (patch)
tree2bb34a271a5437c6cdecfd809022443193e9456e
parent36d24229c9a5c667fdc0ee23bd245b7735ee7f50 (diff)
downloadpython-smbc-master.zip
python-smbc-master.tar.gz
- help build system find libsmbclientHEADauto/th/python-smbc-1.0.13-3master
- rel 3
-rw-r--r--python-smbc.spec10
1 files changed, 5 insertions, 5 deletions
diff --git a/python-smbc.spec b/python-smbc.spec
index 90ffb43..9094965 100644
--- a/python-smbc.spec
+++ b/python-smbc.spec
@@ -1,7 +1,7 @@
Summary: Python bindings for the libsmbclient API from Samba
Name: python-smbc
Version: 1.0.13
-Release: 2
+Release: 3
License: GPL v2
Group: Libraries/Python
Source0: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{version}.tar.bz2
@@ -9,6 +9,7 @@ Source0: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{version}.tar.bz2
Patch0: %{name}-memory_leak.patch
URL: http://cyberelk.net/tim/data/pysmbc/
BuildRequires: libsmbclient-devel
+BuildRequires: pkgconfig
BuildRequires: python-devel >= 1:2.5
BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
@@ -23,15 +24,14 @@ Python bindings for the libsmbclient API from Samba.
%patch0 -p1
%build
+CFLAGS="%{rpmcflags} `pkg-config --cflags smbclient`"
+LDFLAGS="%{rpmldflags} `pkg-config --libs smbclient`"
%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%py_install \
- --install-purelib=%{py_sitedir} \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
%py_postclean