Francesco Paolo Lovergine pushed to branch master at Debian GIS Project / 
jeolib-jiplib


Commits:
42f6935b by Francesco Paolo Lovergine at 2025-03-27T15:20:01+01:00
Moved to pybuild use.

- - - - -
9acb576a by Francesco Paolo Lovergine at 2025-03-27T15:29:11+01:00
Now sync d/rules and d/*.install

- - - - -


3 changed files:

- debian/control
- debian/patches/pip-break-sys-pkg.patch
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -51,16 +51,18 @@ Description: ISPRA JRC image processing for geospatial data 
library
  This is an intermediate level library written in C++ with Python
  binding used by PyJeo and possibly other tools.
  .
- This package contains the shared library bindings extension.
+ This package contains the shared library.
 
 Package: python3-jiplib
 Architecture: any
 Section: python
 Depends: ${python3:Depends},
          ${shlibs:Depends},
-         ${misc:Depends}
+         ${misc:Depends},
+         libjiplib1 (= ${binary:Version}),
+         python3-numpy (>=  1:2.1.0)
 Description: Python binding to the ISPRA JRC image processing for geospatial 
data library
  This is an intermediate level library written in C++ with Python
  binding used by PyJeo and possibly other tools.
  .
- This package contains the Python bindings.
+ This package contains the Python classes and bindings.


=====================================
debian/patches/pip-break-sys-pkg.patch
=====================================
@@ -9,6 +9,6 @@ Forwarded: not needed
  )
  INSTALL(CODE
 -  "execute_process(COMMAND ${Python_EXECUTABLE} -m pip install ${_pip_args} 
${CMAKE_CURRENT_BINARY_DIR}/jiplib-${JIPLIB_VERSION}-py3-none-any.whl 
--force-reinstall)"
-+  "execute_process(COMMAND ${Python_EXECUTABLE} -m pip install 
--root-user-action ignore --prefix root --verbose --break-system-packages 
${_pip_args} 
${CMAKE_CURRENT_BINARY_DIR}/jiplib-${JIPLIB_VERSION}-py3-none-any.whl 
--force-reinstall)"
++  "execute_process(COMMAND ${Python_EXECUTABLE} -m pip install 
--root-user-action ignore --prefix usr --verbose --break-system-packages 
${_pip_args} 
${CMAKE_CURRENT_BINARY_DIR}/jiplib-${JIPLIB_VERSION}-py3-none-any.whl 
--force-reinstall)"
    COMPONENT wheels
    )


=====================================
debian/rules
=====================================
@@ -9,23 +9,14 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 include /usr/share/dpkg/architecture.mk
 
 %:
-       dh $@ --buildsystem=cmake --builddirectory=$(CURDIR)/build
+       dh $@ --with python3 --buildsystem=pybuild 
 
-override_dh_auto_configure:
-       dh_auto_configure -- \
-       -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
-       -DCMAKE_INSTALL_PREFIX=/usr \
-       -DLIBRARY_INSTALL_DIR=/usr/lib/$(DEB_BUILD_MULTIARCH) \
-       -DCMAKE_BUILD_TYPE=RelWithDebInfo
-
-override_dh_auto_test:
-       PYTHONPATH=$(CURDIR)/build/build/lib:$(PYTHONPATH) \
-       LD_LIBRARY_PATH=$(CURDIR)/build/build/lib:$(LD_LIBRARY_PATH) \
-       dh_auto_test
+override_dh_python3:
+       DEB_HOST_ARCH=$(DEB_HOST_ARCH) dh_python3 --shebang=/usr/bin/python3
 
 execute_after_dh_auto_install:
        mkdir -p debian/tmp/usr/lib/python3
-       find $(CURDIR)/build/root/local/ -name 'libmiallib.so.*' -delete
-       find $(CURDIR)/build/root/local/ -name 'libjiplib.so.*' -delete
-       mv $(CURDIR)/build/root/local/lib/python*/* debian/tmp/usr/lib/python3/.
+       find $(CURDIR)/.pybuild/*/build/usr/ -name 'libmiallib.so.*' -delete
+       find $(CURDIR)/.pybuild/*/build/usr/ -name 'libjiplib.so.*' -delete
+       mv $(CURDIR)/.pybuild/*/build/usr/lib/python*/* 
debian/tmp/usr/lib/python3/.
        find $(CURDIR)/debian/tmp -name '*.so*' -exec chrpath -d {} \;



View it on GitLab: 
https://salsa.debian.org/debian-gis-team/jeolib-jiplib/-/compare/853edcc931eb09ae6738c6d5ca56fc9aa9c51e7e...9acb576a20dd6899f28f3ff0cff17557ec96cba3

-- 
View it on GitLab: 
https://salsa.debian.org/debian-gis-team/jeolib-jiplib/-/compare/853edcc931eb09ae6738c6d5ca56fc9aa9c51e7e...9acb576a20dd6899f28f3ff0cff17557ec96cba3
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to