summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Haerry <mh@scrit.ch>2013-08-20 14:03:52 +0200
committerMarcel Haerry <mh@scrit.ch>2013-08-20 14:03:52 +0200
commitdd6f0cf1e361cb4589668b376a5f7e13f1a40de5 (patch)
tree2c307e3824b41dd6534e2c3423d148fc96881900
parent9e58c4d367c1dc493aa386474de701df209034e3 (diff)
adjust patch to mark the library truly as internal/private
-rw-r--r--SOURCES/fix_location.patch4
-rw-r--r--SPECS/python-qrencode.spec2
2 files changed, 3 insertions, 3 deletions
diff --git a/SOURCES/fix_location.patch b/SOURCES/fix_location.patch
index 8c6d1a3..a310be5 100644
--- a/SOURCES/fix_location.patch
+++ b/SOURCES/fix_location.patch
@@ -3,7 +3,7 @@ diff -Naur qrencode-1.01_org/qrencode/__init__.py qrencode-1.01/qrencode/__init_
+++ qrencode-1.01/qrencode/__init__.py 2013-08-08 08:47:21.228000000 +0200
@@ -1,4 +1,4 @@
-from qr_encode import encode as _encode
-+from qrencode.qr_encode import encode as _encode
++from qrencode._qrencode import encode as _encode
import Image
@@ -14,7 +14,7 @@ diff -Naur qrencode-1.01_org/setup.py qrencode-1.01/setup.py
from distutils.core import setup, Extension
-encode = Extension('qr_encode', sources=['qr_encode.c'], libraries=['qrencode'])
-+encode = Extension('qrencode.qr_encode', sources=['qr_encode.c'], libraries=['qrencode'])
++encode = Extension('qrencode._qrencode', sources=['qr_encode.c'], libraries=['qrencode'])
classifiers = """
Development Status :: 4 - Beta
diff --git a/SPECS/python-qrencode.spec b/SPECS/python-qrencode.spec
index 4d06e61..4585859 100644
--- a/SPECS/python-qrencode.spec
+++ b/SPECS/python-qrencode.spec
@@ -34,7 +34,7 @@ A simple wrapper for the C qrencode library.
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
-chmod 0755 %{buildroot}%{python_sitearch}/qrencode/qr_encode.so
+chmod 0755 %{buildroot}%{python_sitearch}/qrencode/_qrencode.so
%check