Name: libgphoto Version: 2.4.11 Release: 3mamba Epoch: 1 Summary: A portable library to gives access to more than 400 digital cameras Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.gphoto.org Source0: http://ovh.dl.sourceforge.net/sourceforge/gphoto/libgphoto2-%{version}.tar.gz Source1: libgphoto-usbcam Patch0: %{name}-2.4.6-serial.so_undef_symbol_rsm_unlock_device.patch Patch1: %{name}-2.4.7-Canon_A580.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libdbus-devel BuildRequires: libexif6-devel >= 0.6.13 BuildRequires: libjpeg-devel BuildRequires: libltdl-devel >= 1.5.4 BuildRequires: libusb0-devel >= 0.1.5 %if "%{stage1}" != "1" BuildRequires: avahi-compat-libdns_sd-devel %endif BuildRequires: udev ## AUTOBUILDREQ-END BuildRequires: liblockdev >= 1.0.1 BuildRequires: libpopt-devel >= 4.4.5 BuildRequires: libuuid-devel Requires: udev >= 103 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Libgphoto2 is the core of gphoto2 software. It is a portable library to gives access to more than 400 digital cameras. %package devel Summary: Static libraries and headers for %{name} Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} %description devel Libgphoto2 is the core of gphoto2 software. It is a portable library to gives access to more than 400 digital cameras. This package contains static libraries and header files need for development. %package apidocs Summary: Libgphoto2 API documentation Group: Documentation %description apidocs Libgphoto2 API documentation. %prep %setup -q -n libgphoto2-%{version} #%patch0 -p1 %patch1 -p1 %build %configure \ --with-gnu-ld \ --with-ltdl \ --with-drivers=all \ --with-camlibdir=%{_libdir}/libgphoto2 \ --without-resmgr \ --without-hal \ --enable-static # --with-cdk \ # --without-baudboy \ # --without-ttylock \ # --without-lockdev # --enable-docs %make udevscriptdir=/lib/udev/ %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall udevscriptdir=/lib/udev/ install -d %{buildroot}/lib/udev/rules.d/ install -d %{buildroot}%{_datadir}/hal/fdi/information/10freedesktop install -D -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/scripts/usbcam cd packaging/generic ./print-camera-list udev-rules version 136 \ mode 660 owner root group camera > \ %{buildroot}/lib/udev/rules.d/40-libgphoto2.rules cd ../.. %find_lang libgphoto2-2 %find_lang libgphoto2_port-0 cat libgphoto2-2.lang libgphoto2_port-0.lang > %{name}.lang %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %{_sysconfdir}/udev/scripts/usbcam /lib/udev/rules.d/40-libgphoto2.rules %dir %{_datadir}/libgphoto2/%{version} %{_datadir}/libgphoto2/%{version}/* %dir %{_libdir}/libgphoto2 %{_libdir}/*.so.* %dir %{_libdir}/libgphoto2_port %{_libdir}/libgphoto2_port/* %{_libdir}/libgphoto2/* /lib/udev/check-ptp-camera %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_bindir}/gphoto2-config %{_bindir}/gphoto2-port-config %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/pkgconfig/libgphoto2.pc %{_libdir}/pkgconfig/libgphoto2_port.pc %dir %{_includedir}/gphoto2 %{_includedir}/gphoto2/* %{_mandir}/man3/* %doc ChangeLog HACKING TESTERS %doc NEWS README %files apidocs %defattr(-,root,root) %dir %{_datadir}/doc/libgphoto2 %{_datadir}/doc/libgphoto2/* %dir %{_datadir}/doc/libgphoto2_port %{_datadir}/doc/libgphoto2_port/* %changelog * Fri May 02 2014 Silvan Calarco 2.4.11-3mamba - remove hal files to fix i586 vs x86_64 conflict * Sun Nov 06 2011 Silvan Calarco 2.4.11-2mamba - disable hal * Wed Nov 02 2011 Silvan Calarco 2.4.11-1mamba - update to 2.4.11 * Fri Aug 27 2010 Automatic Build System 2.4.10.1-1mamba - automatic update by autodist * Tue May 11 2010 Automatic Build System 2.4.9-1mamba - automatic update by autodist * Fri Dec 11 2009 Silvan Calarco 2.4.7-2mamba - added patch for Canon A580 (04a9:3177) support - udev rules file built for version >= 136 * Mon Aug 31 2009 Automatic Build System 2.4.7-1mamba - automatic update by autodist * Mon Aug 10 2009 Davide Madrisan 2.4.6-2mamba - build requires libusb0-devel and libuuid-devel - fix "undefined symbol rsm_unlock_device" error in serial.so - new subpackage %{name}-apidocs * Fri Jul 03 2009 Automatic Build System 2.4.6-1mamba - automatic update by autodist * Wed Mar 04 2009 Silvan Calarco 2.4.4-2mamba - rebuilt against avahi-compat-libdns_sd * Wed Feb 04 2009 Silvan Calarco 2.4.4-1mamba - automatic update by autodist * Sat Nov 01 2008 gil 2.4.3-1mamba - update to 2.4.3 * Sun Jul 20 2008 gil 2.4.2-1mamba - update to 2.4.2 * Wed Mar 26 2008 Silvan Calarco 2.4.0-1mamba - update to 2.4.0 - fixed udev rules file that was setting "camera" group to all usbdev's * Sun Jun 17 2007 Silvan Calarco 2.3.1-2mamba - configure with correct udevscriptdir for check-ptp-camera script * Thu Jun 07 2007 Silvan Calarco 2.3.1-1mamba - update to 2.3.1 - added fixed usbcam udev script (use $DEVNAME instead of $DEVICE) - print-camera-list-udev-rules: generate udev >= 0.98 rules * Mon Oct 30 2006 Silvan Calarco 2.2.1-2qilnx - add udev/HAL support and remove dependency on hotplug * Mon Apr 04 2005 Davide Madrisan 2.2.1-1qilnx - update to version 2.2.1 by autospec - specfile fixed * Tue Apr 13 2004 Silvan Calarco 2.1.4-4qilnx - serial locking mechanism disabled because lockdev does not support devfs * Fri Apr 09 2004 Silvan Calarco 2.1.4-3qilnx - added LD_LIBRARY_PATH to fix linking problems with port plugins * Fri Apr 09 2004 Silvan Calarco 2.1.4-2qilnx - linux hotplug support added * Thu Apr 08 2004 Silvan Calarco 2.1.4-1qilnx - new version build * Thu Jan 01 2003 Silvan Calarco 2.1.3-1qilnx - first build