]> git.pld-linux.org Git - packages/libgphoto2.git/blobdiff - libgphoto2.spec
- updated to 2.5.19
[packages/libgphoto2.git] / libgphoto2.spec
index f78f656752fbcc2267cc9a7700a3b90f89831ab6..3739836f3d28c26a0f6806b51a90ac18396eeea7 100644 (file)
@@ -5,42 +5,50 @@
 %bcond_with    canonupload     # Canon upload experimental code
 %bcond_with    hal             # build HAL support
 %bcond_without static_libs     # static libraries
-#
+
 Summary:       Libraries for digital cameras
 Summary(es.UTF-8):     Foto GNU (gphoto) Release 2
 Summary(pl.UTF-8):     Biblioteki obsługi kamer cyfrowych
 Summary(pt_BR.UTF-8):  GNU Photo - programa GNU para câmeras digitais
 Name:          libgphoto2
-Version:       2.4.14
+Version:       2.5.19
 Release:       1
 License:       LGPL v2+
 Group:         Libraries
 Source0:       http://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2
-# Source0-md5: c7fc6cafa6343f2457976dbe9f2d9d68
+# Source0-md5: ca9574e2a749de66018a077bd24aa86f
 Patch0:                %{name}-mode-owner-group.patch
-Patch1:                %{name}-IXANY.patch
-Patch2:                %{name}-increase_max_entries.patch
+# if there are fuzzy/missing entries in file, check for updated version:
+# po/pl.po: https://translationproject.org/PO-files/pl/libgphoto2-%{version}.pl.po
+# libgphoto2_port/po/pl.po: https://translationproject.org/PO-files/pl/libgphoto2_port-%{version}.pl.po
+# and pass through msgcat to get shorter diff
+Patch1:                %{name}-pl.po-update.patch
+# from FC
+Patch2:                gphoto2-device-return.patch
 URL:           http://www.gphoto.org/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1:1.9
 BuildRequires: avahi-compat-libdns_sd-devel
+BuildRequires: bison
 BuildRequires: dbus-devel >= 0.31
-BuildRequires: gd-devel
-BuildRequires: gettext-devel >= 0.14.1
+BuildRequires: flex
+BuildRequires: gd-devel >= 2.1
+BuildRequires: gettext-tools >= 0.14.1
 %{?with_apidocs:BuildRequires: gtk-doc >= 0.10}
-%{?with_hal:BuildRequires:     hal-devel >= 0.5.0}
 BuildRequires: libexif-devel >= 1:0.6.13
 BuildRequires: libjpeg-devel
 BuildRequires: libltdl-devel
 BuildRequires: libtool >= 1:1.4.2-9
 BuildRequires: libusb-devel >= 1.0.0
+BuildRequires: libxml2-devel >= 2.0
 %{?with_baudboy:BuildRequires: lockdev-baudboy-devel}
 %{!?with_baudboy:BuildRequires:        lockdev-devel >= 1.0.2}
 BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.691
 BuildRequires: sed >= 4.0
 Requires:      libexif >= 1:0.6.13
-Provides:      gphoto2-lib
-Obsoletes:     gphoto2-lib
+Provides:      gphoto2-lib = %{version}-%{release}
+Obsoletes:     gphoto2-lib < 2.1.1
 Conflicts:     gphoto2 < 2.1.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -72,7 +80,7 @@ Requires:     %{name} = %{version}-%{release}
 %{?with_apidocs:Requires:      gtk-doc-common}
 Requires:      libexif-devel >= 1:0.6.13
 Requires:      libltdl-devel
-Requires:      libusb-compat-devel >= 0.1
+Requires:      libusb-devel >= 1.0.0
 %{!?with_baudboy:Requires:     lockdev-devel}
 Obsoletes:     gphoto2-devel
 Obsoletes:     gphoto2-lib-devel
@@ -130,7 +138,7 @@ współpracy z aparatami podłączonymi przez port szeregowy.
 Summary:       Userspace support for digital cameras
 Summary(pl.UTF-8):     Wsparcie dla kamer cyfrowych w przestrzeni użytkownika
 Group:         Applications/System
