Prevent stripping of python module

This allows the debuginfo from the python module to be included
in the debuginfo packages.
epel10
Tom Stellard 2 years ago
parent 6925253fcf
commit fa22c68b1e

@ -1,6 +1,6 @@
Name: zxing-cpp Name: zxing-cpp
Version: 1.2.0 Version: 1.2.0
Release: 7%{?dist} Release: 8%{?dist}
Summary: C++ port of the ZXing ("Zebra Crossing") barcode scanning library Summary: C++ port of the ZXing ("Zebra Crossing") barcode scanning library
# The entire source is ASL 2.0, except: # The entire source is ASL 2.0, except:
@ -102,7 +102,10 @@ popd &>/dev/null
# but we dont get any metadata (dist-info), so its not terribly useful for # but we dont get any metadata (dist-info), so its not terribly useful for
# packaging purposes. Instead, it seems we must re-build the whole library # packaging purposes. Instead, it seems we must re-build the whole library
# through setuptools to get that. # through setuptools to get that.
%cmake -DBUILD_EXAMPLES=OFF -DBUILD_PYTHON_MODULE=ON # CMAKE_BUILD_TYPE=RelWithDebInfo prevents the build from stripping the
# python module after it is built. The stripping happens in
# pybind11_add_module.
%cmake -DBUILD_EXAMPLES=OFF -DBUILD_PYTHON_MODULE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
%cmake_build %cmake_build
pushd wrappers/python pushd wrappers/python
# CMake respects this environment variable. We need to see the compiler # CMake respects this environment variable. We need to see the compiler
@ -149,6 +152,9 @@ popd
%files -n python3-%{name} -f %{pyproject_files} %files -n python3-%{name} -f %{pyproject_files}
%changelog %changelog
* Wed Oct 26 2022 Tom Stellard <tstellar@redhat.com> - 1.2.0-8
- Prevent stripping of python module
* Tue Aug 02 2022 Caolán McNamara <caolanm@redhat.com> 1.2.0-7 * Tue Aug 02 2022 Caolán McNamara <caolanm@redhat.com> 1.2.0-7
- Resolves: rhbz#2113772 FTBFS in Fedora rawhide/f37 - Resolves: rhbz#2113772 FTBFS in Fedora rawhide/f37

Loading…
Cancel
Save