From acc66e3babc24eed684621e7e3e59dec33aecca0 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 14 Sep 2023 08:27:49 +0000 Subject: automatic import of zxing-cpp --- zxing-cpp.spec | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/zxing-cpp.spec b/zxing-cpp.spec index d49a9ac..09fa829 100644 --- a/zxing-cpp.spec +++ b/zxing-cpp.spec @@ -36,17 +36,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. -%package -n python3-%{name} -Summary: Python bindings for the %{name} barcode library - -BuildRequires: python3-devel python3-pip python3-hatchling python3-hatch-vcs python3-wheel -BuildRequires: pybind11-devel cmake chrpath - -Requires: %{name}%{?_isa} = %{version}-%{release} - -%description -n python3-%{name} -%{summary}. - %prep %autosetup -p1 # remove bundled stb libraries: @@ -58,25 +47,12 @@ pushd thirdparty/stb patch -p1 < stb_image.patch popd -# don’t use unversioned “python” interpreter in tests -sed -r -i 's@(COMMAND )python@\1%{python3}@' wrappers/python/CMakeLists.txt - %build -%cmake -DBUILD_EXAMPLES=OFF -DBUILD_PYTHON_MODULE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo +%cmake -DBUILD_EXAMPLES=OFF -DBUILD_PYTHON_MODULE=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo %make_build -pushd wrappers/python -export VERBOSE=1 -%pyproject_build -popd %install %make_install -pushd wrappers/python -%pyproject_install -popd -install -t '%{buildroot}%{python3_sitearch}' -p \ - wrappers/python/zxingcpp.*.so -chrpath --delete %{buildroot}%{python3_sitearch}/zxingcpp.*.so %check @@ -92,9 +68,6 @@ chrpath --delete %{buildroot}%{python3_sitearch}/zxingcpp.*.so %{_libdir}/cmake/ZXing/ %{_libdir}/pkgconfig/zxing.pc -%files -n python3-%{name} -%{python3_sitearch}/* - %changelog * Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 1.2.0-1 - Package init -- cgit v1.2.3