-Requires:      libusb-compat >= 0.1
+Requires:      libusb >= 1.0.0
 %if "%{pld_release}" == "ti"
 Requires:      udev-core >= 1:124-3
 %else
@@ -166,9 +174,7 @@ w przestrzeni użytkownika.
 %prep
 %setup -q
 %patch0 -p1
-%ifarch alpha
 %patch1 -p1
-%endif
 %patch2 -p1
 
 %{__rm} po/stamp-po libgphoto2_port/po/stamp-po
@@ -176,12 +182,12 @@ w przestrzeni użytkownika.
 %build
 # supplied libtool is broken (relink)
 %{__libtoolize}
-%{__aclocal} -I auto-m4 -I m4m
+%{__aclocal} -I auto-m4 -I gphoto-m4
 %{__autoconf}
 %{__automake}
 cd libgphoto2_port
 %{__libtoolize}
-%{__aclocal} -I auto-m4 -I m4
+%{__aclocal} -I auto-m4 -I gphoto-m4
 %{__autoconf}
 %{__automake}
 cd ..
@@ -193,7 +199,6 @@ CFLAGS="%{rpmcflags}%{?with_canonupload: -DCANON_EXPERIMENTAL_UPLOAD}"
        --disable-ttylock \
        %{?with_apidocs:--enable-docs} \
        %{?with_static_libs:--enable-static} \
-       --with%{!?with_hal:out}-hal \
        %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
        --without-libusb
 
@@ -267,16 +272,17 @@ cp --parents \
        camlibs/topfield/ChangeLog \
        camlibs/toshiba/pdrm11/README.toshiba-pdrm11 \
        libgphoto2_port/{AUTHORS,ChangeLog,NEWS,README} \
-       libgphoto2_port/disk/ChangeLog \
        docs
 
 # udev
 cd packaging/linux-hotplug
-install -d $RPM_BUILD_ROOT/lib/udev/rules.d
+install -d $RPM_BUILD_ROOT/lib/udev/{hwdb.d,rules.d}
 export CAMLIBS=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}
 
 ../generic/print-camera-list udev-rules version 136 group usb mode 0660 \
        > $RPM_BUILD_ROOT/lib/udev/rules.d/40-libgphoto2.rules
+../generic/print-camera-list hwdb \
+       > $RPM_BUILD_ROOT/lib/udev/hwdb.d/20-gphoto.hwdb
 
 %if %{with hal}
 # hal
@@ -292,6 +298,7 @@ install -d $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/20thirdparty
 %endif
 # kill unpackaged files
 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/libgphoto{2,2_port}
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/libgphoto2_port/*/vcamera/README.txt
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -299,6 +306,12 @@ rm -rf $RPM_BUILD_ROOT
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
+%post -n udev-libgphoto2
+%udev_hwdb_update
+
+%postun -n udev-libgphoto2
+%udev_hwdb_update
+
 %post -n hal-libgphoto2
 %service -q haldaemon restart
 
@@ -306,9 +319,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog MAINTAINERS NEWS README TESTERS docs/*
 %attr(755,root,root) %{_libdir}/libgphoto2.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgphoto2.so.2
+%attr(755,root,root) %ghost %{_libdir}/libgphoto2.so.6
 %attr(755,root,root) %{_libdir}/libgphoto2_port.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgphoto2_port.so.0
+%attr(755,root,root) %ghost %{_libdir}/libgphoto2_port.so.12
 
 # camera plugins
 %dir %{_libdir}/libgphoto2
@@ -356,7 +369,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/libgphoto2_port.pc
 %{_mandir}/man3/libgphoto2.3*
 %{_mandir}/man3/libgphoto2_port.3*
-%{?with_apidocs:%{_gtkdocdir}/*}
+%{?with_apidocs:%{_gtkdocdir}/gphoto2}
 
 %if %{with static_libs}
 %files static
@@ -372,6 +385,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n udev-libgphoto2
 %defattr(644,root,root,755)
+/lib/udev/hwdb.d/20-gphoto.hwdb
 /lib/udev/rules.d/40-libgphoto2.rules
 %attr(755,root,root) /lib/udev/check-ptp-camera
 
This page took 0.116719 seconds and 4 git commands to generate.