diff --git a/py3exiv2-link-boost.patch b/py3exiv2-link-boost.patch new file mode 100644 index 0000000..f7cdc84 --- /dev/null +++ b/py3exiv2-link-boost.patch @@ -0,0 +1,13 @@ +Index: py3exiv2-0.8.0/setup.py +=================================================================== +--- py3exiv2-0.8.0.orig/setup.py 2020-09-29 18:30:38.000000000 +0200 ++++ py3exiv2-0.8.0/setup.py 2020-10-20 08:52:35.836907091 +0200 +@@ -37,7 +37,7 @@ if platform.system() == "Darwin": + boostlib = get_libboost_osx() + + else: +- python_version = str(sys.version_info.major) + str(sys.version_info.minor) ++ python_version = str(sys.version_info.major) + boostlib = 'boost_python' + python_version + + setup( diff --git a/python-exiv2.changes b/python-exiv2.changes index 32abe49..5e34b94 100644 --- a/python-exiv2.changes +++ b/python-exiv2.changes @@ -4,6 +4,7 @@ Tue Oct 20 06:39:52 UTC 2020 - Andreas Schneider - Update to version 0.8.0 * Add XmpSeq support * Add a datetime conversion to Python with iso format, update some unittests +- Added py3exiv2-link-boost.patch ------------------------------------------------------------------- Tue Jul 2 14:47:21 UTC 2019 - Tomáš Chvátal diff --git a/python-exiv2.spec b/python-exiv2.spec index 84d2b72..89bd9dc 100644 --- a/python-exiv2.spec +++ b/python-exiv2.spec @@ -26,7 +26,11 @@ Summary: Python3 bindings for the exiv2 library License: GPL-3.0-only Group: Development/Languages/Python URL: https://launchpad.net/py3exiv2 -Source: https://files.pythonhosted.org/packages/source/p/py3exiv2/py3exiv2-%{version}.tar.gz +# +Source0: https://files.pythonhosted.org/packages/source/p/py3exiv2/py3exiv2-%{version}.tar.gz +# +Patch0: py3exiv2-link-boost.patch +# BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -48,7 +52,7 @@ libexiv2. Using python’s built-in data types and standard modules, it provides easy manipulation of image metadata. %prep -%setup -q -n py3exiv2-%{version} +%autosetup -p1 -n py3exiv2-%{version} %build %python_build