Summary: Library for accessing digital cameras Summary(ja): デジタルカメラにアクセスするためのライブラリ Name: libgphoto2 Version: 2.5.27 Release: 1%{?_dist_release} Group: system Vendor: Project Vine Distribution: Vine Linux # GPLV2+ for the main lib (due to exif.c) and most plugins, some plugins GPLv2 License: GPLv2+ and GPLv2 URL: https://github.com/gphoto/libgphoto2 Source0: https://github.com/gphoto/libgphoto2/releases/download/v%{version}/libgphoto2-%{version}.tar.bz2 Patch1: gphoto2-pkgcfg.patch Patch2: gphoto2-device-return.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #BuildRequires: libusb-devel >= 0.1.6a BuildRequires: libusb1-devel BuildRequires: libexif-devel BuildRequires: libjpeg-devel BuildRequires: pkgconfig, sharutils BuildRequires: libtool-ltdl-devel >= 2.2.6a BuildRequires: popt-devel BuildRequires: dbus-devel BuildRequires: gd-devel # we run autoreconf: #BuildRequires: autoconf, automake, libtool, gettext, cvs Obsoletes: gphoto2 < 2.4.0 Obsoletes: gphoto2-devel < 2.4.0 %description libgphoto2 is a library that can be used by applications to access various digital cameras. libgphoto2 itself is not a GUI application, opposed to gphoto. There are GUI frontends for the gphoto2 library, however, such as gtkam for example. %package devel Summary: Headers and links to compile against the libgphoto2 library Group: programming Requires: %{name} = %{version}-%{release} Requires: pkgconfig #Requires: libusb-devel >= 0.1.6a #Requires: libusb1-devel Requires: libexif-devel Obsoletes: gphoto2 < 2.4.0-11 Obsoletes: gphoto2-devel < 2.4.0-11 Provides: gphoto2-devel = %{version}-%{release} %description devel libgphoto2 is a library that can be used by applications to access various digital cameras. libgphoto2 itself is not a GUI application, opposed to gphoto. There are GUI frontends for the gphoto2 library, however, such as gtkam for example. This package contains files needed to compile applications that use libgphoto2. %debug_package %prep %autosetup -p1 for i in AUTHORS ChangeLog COPYING libgphoto2_port/AUTHORS libgphoto2_port/COPYING.LIB `find -name 'README.*'`; do mv ${i} ${i}.old iconv -f ISO-8859-1 -t UTF-8 < ${i}.old > ${i} touch -r ${i}.old ${i} || : rm -f ${i}.old done %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure \ udevscriptdir='/lib/udev' \ --with-drivers=all \ --with-doc-dir=%{_docdir}/%{name} \ --disable-static \ --disable-rpath \ --without-aalib \ --without-hal # Don't use rpath! sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libgphoto2_port/libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libgphoto2_port/libtool make %{?_smp_mflags} %install rm -rf "${RPM_BUILD_ROOT}" make mandir=%{_mandir} DESTDIR=$RPM_BUILD_ROOT install pushd packaging/linux-hotplug/ install -d -m755 %{buildroot}/usr/share/hal/fdi/information/20thirdparty/ export LIBDIR=$RPM_BUILD_ROOT%{_libdir} export CAMLIBS=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} #$RPM_BUILD_ROOT%{_libdir}/%{name}/print-camera-list hal-fdi | \ #grep -v "