2007-01-08 17:45:38 +01:00
|
|
|
#
|
2011-04-21 12:05:33 +02:00
|
|
|
# spec file for package libgphoto2
|
2007-01-08 17:45:38 +01:00
|
|
|
#
|
- updated to 2.5.28 release
general:
* OS/2 support removed (broken and unused since at least 2006)
* remove built-in rpm packaging (use distro packaging instead)
* remove linux-hotplug rule creation (removed from distros around 2006)
* remaining text which was iso-8859 is UTF-8 now (except one po file)
* To override docdir and htmldir, use configure arguments --docdir=
and --htmldir= instead of --with-doc-dir= and --with-html-dir=
* some code cleanups, especially handling of include files and i18n handling
ptp2:
* wait event
* property changes now reported with "'name' to 'value'" added
* object info changes now reported as FILE_CHANGED events (e.g. if you change protection flags)
* Nikon J1: capture fixed
* Olympus: fixed that wait time was twice as long as required if no events arrived
* Sigma Fp: added basic beta support for capture, live view and config.
* Sony:
* mark all widgets as read-write again, read-only logic was not 100% correct
* speed-ups and fixes to the stepping based config setting
* Canon EOS
* handle newer EOS R series reporting of configs (ISO, Aperture, Shutterspeed)
* track UI lock state to avoid device busy reports
* fixed "zoom" range settings (for lenses with powered zoom, also for today Powershot)
* Fuji:
* ptpip improvements
* bug fixes
* some Fuji cameras have now liveview only for webcam (need new firmware)
* various small fixes and code cleanups
* New ids:
* Sony Alpha-RX1R II, ILCE-7C, ZV-E10, A6600, DSC HX-80, ILCE-7RM3A, ILCE-7RM4A, DSC-A7S III
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=219
2022-01-03 13:41:29 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-08 17:45:38 +01:00
|
|
|
#
|
2008-08-21 21:18:47 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
- updated to 2.5.24 release
- ptp2:
* GoPro: fixed all images not visible bug
* Canon EOS: lock/unlock ui before more operations
* Canon Powershot SX / EOS M: some setup adjustments to make powershot sx work better
* Nikon Keymission 170: try override opcodes to allow capture
* Nikon DSLR: fixed a regression where 5 seconds was longer image capture shutterspeed
* Sony: adjusted manualfocusing not to autofocus
* Fuji: access ISO config
* Sony: fixed manual focusing
* Sony: specify capturetarget on camera, available on current 2019/2020 Sony
* bugfixes
* New ids added:
* Sony Alpha RX100V, A7s, RX0 II,
* Nikon Z50, Coolpix L810, KeyMission 170
* Canon PowerShot SX530HS, SX 620HS,
* Canon EOS 2000D, 1500D, R2, M6 Mark 2, 250D,
* Fuji X-A5, X-E3, GFX100
* GoPro Hero 7 White, 7 Silver, 7 Black, 8 Black
- lumix:
* New WIFI Lumix camera driver was added, using curl and libxml2.
Lots of abilities supported already, also capture preview.
However capture itself is not yet working.
This driver needs libxml2 and libcurl to be built.
- all:
* Selecting camera libraries has changed a bit.
--camlibs=everything will select all and outdated drivers
--camlibs=standard will select "current day" drivers
--camlibs=standard,outdated will select "current day" and "outdated" drivers
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=206
2020-02-23 17:20:17 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-08 17:45:38 +01:00
|
|
|
#
|
|
|
|
|
2012-02-19 00:57:45 +01:00
|
|
|
|
2015-08-07 09:49:31 +02:00
|
|
|
%if %( pkg-config --modversion udev ) > 190
|
2012-10-17 14:59:38 +02:00
|
|
|
%define _udevrulesdir /usr/lib/udev/rules.d
|
|
|
|
%else
|
|
|
|
%define _udevrulesdir /lib/udev/rules.d
|
|
|
|
%endif
|
|
|
|
|
2012-09-26 21:00:16 +02:00
|
|
|
%define major 6
|
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
Name: libgphoto2
|
2011-12-11 14:00:24 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2014-06-20 10:39:13 +02:00
|
|
|
BuildRequires: gd-devel
|
2011-12-11 14:00:24 +01:00
|
|
|
BuildRequires: libexif-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
2011-11-19 21:16:53 +01:00
|
|
|
BuildRequires: libtool
|
2011-12-11 14:00:24 +01:00
|
|
|
BuildRequires: libusb-1_0-devel
|
2013-05-06 10:24:41 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2011-12-11 14:00:24 +01:00
|
|
|
BuildRequires: lockdev-devel
|
|
|
|
BuildRequires: pkg-config
|
2015-08-07 09:49:31 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2013-10-01 09:21:24 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%endif
|
2022-04-19 14:45:01 +02:00
|
|
|
URL: https://gphoto.sourceforge.io/
|
2008-11-02 15:43:02 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgphoto2-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-08 17:45:38 +01:00
|
|
|
Summary: A Digital Camera Library
|
- updated to 2.5.24 release
- ptp2:
* GoPro: fixed all images not visible bug
* Canon EOS: lock/unlock ui before more operations
* Canon Powershot SX / EOS M: some setup adjustments to make powershot sx work better
* Nikon Keymission 170: try override opcodes to allow capture
* Nikon DSLR: fixed a regression where 5 seconds was longer image capture shutterspeed
* Sony: adjusted manualfocusing not to autofocus
* Fuji: access ISO config
* Sony: fixed manual focusing
* Sony: specify capturetarget on camera, available on current 2019/2020 Sony
* bugfixes
* New ids added:
* Sony Alpha RX100V, A7s, RX0 II,
* Nikon Z50, Coolpix L810, KeyMission 170
* Canon PowerShot SX530HS, SX 620HS,
* Canon EOS 2000D, 1500D, R2, M6 Mark 2, 250D,
* Fuji X-A5, X-E3, GFX100
* GoPro Hero 7 White, 7 Silver, 7 Black, 8 Black
- lumix:
* New WIFI Lumix camera driver was added, using curl and libxml2.
Lots of abilities supported already, also capture preview.
However capture itself is not yet working.
This driver needs libxml2 and libcurl to be built.
- all:
* Selecting camera libraries has changed a bit.
--camlibs=everything will select all and outdated drivers
--camlibs=standard will select "current day" drivers
--camlibs=standard,outdated will select "current day" and "outdated" drivers
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=206
2020-02-23 17:20:17 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2011-12-11 14:00:24 +01:00
|
|
|
Group: Hardware/Camera
|
2022-07-02 11:41:11 +02:00
|
|
|
Version: 2.5.30
|
2011-12-11 14:00:24 +01:00
|
|
|
Release: 0
|
- updated to 2.5.27 release
ptp2:
* report filesizes larger than 4GB correctly
* download files larger than 4GB
* empty ptp strings are reported as "", not as NULL
* report more MTP object properties
* Nikon
* download of files larger than 4GB using getpartial object method
* handle new application mode
* handle new eventex fetcher on Z series
* fixed movie on recent Z series
* report liveview and movie prohibit conditions, as errors and also in configuration tree
* some Nikon 1 V1 enhancements (the first camera of the 1 series is a bit special)
* report filesize > 4GB correctly, if possible
* Canon EOS:
* EOS M6 Mark 2 is actually more like a EOS DSLR and fully capable, added some work
* Handle OLCINFO for M6 Mark 2 and EOS R5 and new cameras
* added current list of autoexposuremode to expose also Fv and friends
* Canon Liveview size is encoded in "output" (PC / MOBILE / MOBILE2 variants are the different livesizes), try to expose seperately as "liveviewsize"
* decode more options, nickname, eosmoviemode (color/bw), strobofiring, eventmode, flashcharged, oneshotrawon
* bugfixes
* Sony Alpha:
* report f-numbers enum with fixed list
* fixed liveview taking on a new model
* Panasonic
* implement liveviewsize
* implement movie recording ( using --set-config movie=1/0 )
* more doc and minor fixes
* ptp/ip: allow building on Windows
* New IDS:
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=216
2021-02-21 13:11:48 +01:00
|
|
|
Source0: https://downloads.sourceforge.net/project/gphoto/libgphoto/%version/%name-%version.tar.xz
|
|
|
|
Source1: https://downloads.sourceforge.net/project/gphoto/libgphoto/%version/%name-%version.tar.xz.asc
|
- Updated to 2.5.2
ptp2:
* Fixed Raspberry Pi and USB 3.0 "connect only once" problem.
* Experimental Olympus E-series (not Pen) remote control support. Try in "Control" mode.
* Nikon DSLR: real movie capture! (use --set-config movie=1/0 and --wait-event)
* New ids:
Sony: DSC-A900, SLT-A350, DSC-RX1, HX300, NEX-3N
Nikon Coolpix: P80, L820, S9500, S620, P520, S2500, S2600
Nikon Coolpix A
Nikon DSLR: D2Xs, D4, D7100
Nikon J2
Canon Powershot: S100, A1300IS, A2300IS,
Canon EOS: 700D, 100D
Fuji FinePix: H20EXR, X20
Samsung: NX1000, EK-GC100
Also various MTP device ids merged from libmtp.
* ptpip: major/minor number was switched in init packet.
* Nikon DSLR: out of focus during capture fixed, various bugfixes
* Nikon "controlmode" config for unlocking the camera.
* Canon DSLR: "keepdeviceon" pinging in get_config, liveview
* Canon thumbnail retrieval fixed.
* Lots of work on getting Olympus E-series DSLRs in Control mode
to run.
canon:
* wait-for-event: handle when camera goes offline during waiting.
* fixed mtime 0 (Jan 1 1970) issue when downloading files and using --filename
sierra:
* Fixed the Nikon Coolpix 4300 and 2500 USB over SCSI capture mode.
* Ignore register 4 read errors after capture as Nikon does not supply them.
* added commented code on how to switch the Coolpix 2500 to RAW DIAG mode.
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=98
2013-05-05 22:55:54 +02:00
|
|
|
Source2: %name.keyring
|
|
|
|
Source3: baselibs.conf
|
2007-01-08 17:45:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-09-26 21:00:16 +02:00
|
|
|
|
2017-10-06 12:07:51 +02:00
|
|
|
%package -n libgphoto2-%major
|
2012-09-26 21:00:16 +02:00
|
|
|
Summary: A Digital Camera Library
|
2017-10-06 12:07:51 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires(pre): /sbin/ldconfig
|
|
|
|
Requires(post): /sbin/ldconfig
|
2016-06-12 21:02:23 +02:00
|
|
|
Requires(post): udev
|
|
|
|
Requires(postun): udev
|
2008-02-29 15:51:51 +01:00
|
|
|
|
2021-10-18 16:51:57 +02:00
|
|
|
%package -n libgphoto2_port12
|
|
|
|
Summary: Port drivers for the libgphoto2 digital camera library
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires(pre): /sbin/ldconfig
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
|
2015-12-30 11:09:55 +01:00
|
|
|
%package doc
|
2017-10-06 12:07:51 +02:00
|
|
|
Summary: Documentation for libgphoto2
|
2016-07-05 22:56:32 +02:00
|
|
|
Group: Documentation/Other
|
2015-12-30 11:09:55 +01:00
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development headers for libgphoto2
|
2016-07-05 22:56:32 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-03-01 20:50:08 +01:00
|
|
|
Requires: libexif-devel
|
2017-10-06 12:07:51 +02:00
|
|
|
Requires: libgphoto2-%major = %version
|
2021-10-18 16:51:57 +02:00
|
|
|
Requires: libgphoto2_port12 = %version
|
2012-02-22 11:10:30 +01:00
|
|
|
Requires: libusb-1_0-devel
|
2007-01-08 17:45:38 +01:00
|
|
|
|
2015-12-30 11:09:55 +01:00
|
|
|
%package devel-doc
|
|
|
|
Summary: Development documentation for libgphoto2
|
2017-10-06 12:07:51 +02:00
|
|
|
Group: Documentation/HTML
|
2015-12-30 11:09:55 +01:00
|
|
|
Recommends: libgphoto2-devel
|
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
%description
|
|
|
|
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. Those can be mounted by Linux directly.
|
|
|
|
|
- Updated to 2.5.2
ptp2:
* Fixed Raspberry Pi and USB 3.0 "connect only once" problem.
* Experimental Olympus E-series (not Pen) remote control support. Try in "Control" mode.
* Nikon DSLR: real movie capture! (use --set-config movie=1/0 and --wait-event)
* New ids:
Sony: DSC-A900, SLT-A350, DSC-RX1, HX300, NEX-3N
Nikon Coolpix: P80, L820, S9500, S620, P520, S2500, S2600
Nikon Coolpix A
Nikon DSLR: D2Xs, D4, D7100
Nikon J2
Canon Powershot: S100, A1300IS, A2300IS,
Canon EOS: 700D, 100D
Fuji FinePix: H20EXR, X20
Samsung: NX1000, EK-GC100
Also various MTP device ids merged from libmtp.
* ptpip: major/minor number was switched in init packet.
* Nikon DSLR: out of focus during capture fixed, various bugfixes
* Nikon "controlmode" config for unlocking the camera.
* Canon DSLR: "keepdeviceon" pinging in get_config, liveview
* Canon thumbnail retrieval fixed.
* Lots of work on getting Olympus E-series DSLRs in Control mode
to run.
canon:
* wait-for-event: handle when camera goes offline during waiting.
* fixed mtime 0 (Jan 1 1970) issue when downloading files and using --filename
sierra:
* Fixed the Nikon Coolpix 4300 and 2500 USB over SCSI capture mode.
* Ignore register 4 read errors after capture as Nikon does not supply them.
* added commented code on how to switch the Coolpix 2500 to RAW DIAG mode.
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=98
2013-05-05 22:55:54 +02:00
|
|
|
As of this time, gPhoto supports around 1700 cameras, listed on:
|
2007-01-08 17:45:38 +01:00
|
|
|
|
2022-04-19 14:45:01 +02:00
|
|
|
https://gphoto.sourceforge.io/proj/libgphoto2/support.php
|
2007-01-08 17:45:38 +01:00
|
|
|
|
|
|
|
or by running
|
|
|
|
|
|
|
|
gphoto2 --list-cameras
|
|
|
|
|
2017-10-06 12:07:51 +02:00
|
|
|
%description -n libgphoto2-%major
|
2012-09-26 21:00:16 +02:00
|
|
|
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
|
- Updated to 2.5.2
ptp2:
* Fixed Raspberry Pi and USB 3.0 "connect only once" problem.
* Experimental Olympus E-series (not Pen) remote control support. Try in "Control" mode.
* Nikon DSLR: real movie capture! (use --set-config movie=1/0 and --wait-event)
* New ids:
Sony: DSC-A900, SLT-A350, DSC-RX1, HX300, NEX-3N
Nikon Coolpix: P80, L820, S9500, S620, P520, S2500, S2600
Nikon Coolpix A
Nikon DSLR: D2Xs, D4, D7100
Nikon J2
Canon Powershot: S100, A1300IS, A2300IS,
Canon EOS: 700D, 100D
Fuji FinePix: H20EXR, X20
Samsung: NX1000, EK-GC100
Also various MTP device ids merged from libmtp.
* ptpip: major/minor number was switched in init packet.
* Nikon DSLR: out of focus during capture fixed, various bugfixes
* Nikon "controlmode" config for unlocking the camera.
* Canon DSLR: "keepdeviceon" pinging in get_config, liveview
* Canon thumbnail retrieval fixed.
* Lots of work on getting Olympus E-series DSLRs in Control mode
to run.
canon:
* wait-for-event: handle when camera goes offline during waiting.
* fixed mtime 0 (Jan 1 1970) issue when downloading files and using --filename
sierra:
* Fixed the Nikon Coolpix 4300 and 2500 USB over SCSI capture mode.
* Ignore register 4 read errors after capture as Nikon does not supply them.
* added commented code on how to switch the Coolpix 2500 to RAW DIAG mode.
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=98
2013-05-05 22:55:54 +02:00
|
|
|
storage protocol as those can be mounted by Linux directly.
|
2012-09-26 21:00:16 +02:00
|
|
|
|
- Updated to 2.5.2
ptp2:
* Fixed Raspberry Pi and USB 3.0 "connect only once" problem.
* Experimental Olympus E-series (not Pen) remote control support. Try in "Control" mode.
* Nikon DSLR: real movie capture! (use --set-config movie=1/0 and --wait-event)
* New ids:
Sony: DSC-A900, SLT-A350, DSC-RX1, HX300, NEX-3N
Nikon Coolpix: P80, L820, S9500, S620, P520, S2500, S2600
Nikon Coolpix A
Nikon DSLR: D2Xs, D4, D7100
Nikon J2
Canon Powershot: S100, A1300IS, A2300IS,
Canon EOS: 700D, 100D
Fuji FinePix: H20EXR, X20
Samsung: NX1000, EK-GC100
Also various MTP device ids merged from libmtp.
* ptpip: major/minor number was switched in init packet.
* Nikon DSLR: out of focus during capture fixed, various bugfixes
* Nikon "controlmode" config for unlocking the camera.
* Canon DSLR: "keepdeviceon" pinging in get_config, liveview
* Canon thumbnail retrieval fixed.
* Lots of work on getting Olympus E-series DSLRs in Control mode
to run.
canon:
* wait-for-event: handle when camera goes offline during waiting.
* fixed mtime 0 (Jan 1 1970) issue when downloading files and using --filename
sierra:
* Fixed the Nikon Coolpix 4300 and 2500 USB over SCSI capture mode.
* Ignore register 4 read errors after capture as Nikon does not supply them.
* added commented code on how to switch the Coolpix 2500 to RAW DIAG mode.
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=98
2013-05-05 22:55:54 +02:00
|
|
|
As of this time, gPhoto supports around 1700 cameras, listed on:
|
2012-09-26 21:00:16 +02:00
|
|
|
|
2022-04-19 14:45:01 +02:00
|
|
|
https://gphoto.sourceforge.io/proj/libgphoto2/support.php
|
2012-09-26 21:00:16 +02:00
|
|
|
|
|
|
|
or by running
|
|
|
|
|
|
|
|
gphoto2 --list-cameras
|
|
|
|
|
2021-10-18 16:51:57 +02:00
|
|
|
%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).
|
|
|
|
|
2015-12-30 11:09:55 +01:00
|
|
|
%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
|
|
|
|
local hard drive.
|
|
|
|
|
2017-10-06 12:07:51 +02:00
|
|
|
This is the user documentation.
|
2015-12-30 11:09:55 +01:00
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
%description devel
|
|
|
|
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.
|
|
|
|
|
|
|
|
These are its development libraries and headers.
|
|
|
|
|
2015-12-30 11:09:55 +01:00
|
|
|
%description devel-doc
|
|
|
|
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.
|
|
|
|
|
|
|
|
This is its API documentation in HTML format.
|
|
|
|
|
2017-10-06 12:07:51 +02:00
|
|
|
%lang_package -n libgphoto2-%major
|
- Updated to 2.5.2
ptp2:
* Fixed Raspberry Pi and USB 3.0 "connect only once" problem.
* Experimental Olympus E-series (not Pen) remote control support. Try in "Control" mode.
* Nikon DSLR: real movie capture! (use --set-config movie=1/0 and --wait-event)
* New ids:
Sony: DSC-A900, SLT-A350, DSC-RX1, HX300, NEX-3N
Nikon Coolpix: P80, L820, S9500, S620, P520, S2500, S2600
Nikon Coolpix A
Nikon DSLR: D2Xs, D4, D7100
Nikon J2
Canon Powershot: S100, A1300IS, A2300IS,
Canon EOS: 700D, 100D
Fuji FinePix: H20EXR, X20
Samsung: NX1000, EK-GC100
Also various MTP device ids merged from libmtp.
* ptpip: major/minor number was switched in init packet.
* Nikon DSLR: out of focus during capture fixed, various bugfixes
* Nikon "controlmode" config for unlocking the camera.
* Canon DSLR: "keepdeviceon" pinging in get_config, liveview
* Canon thumbnail retrieval fixed.
* Lots of work on getting Olympus E-series DSLRs in Control mode
to run.
canon:
* wait-for-event: handle when camera goes offline during waiting.
* fixed mtime 0 (Jan 1 1970) issue when downloading files and using --filename
sierra:
* Fixed the Nikon Coolpix 4300 and 2500 USB over SCSI capture mode.
* Ignore register 4 read errors after capture as Nikon does not supply them.
* added commented code on how to switch the Coolpix 2500 to RAW DIAG mode.
OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=98
2013-05-05 22:55:54 +02:00
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-07-13 14:35:43 +02:00
|
|
|
(cd doc && tar -xaf libgphoto2-api.html.tar.gz)
|
2007-01-08 17:45:38 +01:00
|
|
|
|
|
|
|
%build
|
2012-01-25 11:39:08 +01:00
|
|
|
#AUTOPOINT=true autoreconf -fi
|
2007-01-08 17:45:38 +01:00
|
|
|
PATH="/usr/X11R6/bin:$PATH" \
|
2007-02-23 12:49:40 +01:00
|
|
|
%configure \
|
2017-10-06 12:07:51 +02:00
|
|
|
--with-doc-dir=%_defaultdocdir/%name \
|
2010-03-26 01:14:16 +01:00
|
|
|
--without-hal \
|
2007-02-23 12:49:40 +01:00
|
|
|
--with-drivers=all
|
2012-09-22 10:32:00 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-06-14 00:39:31 +02:00
|
|
|
|
|
|
|
%check
|
2007-01-14 00:54:51 +01:00
|
|
|
make check
|
2007-01-08 17:45:38 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# skip-check-libtool-deps
|
2017-10-06 12:07:51 +02:00
|
|
|
export LIBRARY_PATH="%buildroot/%_libdir"
|
|
|
|
%make_install
|
2015-01-25 19:22:52 +01:00
|
|
|
|
|
|
|
# .la files are not needed
|
2017-10-06 12:07:51 +02:00
|
|
|
rm %buildroot/%_libdir/*.la
|
|
|
|
rm %buildroot/%_libdir/libgphoto2/%version/*.la
|
2022-07-02 12:01:41 +02:00
|
|
|
rm %buildroot/%_libdir/libgphoto2_port/0.12.1/*.la
|
2015-01-25 19:22:52 +01:00
|
|
|
|
2022-01-06 11:13:52 +01:00
|
|
|
rm -rf %buildroot/usr/share/doc/libgphoto2_port
|
|
|
|
|
2017-10-06 12:07:51 +02:00
|
|
|
%find_lang libgphoto2-%major
|
|
|
|
%find_lang libgphoto2_port-12
|
|
|
|
cat libgphoto2-%major.lang libgphoto2_port-12.lang >libgphoto2-all.lang
|
2007-01-08 17:45:38 +01:00
|
|
|
pushd packaging/generic
|
2017-10-06 12:07:51 +02:00
|
|
|
export CAMLIBS="%buildroot/%_libdir/libgphoto2/%version/"
|
2009-08-13 18:10:39 +02:00
|
|
|
# new style UDEV rules (gudev) which will obsolete HAL fdi files
|
2017-10-06 12:07:51 +02:00
|
|
|
if [ ! -d "%_udevrulesdir" ] ; then
|
2009-08-13 18:10:39 +02:00
|
|
|
echo "*** The udev rules file location has changed. Fix the build."
|
|
|
|
exit 1
|
|
|
|
fi
|
2013-10-01 09:21:24 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
2017-10-06 12:07:51 +02:00
|
|
|
install -m 0755 -d %buildroot/%_udevhwdbdir
|
|
|
|
./print-camera-list hwdb >%buildroot/%_udevhwdbdir/20-gphoto.hwdb
|
2014-04-27 21:04:22 +02:00
|
|
|
# We still need UDEV rules for /dev/sg* and /dev/sd* for picture frames.
|
2014-06-13 15:49:15 +02:00
|
|
|
# We also need it for PTP cameras that we do not know to appear in GVFS.
|
2017-10-06 12:07:51 +02:00
|
|
|
install -m 0755 -d %buildroot/%_udevrulesdir
|
|
|
|
./print-camera-list udev-rules version 201 >%buildroot/%_udevrulesdir/40-libgphoto2.rules
|
2013-10-01 09:21:24 +02:00
|
|
|
%else
|
2017-10-06 12:07:51 +02:00
|
|
|
install -m 0755 -d %buildroot/%_udevrulesdir
|
|
|
|
./print-camera-list udev-rules version 175 >%buildroot/%_udevrulesdir/40-libgphoto2.rules
|
2013-10-01 09:21:24 +02:00
|
|
|
%endif
|
2007-01-08 17:45:38 +01:00
|
|
|
popd
|
|
|
|
# udev helpers not used here.
|
2017-10-06 12:07:51 +02:00
|
|
|
rm %buildroot/usr/%_lib/udev/check-ptp-camera
|
2015-12-30 11:09:55 +01:00
|
|
|
mv doc/libgphoto2-api.html apidocs
|
|
|
|
mv doc/README.apidocs .
|
|
|
|
find apidocs -type f -name "*.md5" -delete
|
2017-10-06 12:07:51 +02:00
|
|
|
fn="%buildroot/%_libdir/pkgconfig/libgphoto2_port.pc"
|
2008-02-29 23:25:38 +01:00
|
|
|
grep -v driverdir= $fn > $fn.new
|
|
|
|
mv $fn.new $fn
|
2010-04-27 14:56:37 +02:00
|
|
|
|
2012-09-22 10:32:00 +02:00
|
|
|
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
2017-10-06 12:07:51 +02:00
|
|
|
%fdupes %buildroot/%_prefix
|
2007-08-09 15:49:26 +02:00
|
|
|
|
2017-10-06 12:07:51 +02:00
|
|
|
%files -n libgphoto2-%major
|
2007-01-08 17:45:38 +01:00
|
|
|
%defattr(-,root,root)
|
2022-01-03 17:09:53 +01:00
|
|
|
%doc AUTHORS NEWS README
|
2017-10-06 12:07:51 +02:00
|
|
|
%_libdir/libgphoto2
|
2015-12-30 11:09:55 +01:00
|
|
|
# support files for konica camlib
|
2017-10-06 12:07:51 +02:00
|
|
|
%_datadir/%name
|
|
|
|
%_libdir/libgphoto2.so.*
|
2013-10-01 09:21:24 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
2017-10-06 12:07:51 +02:00
|
|
|
%_udevhwdbdir/20-gphoto.hwdb
|
2013-10-01 09:21:24 +02:00
|
|
|
%endif
|
2017-10-06 12:07:51 +02:00
|
|
|
%_udevrulesdir/40-libgphoto2.rules
|
2021-10-18 16:51:57 +02:00
|
|
|
|
|
|
|
%files -n libgphoto2_port12
|
|
|
|
%defattr(-,root,root)
|
2022-01-06 11:13:52 +01:00
|
|
|
%doc libgphoto2_port/README libgphoto2_port/AUTHORS libgphoto2_port/NEWS
|
2021-10-18 16:51:57 +02:00
|
|
|
%_libdir/libgphoto2_port
|
|
|
|
%_libdir/libgphoto2_port.so.*
|
2017-10-06 12:07:51 +02:00
|
|
|
%_datadir/libgphoto2_port
|
2007-01-08 17:45:38 +01:00
|
|
|
|
2015-12-30 11:09:55 +01:00
|
|
|
%files -n libgphoto2-doc
|
|
|
|
%defattr(-,root,root)
|
2022-01-03 16:53:43 +01:00
|
|
|
%dir /usr/share/doc/%name
|
2022-01-06 11:24:12 +01:00
|
|
|
/usr/share/doc/%name/*
|
2017-10-06 12:07:51 +02:00
|
|
|
%_mandir/man3/libgphoto2.3*
|
|
|
|
%_mandir/man3/libgphoto2_port.3*
|
2015-12-30 11:09:55 +01:00
|
|
|
|
2017-10-06 12:07:51 +02:00
|
|
|
%files -n libgphoto2-%major-lang -f libgphoto2-all.lang
|
2007-08-09 15:49:26 +02:00
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2017-10-06 12:07:51 +02:00
|
|
|
%_includedir/gphoto2
|
|
|
|
%_bindir/gphoto2-config
|
|
|
|
%_bindir/gphoto2-port-config
|
|
|
|
%_libdir/libgphoto2.so
|
|
|
|
%_libdir/libgphoto2_port.so
|
|
|
|
%_libdir/pkgconfig/libgphoto2.pc
|
|
|
|
%_libdir/pkgconfig/libgphoto2_port.pc
|
2007-01-08 17:45:38 +01:00
|
|
|
|
2015-12-30 11:09:55 +01:00
|
|
|
%files devel-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc apidocs README.apidocs
|
|
|
|
|
2021-10-18 16:51:57 +02:00
|
|
|
%post -n libgphoto2_port12 -p /sbin/ldconfig
|
|
|
|
%postun -n libgphoto2_port12 -p /sbin/ldconfig
|
|
|
|
|
2013-10-01 09:21:24 +02:00
|
|
|
%post -n %name-%major
|
|
|
|
/sbin/ldconfig
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
%udev_hwdb_update
|
|
|
|
%endif
|
2017-10-06 12:07:51 +02:00
|
|
|
udevadm control --reload >/dev/null 2>&1 || :
|
2013-10-01 09:21:24 +02:00
|
|
|
|
|
|
|
%postun -n %name-%major
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
%udev_hwdb_update
|
|
|
|
%udev_rules_update
|
|
|
|
%endif
|
2014-04-27 21:04:22 +02:00
|
|
|
udevadm control --reload 2>&1 > /dev/null || :
|
2013-10-01 09:21:24 +02:00
|
|
|
fi
|
2007-01-08 17:45:38 +01:00
|
|
|
|
2007-02-23 12:49:40 +01:00
|
|
|
%changelog
|