From ece27c0f0ee7bb49b5a0ea0d6952dc25c41b435b Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 19:11:39 +0000 Subject: Prepare for a new update Reverting patches so we can apply the latest update and changes can be seen in the spec file and sources. --- diff --git a/gphoto2-config.in b/gphoto2-config.in index b6ef5cc..b2f254d 100644 --- a/gphoto2-config.in +++ b/gphoto2-config.in @@ -1,5 +1,11 @@ #! /bin/sh +# leave these definitions here +# they are required for correct interpolation of +# @libdir@ and @includedir@ later on +prefix="@prefix@" +exec_prefix="@exec_prefix@" + usage() { cat < #include -#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP) -/* Pull in USBDEVFS_CONNECT */ -#include -#include -#endif - #ifdef ENABLE_NLS # include # undef _ diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index fe982c4..b0b0bee 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -1019,8 +1019,6 @@ fdi_begin_func (const func_params_t *params, void **data) printf("\n"); printf(" \n"); printf(" \n"); - printf(" \n"); - printf(" \n"); return 0; } @@ -1060,62 +1058,62 @@ fdi_camera_func (const func_params_t *params, return 0; } if (a->usb_vendor) { /* usb product id might be 0! */ - printf(" \n", a->usb_vendor); - printf(" \n", a->usb_product); + printf(" \n", a->usb_vendor); + printf(" \n", a->usb_product); if (a->usb_vendor == 0x05ac) { /* Apple iPhone, PTP user. */ - printf(" \n"); - printf(" \n"); - printf(" \n"); + printf(" \n"); + printf(" \n"); + printf(" \n"); } if (a->device_type & GP_DEVICE_AUDIO_PLAYER) { - printf(" portable_audio_player\n"); - printf(" portable_audio_player\n"); - printf(" user\n"); - printf(" mtp\n"); + printf(" portable_audio_player\n"); + printf(" portable_audio_player\n"); + printf(" user\n"); + printf(" mtp\n"); /* FIXME: needs true formats ... But all of them can do MP3 */ - printf(" audio/mpeg\n"); + printf(" audio/mpeg\n"); } else { - printf(" camera\n"); - printf(" camera\n"); + printf(" camera\n"); + printf(" camera\n"); /* HACK alert ... but the HAL / gnome-volume-manager guys want that */ if (NULL!=strstr(a->library,"ptp")) - printf(" ptp\n"); + printf(" ptp\n"); else - printf(" proprietary\n"); + printf(" proprietary\n"); } /* leave them here even for audio players */ - printf(" %s\n", model); - printf(" true\n"); + printf(" %s\n", model); + printf(" true\n"); if (a->usb_vendor == 0x05ac) { /* Apple iPhone */ - printf(" \n"); printf(" \n"); printf(" \n"); + printf(" \n"); } - printf(" \n"); printf(" \n"); + printf(" \n"); } else if ((a->usb_class) && (a->usb_class != 666)) { - printf(" \n", a->usb_class); - printf(" \n", a->usb_subclass); - printf(" \n", a->usb_protocol); - printf(" camera\n"); - printf(" camera\n"); + printf(" \n", a->usb_class); + printf(" \n", a->usb_subclass); + printf(" \n", a->usb_protocol); + printf(" camera\n"); + printf(" camera\n"); if (a->usb_class == 6) { - printf(" ptp\n"); + printf(" ptp\n"); } else { if (a->usb_class == 8) { - printf(" storage\n"); + printf(" storage\n"); } else { - printf(" proprietary\n"); + printf(" proprietary\n"); } } - printf(" %s\n", model); - printf(" true\n"); - printf(" \n"); + printf(" %s\n", model); + printf(" true\n"); printf(" \n"); printf(" \n"); + printf(" \n"); } } /* camera has USB connection */ return 0; @@ -1124,7 +1122,6 @@ fdi_camera_func (const func_params_t *params, static int fdi_end_func (const func_params_t *params, void *data) { - printf(" \n"); printf(" \n"); printf(" \n"); printf("\n"); @@ -1151,8 +1148,6 @@ fdi_device_begin_func (const func_params_t *params, void **data) printf("\n"); printf(" \n"); printf(" \n"); - printf(" \n"); - printf(" \n"); return 0; } @@ -1196,28 +1191,28 @@ fdi_device_camera_func (const func_params_t *params, /* do not set category. We don't really know what this device really is. * But we do now that is capable of being a camera, so add to capabilities */ - printf(" \n", a->usb_vendor); - printf(" \n", a->usb_product); + printf(" \n", a->usb_vendor); + printf(" \n", a->usb_product); if (params->add_comments) { printf(" \n", a->model); } if (a->device_type & GP_DEVICE_AUDIO_PLAYER) - printf(" portable_audio_player\n"); + printf(" portable_audio_player\n"); else - printf(" camera\n"); - printf(" \n"); + printf(" camera\n"); printf(" \n"); + printf(" \n"); } #if 0 /* would need to be able to merge upwards ... but cannot currently */ else if ((a->usb_class) && (a->usb_class != 666)) { - printf(" \n", a->usb_class); - printf(" \n", a->usb_subclass); - printf(" \n", a->usb_protocol); - printf(" camera\n"); - printf(" \n"); + printf(" \n", a->usb_class); + printf(" \n", a->usb_subclass); + printf(" \n", a->usb_protocol); + printf(" camera\n"); printf(" \n"); printf(" \n"); + printf(" \n"); } #endif } @@ -1227,7 +1222,6 @@ fdi_device_camera_func (const func_params_t *params, static int fdi_device_end_func (const func_params_t *params, void *data) { - printf(" \n"); printf(" \n"); printf(" \n"); printf("\n");