*** empty log message ***
authormattk
Wed, 16 Jul 2003 10:00:04 +0000
changeset 585 a1d5251a6293
parent 584 72db31faf343
child 586 64538e0187e8
*** empty log message ***
ChangeLog
ext-sources/usbcam
ext-sources/usermap.gphoto
gphoto.spec
gphoto2.spec
gtkam.spec
libgphoto2.spec
--- a/ChangeLog	Wed Jul 16 09:48:27 2003 +0000
+++ b/ChangeLog	Wed Jul 16 10:00:04 2003 +0000
@@ -1,3 +1,14 @@
+2003-07-16  Matt Keenan  <[email protected]>
+
+	* libgphoto2.spec : new spec file
+
+	* gphoto2.spec : new spec file
+
+	* gtkam.spec : new spec file
+
+	* ext-sources/usbcam, ext-sources/usermap.gphoto: new files for 
+	libgphoto2
+
 2003-07-16  Matt Keenan  <[email protected]>
 
 	* slec-install-devel.pkgs : Add installation of libexif-gtk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/usbcam	Wed Jul 16 10:00:04 2003 +0000
@@ -0,0 +1,30 @@
+#!/bin/bash
+# $Id$
+#
+# /etc/hotplug/usb/usbcam
+#
+# Sets up newly plugged in USB camera so that the user who owns
+# the console according to pam_console can access it from user space
+#
+# Note that for this script to work, you'll need all of the following:
+# a) a line in the file /etc/hotplug/usermap that corresponds to the 
+#    camera you are using. You can get the correct lines for all cameras 
+#    supported by gphoto2 by running "gphoto2 --print-usb-usermap".
+# b) a setup using pam_console creates the respective lock files
+#    containing the name of the respective user. You can check for that
+#    by executing "echo `cat /var/{run,lock}/console.lock`" and 
+#    verifying the appropriate user is mentioned somewhere there.
+# c) a Linux kernel supporting hotplug and usbdevfs
+# d) the hotplug package (http://linux-hotplug.sourceforge.net/)
+#
+# In the usermap file, the first field "usb module" should be named 
+# "usbcam" like this script.
+# 
+
+if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
+then
+    # We reference /dev/audio, since we want to have the same permissions
+    chmod 0000 "${DEVICE}"
+    chown --reference=/dev/audio "${DEVICE}"
+    chmod 0600 "${DEVICE}"
+fi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/usermap.gphoto	Wed Jul 16 10:00:04 2003 +0000
@@ -0,0 +1,57 @@
+usbcam               0x0003      0x03f0   0x4102    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x03f0   0x6302    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x03f0   0x6402    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0100    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0110    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0111    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0112    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0120    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0121    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0130    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0131    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0132    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0160    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0170    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0400    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0500    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0510    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0525    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0530    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x040a   0x0550    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3041    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3043    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3044    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3045    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3046    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3047    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3048    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3049    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x304b    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x304c    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x304d    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x304e    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x304f    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3051    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3052    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3055    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3056    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3057    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3058    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3059    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3060    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3065    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04a9   0x3066    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04b0   0x0102    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04b0   0x0103    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x04b8   0x0403    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x054c   0x004e    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x0553   0x0202    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x055f   0xa800    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x06bd   0x0403    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x0784   0x2888    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x07b4   0x0100    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x07b4   0x0105    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x084e   0x0001    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x0919   0x0100    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0003      0x0c77   0x1001    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x00000000
+usbcam               0x0080      0x0000   0x0000    0x0000       0x0000       0x06         0x00            0x00        0x00            0x00               0x00               0x00000000
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gphoto.spec	Wed Jul 16 10:00:04 2003 +0000
@@ -0,0 +1,60 @@
+Name:         gphoto2
+License:      GPL
+Group:        Hardware/Other
+Version:      2.1.1
+Release:      1
+Distribution: Mercury
+Vendor:       Sun Microsystems Inc
+Summary:      Digital camera utility
+Source:       gphoto2-%{version}.tar.bz2
+URL:          http://www.gphoto.org
+BuildRoot:    %{_tmppath}/%{name}-%{version}-build
+DocDir:       %{_defaultdocdir}/gphoto2
+Autoreqprov:  on
+
+%description
+gPhoto (GNU Photo) is a commandline tool for previewing, retrieving, and capturing images from a range of supported digital camerason to your local harddrive.
+
+(It does not support digital cameras based on the USB storage protocol,
+those can be mounted by Linux directly.)
+
+As of this time gPhoto supports around 200 cameras, listed on:
+
+ http://www.gphoto.org/cameras.html
+
+or by running
+
+ gphoto2 --list-cameras
+
+%prep
+%setup -q -n gphoto2-%{version}
+
+%build
+#%{?suse_update_config:%{suse_update_config -f}}
+libtoolize --copy --force
+aclocal
+automake
+autoconf
+PATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure	\
+  --prefix=%{_prefix} 			\
+  --mandir=%{_mandir} 			\
+  --libdir=%{_libdir} 			\
+  --with-cdk-prefix={_prefix}		\
+  --with-doc-dir=%{_defaultdocdir}/%{name}
+make
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT mandir=$RPM_BUILD_ROOT%{_mandir} install
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
+
+%files
+%defattr(-,root,root)
+%{_bindir}/gphoto2
+%{_datadir}/locale/*/LC_MESSAGES/*.mo
+
+%changelog -n gphoto
+* Wed Jul 16 2003 - [email protected]
+- Initial version
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gphoto2.spec	Wed Jul 16 10:00:04 2003 +0000
@@ -0,0 +1,60 @@
+Name:         gphoto2
+License:      GPL
+Group:        Hardware/Other
+Version:      2.1.1
+Release:      1
+Distribution: Mercury
+Vendor:       Sun Microsystems Inc
+Summary:      Digital camera utility
+Source:       gphoto2-%{version}.tar.bz2
+URL:          http://www.gphoto.org
+BuildRoot:    %{_tmppath}/%{name}-%{version}-build
+DocDir:       %{_defaultdocdir}/gphoto2
+Autoreqprov:  on
+
+%description
+gPhoto (GNU Photo) is a commandline tool for previewing, retrieving, and capturing images from a range of supported digital camerason to your local harddrive.
+
+(It does not support digital cameras based on the USB storage protocol,
+those can be mounted by Linux directly.)
+
+As of this time gPhoto supports around 200 cameras, listed on:
+
+ http://www.gphoto.org/cameras.html
+
+or by running
+
+ gphoto2 --list-cameras
+
+%prep
+%setup -q -n gphoto2-%{version}
+
+%build
+#%{?suse_update_config:%{suse_update_config -f}}
+libtoolize --copy --force
+aclocal
+automake
+autoconf
+PATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure	\
+  --prefix=%{_prefix} 			\
+  --mandir=%{_mandir} 			\
+  --libdir=%{_libdir} 			\
+  --with-cdk-prefix={_prefix}		\
+  --with-doc-dir=%{_defaultdocdir}/%{name}
+make
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT mandir=$RPM_BUILD_ROOT%{_mandir} install
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
+
+%files
+%defattr(-,root,root)
+%{_bindir}/gphoto2
+%{_datadir}/locale/*/LC_MESSAGES/*.mo
+
+%changelog -n gphoto
+* Wed Jul 16 2003 - [email protected]
+- Initial version
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gtkam.spec	Wed Jul 16 10:00:04 2003 +0000
@@ -0,0 +1,57 @@
+%define gexif_version 0.4
+
+Name:         gtkam
+License:      GPL
+Group:        Hardware/Other
+Version:      0.1.10
+Release:      1
+Distribution: Mercury
+Vendor:       Sun Microsystems Inc
+Summary:      A GTK Digital Camera Viewing Tool
+Source:       gtkam-%{version}.tar.bz2
+Source1:      gexif-%{gexif_version}.tar.bz2
+URL:          http://www.gphoto.org
+BuildRoot:    %{_tmppath}/%{name}-%{version}-build
+DocDir:       %{_defaultdocdir}/gtkam
+
+%description
+GTKam is a GTK/GNOME based tool to access Digital Cameras,
+view thumbnails and download pictures from the camera.
+
+%prep
+%setup -q
+#%{?suse_update_config:%{suse_update_config}}
+tar jxf %{SOURCE1}
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
+make top_builddir=`pwd`
+cd gexif-*
+	CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --prefix=%{_prefix}
+	make
+cd ..
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
+mkdir -p $RPM_BUILD_ROOT%{_prefix}
+make DESTDIR=$RPM_BUILD_ROOT install-strip
+cd gexif-*
+	make prefix=$RPM_BUILD_ROOT%{_prefix} install-strip
+cd ..
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
+
+%files
+%defattr(-,root,root)
+%attr(755,root,root) %{_bindir}/gtkam
+%attr(755,root,root) %{_bindir}/gexif
+%{_datadir}/gtkam
+%{_datadir}/images/gtkam
+%{_datadir}/locale/*/*/*
+# disabled, since it requires gimp 1.3 :/
+# %{_libdir}/gimp/*/plug-ins/gtkam-gimp
+
+%changelog -n gtkam
+* Wed Jul 16 2003 - [email protected]
+- Initial version
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgphoto2.spec	Wed Jul 16 10:00:04 2003 +0000
@@ -0,0 +1,89 @@
+Name:         libgphoto2
+License:      LGPL
+Group:        Library/Hardware/Other
+Version:      2.1.1
+Release:      1
+Distribution: Mercury
+Vendor:       Sun Microsystems Inc.
+Summary:      Digital camera library
+Source:       libgphoto2-%{version}.tar.bz2
+Source1:      usermap.gphoto
+Source2:      usbcam
+URL:          http://www.gphoto.org
+BuildRoot:    %{_tmppath}/%{name}-%{version}-build
+DocDir:       %{_defaultdocdir}/libgphoto2
+Autoreqprov:  on
+
+Requires:     hotplug
+
+%description
+gPhoto (GNU Photo) is a set of libraries for previewing, retrieving, and capturing images from a range of supported digital camerason to your local harddrive.
+
+(It does not support digital cameras based on the USB storage protocol,
+those can be mounted by Linux directly.)
+
+As of this time gPhoto supports around 200 cameras, listed on:
+
+ http://www.gphoto.org/cameras.html
+
+or by running
+
+ gphoto2 --list-cameras
+
+%prep
+%setup -q
+
+%build
+#%{?suse_update_config:%{suse_update_config -f . libgphoto2_port}}
+libtoolize --copy --force
+aclocal -I /usr/share/aclocal/gnome2-macros -I libgphoto2_port/m4
+automake -a -f
+autoconf
+cd libgphoto2_port
+	libtoolize --copy --force
+	aclocal -I /usr/share/aclocal/gnome2-macros -I m4
+	automake -a -f
+	autoconf
+cd ..
+PATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure	\
+  --prefix=%{_prefix} 	\
+  --mandir=%{_mandir} 	\
+  --libdir=%{_libdir} 	\
+  --with-doc-dir=%{_defaultdocdir}/%{name} \
+  --with-drivers=all 	\
+  --disable-static
+make
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
+export LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
+make DESTDIR=$RPM_BUILD_ROOT mandir=$RPM_BUILD_ROOT%{_mandir} install
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb/
+cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb/usbcam.usermap
+install -c -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb/usbcam
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
+
+%files
+%defattr(-,root,root)
+%{_includedir}/gphoto2
+%{_libdir}/gphoto2
+%{_libdir}/gphoto2_port
+%dir %{_defaultdocdir}/%{name}
+%{_defaultdocdir}/%{name}/*
+%{_datadir}/libgphoto2
+%{_bindir}/gphoto2-config
+%{_bindir}/gphoto2-port-config
+%{_libdir}/libgphoto2.*
+%{_libdir}/libgphoto2_port.*
+%{_libdir}/pkgconfig/libgphoto2.pc
+%{_datadir}/locale/*/LC_MESSAGES/*.mo
+%{_sysconfdir}/hotplug/usb/*
+
+%post
+/sbin/ldconfig
+
+%changelog -n libgphoto2
+* Wed Jul 16 2003 - [email protected]
+- Initial Spec File