[packages/python-llfuse] - up to 1.3.4
arekm
arekm at pld-linux.org
Mon Jul 2 14:07:19 CEST 2018
commit 429ee303ec2900b1ab65b52948ac2b56718e0fc6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jul 2 14:07:05 2018 +0200
- up to 1.3.4
build.patch | 27 +++++++++++++++++++++++++++
python-llfuse.spec | 27 +++++++++++++--------------
2 files changed, 40 insertions(+), 14 deletions(-)
---
diff --git a/python-llfuse.spec b/python-llfuse.spec
index bcb9fc6..32b42f4 100644
--- a/python-llfuse.spec
+++ b/python-llfuse.spec
@@ -7,23 +7,26 @@
%define module llfuse
Summary: Python bindings for the low level FUSE API
Name: python-%{module}
-Version: 0.40
-Release: 7
+Version: 1.3.4
+Release: 1
License: GPL v2
Group: Libraries/Python
-Source0: https://python-llfuse.googlecode.com/files/llfuse-%{version}.tar.bz2
-# Source0-md5: bd8d07ddb6061ab03816e636efa37b5b
-URL: https://code.google.com/p/python-llfuse/
+Source0: https://bitbucket.org/nikratio/python-llfuse/downloads/%{module}-%{version}.tar.bz2
+# Source0-md5: 43a123c46d5438f15cd6bcafa16a0094
+Patch0: build.patch
+URL: https://github.com/python-llfuse/python-llfuse
BuildRequires: rpmbuild(macros) >= 1.710
BuildRequires: libfuse-devel >= 2.8.0
BuildRequires: rpm-pythonprov
%if %{with python2}
BuildRequires: python-devel
BuildRequires: python-distribute
+BuildRequires: python-contextlib2
%endif
%if %{with python3}
BuildRequires: python3-devel
BuildRequires: python3-distribute
+BuildRequires: python3-contextlib2
BuildRequires: python3-modules
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -51,6 +54,7 @@ Dokumentacja API %{module}.
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
%if %{with python2}
@@ -98,10 +102,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc Changes.txt
-%dir %{py_sitedir}/llfuse
-%{py_sitedir}/llfuse/*.py[co]
-%attr(755,root,root) %{py_sitedir}/llfuse/*.so
+%doc Changes.rst
+%attr(755,root,root) %{py_sitedir}/%{module}.so
%if "%{py_ver}" > "2.4"
%{py_sitedir}/llfuse-*.egg-info
%endif
@@ -111,11 +113,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-%{module}
%defattr(644,root,root,755)
-%doc Changes.txt
-%dir %{py3_sitedir}/%{module}
-%{py3_sitedir}/%{module}/*.py*
-%{py3_sitedir}/%{module}/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/capi*.so
+%doc Changes.rst
+%attr(755,root,root) %{py3_sitedir}/%{module}.*.so
%{py3_sitedir}/%{module}-%{version}-py*.egg-info
%{_examplesdir}/python3-%{module}-%{version}
%endif
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..79064a2
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,27 @@
+diff -ur llfuse-1.3.4.org/src/xattr.h llfuse-1.3.4/src/xattr.h
+--- llfuse-1.3.4.org/src/xattr.h 2016-05-24 02:53:33.000000000 +0200
++++ llfuse-1.3.4/src/xattr.h 2018-07-02 12:51:09.266369364 +0200
+@@ -25,7 +25,11 @@
+ * Linux
+ */
+ #if PLATFORM == PLATFORM_LINUX
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
++
++#ifndef ENOATTR
++# define ENOATTR ENODATA /* No such attribute */
++#endif
+
+ #define EXTATTR_NAMESPACE_USER 0
+ #define EXTATTR_NAMESPACE_SYSTEM 0
+--- llfuse-1.3.4/src/llfuse.c~ 2018-04-29 18:08:28.000000000 +0200
++++ llfuse-1.3.4/src/llfuse.c 2018-07-02 13:27:07.169974273 +0200
+@@ -417,7 +417,7 @@ static CYTHON_INLINE void * PyThread_tss
+ #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
+ #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
+ #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
+- #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
++ #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = (Py_UNICODE)ch)
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
+ #endif
+ #if CYTHON_COMPILING_IN_PYPY
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-llfuse.git/commitdiff/429ee303ec2900b1ab65b52948ac2b56718e0fc6
More information about the pld-cvs-commit
mailing list