From b07ad9fe51d5324652808b1388ddea9bc7626b273ebdfe80df2916b172a490f2 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 18 Oct 2021 14:51:57 +0000 Subject: [PATCH] Accepting request 926033 from home:msmeissn:branches:graphics - split out libgphoto2_port for now to meet new shared library policy requirements. bsc#1191764 OBS-URL: https://build.opensuse.org/request/show/926033 OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=218 --- baselibs.conf | 2 ++ libgphoto2.changes | 6 ++++++ libgphoto2.spec | 26 ++++++++++++++++++++++++-- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index bbb6ad7..d5baa9a 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1,5 +1,7 @@ +libgphoto2_port12 libgphoto2-6 libgphoto2-devel requires "libexif-devel-" requires "libusb-1_0-devel-" requires "libgphoto2-6- = %version" + requires "libgphoto2_port12- = %version" diff --git a/libgphoto2.changes b/libgphoto2.changes index 12a2ada..693bb07 100644 --- a/libgphoto2.changes +++ b/libgphoto2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 18 14:27:17 UTC 2021 - Marcus Meissner + +- split out libgphoto2_port for now to meet new shared library policy + requirements. bsc#1191764 + ------------------------------------------------------------------- Sun Feb 21 12:11:08 UTC 2021 - Marcus Meissner diff --git a/libgphoto2.spec b/libgphoto2.spec index 67e38ca..405baee 100644 --- a/libgphoto2.spec +++ b/libgphoto2.spec @@ -64,6 +64,12 @@ Requires(post): /sbin/ldconfig Requires(post): udev Requires(postun): udev +%package -n libgphoto2_port12 +Summary: Port drivers for the libgphoto2 digital camera library +Group: System/Libraries +Requires(pre): /sbin/ldconfig +Requires(post): /sbin/ldconfig + %package doc Summary: Documentation for libgphoto2 Group: Documentation/Other @@ -73,6 +79,7 @@ Summary: Development headers for libgphoto2 Group: Development/Libraries/C and C++ Requires: libexif-devel Requires: libgphoto2-%major = %version +Requires: libgphoto2_port12 = %version Requires: libusb-1_0-devel %package devel-doc @@ -108,6 +115,15 @@ or by running gphoto2 --list-cameras +%description -n libgphoto2_port12 +gPhoto (GNU Photo) is a set of libraries for previewing, retrieving, +and capturing images from a range of supported digital cameras to your +local hard drive. It does not support digital cameras based on the USB +storage protocol as those can be mounted by Linux directly. + +This package contains the port drivers (e.g. the USB drivers, the PTP/IP +driver). + %description doc gPhoto (GNU Photo) is a set of libraries for previewing, retrieving, and capturing images from a range of supported digital cameras to your @@ -197,15 +213,18 @@ find "%buildroot/%_libdir" -type f -name "*.la" -delete %files -n libgphoto2-%major %defattr(-,root,root) %_libdir/libgphoto2 -%_libdir/libgphoto2_port # support files for konica camlib %_datadir/%name %_libdir/libgphoto2.so.* -%_libdir/libgphoto2_port.so.* %if 0%{?suse_version} > 1230 %_udevhwdbdir/20-gphoto.hwdb %endif %_udevrulesdir/40-libgphoto2.rules + +%files -n libgphoto2_port12 +%defattr(-,root,root) +%_libdir/libgphoto2_port +%_libdir/libgphoto2_port.so.* %_datadir/libgphoto2_port %files -n libgphoto2-doc @@ -231,6 +250,9 @@ find "%buildroot/%_libdir" -type f -name "*.la" -delete %defattr(-,root,root) %doc apidocs README.apidocs +%post -n libgphoto2_port12 -p /sbin/ldconfig +%postun -n libgphoto2_port12 -p /sbin/ldconfig + %post -n %name-%major /sbin/ldconfig %if 0%{?suse_version} > 1230