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
|
|
|
#
|
2015-01-25 19:22:52 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-19 00:57:45 +01:00
|
|
|
|
2012-10-17 14:59:38 +02:00
|
|
|
%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
|
|
|
|
%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: doxygen
|
|
|
|
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
|
2012-09-13 10:58:41 +02:00
|
|
|
BuildRequires: libusb-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
|
|
|
|
BuildRequires: udev
|
2013-10-01 09:21:24 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%endif
|
2008-02-29 15:51:51 +01:00
|
|
|
Url: http://gphoto.org/
|
2008-11-02 15:43:02 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgphoto2-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-08 17:45:38 +01:00
|
|
|
%define prefix /usr
|
|
|
|
Summary: A Digital Camera Library
|
2011-12-11 14:00:24 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Hardware/Camera
|
2015-01-18 22:45:59 +01:00
|
|
|
Version: 2.5.7
|
2011-12-11 14:00:24 +01:00
|
|
|
Release: 0
|
2014-04-27 21:04:22 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}-%{version}.tar.bz2.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
|
|
|
Recommends: %{name}-%{major}-lang = %{version}
|
|
|
|
|
|
|
|
%package -n libgphoto2-%{major}
|
|
|
|
Summary: A Digital Camera Library
|
|
|
|
Group: Hardware/Camera
|
|
|
|
Recommends: %{name}-%{major}-lang = %{version}
|
2008-02-29 15:51:51 +01:00
|
|
|
|
2007-01-08 17:45:38 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development headers for libgphoto2
|
2012-01-25 11:39:08 +01:00
|
|
|
Group: Hardware/Camera
|
2007-03-01 20:50:08 +01:00
|
|
|
Requires: libexif-devel
|
2012-10-03 21:39:40 +02:00
|
|
|
Requires: libgphoto2-%{major} = %version
|
2012-02-22 11:10:30 +01:00
|
|
|
Requires: libusb-1_0-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
|
|
|
|
2010-01-25 11:33:12 +01:00
|
|
|
http://gphoto.org/proj/libgphoto2/support.php
|
2007-01-08 17:45:38 +01:00
|
|
|
|
|
|
|
or by running
|
|
|
|
|
|
|
|
gphoto2 --list-cameras
|
|
|
|
|
2012-09-26 21:00:16 +02:00
|
|
|
%description -n libgphoto2-%{major}
|
|
|
|
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
|
|
|
|
|
|
|
http://gphoto.org/proj/libgphoto2/support.php
|
|
|
|
|
|
|
|
or by running
|
|
|
|
|
|
|
|
gphoto2 --list-cameras
|
|
|
|
|
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.
|
|
|
|
|
2012-09-26 21:00:16 +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
|
|
|
|
|
|
|
|
%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 \
|
|
|
|
--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
|
|
|
|
export LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
|
2007-02-23 12:49:40 +01:00
|
|
|
%makeinstall
|
2015-01-25 19:22:52 +01:00
|
|
|
|
|
|
|
# .la files are not needed
|
|
|
|
rm $RPM_BUILD_ROOT/%_libdir/*.la
|
|
|
|
rm $RPM_BUILD_ROOT/%_libdir/libgphoto2/%version/*.la
|
|
|
|
rm $RPM_BUILD_ROOT/%_libdir/libgphoto2_port/0.12.0/*.la
|
|
|
|
|
2012-09-26 21:00:16 +02:00
|
|
|
%{find_lang} libgphoto2-%{major}
|
2014-12-21 21:29:27 +01:00
|
|
|
%{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
|
|
|
|
export CAMLIBS=$RPM_BUILD_ROOT/%_libdir/libgphoto2/%version/
|
2009-08-13 18:10:39 +02:00
|
|
|
# new style UDEV rules (gudev) which will obsolete HAL fdi files
|
2012-10-17 14:59:38 +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
|
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT/%{_udevhwdbdir}
|
|
|
|
./print-camera-list hwdb > $RPM_BUILD_ROOT/%{_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.
|
2014-04-27 21:04:22 +02:00
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT%{_udevrulesdir}
|
|
|
|
./print-camera-list udev-rules version 201 > $RPM_BUILD_ROOT%{_udevrulesdir}/40-libgphoto2.rules
|
2013-10-01 09:21:24 +02:00
|
|
|
%else
|
2012-10-17 14:59:38 +02:00
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT%{_udevrulesdir}
|
|
|
|
./print-camera-list udev-rules version 175 > $RPM_BUILD_ROOT%{_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.
|
2007-01-08 22:53:33 +01:00
|
|
|
rm $RPM_BUILD_ROOT/usr/%_lib/udev/check-ptp-camera
|
2007-01-08 17:45:38 +01:00
|
|
|
mv doc/doxygen-output/libgphoto2-api.html apidocs
|
2008-02-29 23:25:38 +01:00
|
|
|
fn=$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/libgphoto2_port.pc
|
|
|
|
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
|
2007-08-09 15:49:26 +02:00
|
|
|
%fdupes $RPM_BUILD_ROOT
|
|
|
|
|
2012-09-26 21:00:16 +02:00
|
|
|
%files -n libgphoto2-%{major}
|
2007-01-08 17:45:38 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libgphoto2
|
|
|
|
%{_libdir}/libgphoto2_port
|
|
|
|
%dir %{_defaultdocdir}/%{name}
|
|
|
|
%{_defaultdocdir}/%{name}/*
|
|
|
|
%{prefix}/share/%{name}
|
|
|
|
%{_libdir}/libgphoto2.so.*
|
|
|
|
%{_libdir}/libgphoto2_port.so.*
|
|
|
|
%{_mandir}/man3/libgphoto2.3*
|
|
|
|
%{_mandir}/man3/libgphoto2_port.3*
|
2013-10-01 09:21:24 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
%{_udevhwdbdir}/20-gphoto.hwdb
|
|
|
|
%endif
|
2014-04-27 21:04:22 +02:00
|
|
|
%{_udevrulesdir}/40-libgphoto2.rules
|
2007-01-08 17:45:38 +01:00
|
|
|
|
2012-09-26 21:00:16 +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)
|
|
|
|
%doc apidocs
|
|
|
|
%{prefix}/include/gphoto2
|
|
|
|
%{prefix}/bin/gphoto2-config
|
|
|
|
%{prefix}/bin/gphoto2-port-config
|
|
|
|
%{_libdir}/libgphoto2.so
|
|
|
|
%{_libdir}/libgphoto2_port.so
|
|
|
|
%{_libdir}/pkgconfig/libgphoto2.pc
|
|
|
|
%{_libdir}/pkgconfig/libgphoto2_port.pc
|
|
|
|
|
2013-10-01 09:21:24 +02:00
|
|
|
%post -n %name-%major
|
|
|
|
/sbin/ldconfig
|
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
%udev_hwdb_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
|
|
|
|
|
|
|
%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
|
|
|
|
2013-10-01 09:21:24 +02:00
|
|
|
%{nil}
|
2007-06-14 00:39:31 +02:00
|
|
|
|
2007-02-23 12:49:40 +01:00
|
|
|
%changelog
|