summaryrefslogtreecommitdiff
path: root/zxing-cpp.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-14 08:27:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-14 08:27:49 +0000
commitacc66e3babc24eed684621e7e3e59dec33aecca0 (patch)
tree508091853d31ce67bd29938dae3bc2f4273b7f45 /zxing-cpp.spec
parent37369853c01c77b8dd73a1bfd558c04da9d1b56d (diff)
automatic import of zxing-cppopeneuler23.03
Diffstat (limited to 'zxing-cpp.spec')
-rw-r--r--zxing-cpp.spec29
1 files changed, 1 insertions, 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