author | dcarbery |
Fri, 24 Nov 2006 16:37:59 +0000 | |
branch | 217update |
changeset 19096 | d542fc2c823e |
parent 8564 | df62c23d2955 |
child 8763 | b93a5ac8104c |
child 19010 | e42e2a66fa57 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package libgphoto2 |
|
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8564 | 8 |
# Owner: mattman |
9 |
# |
|
585 | 10 |
Name: libgphoto2 |
11 |
License: LGPL |
|
12 |
Group: Library/Hardware/Other |
|
7693 | 13 |
Version: 2.2.1 |
14 |
Release: 1 |
|
5518 | 15 |
Distribution: Java Desktop System |
591 | 16 |
Vendor: Sun Microsystems, Inc. |
585 | 17 |
Summary: Digital camera library |
7693 | 18 |
Source: http://heanet.dl.sourceforge.net/sourceforge/gphoto/%{name}-%{version}.tar.bz2 |
585 | 19 |
Source1: usermap.gphoto |
20 |
Source2: usbcam |
|
2434 | 21 |
Patch1: libgphoto2-01-gettext.diff |
5518 | 22 |
Patch2: libgphoto2-02-uninstalled-pc.diff |
6898 | 23 |
Patch3: libgphoto2-03-solaris-mntent.diff |
7256
39cb28ba817d
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7243
diff
changeset
|
24 |
Patch4: libgphoto2-04-pragma-pack.diff |
7739 | 25 |
Patch5: libgphoto2-05-dummy.diff |
585 | 26 |
URL: http://www.gphoto.org |
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
28 |
DocDir: %{_defaultdocdir}/libgphoto2 |
|
29 |
Autoreqprov: on |
|
1080 | 30 |
Prereq: /sbin/ldconfig |
585 | 31 |
|
32 |
Requires: hotplug |
|
33 |
||
34 |
%description |
|
35 |
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. |
|
36 |
||
37 |
(It does not support digital cameras based on the USB storage protocol, |
|
38 |
those can be mounted by Linux directly.) |
|
39 |
||
40 |
As of this time gPhoto supports around 200 cameras, listed on: |
|
41 |
||
42 |
http://www.gphoto.org/cameras.html |
|
43 |
||
44 |
or by running |
|
45 |
||
46 |
gphoto2 --list-cameras |
|
47 |
||
48 |
%prep |
|
49 |
%setup -q |
|
2474 | 50 |
%ifos solaris |
2434 | 51 |
%patch1 -p1 |
2474 | 52 |
%endif |
2434 | 53 |
%patch2 -p1 |
6898 | 54 |
%patch3 -p1 |
7256
39cb28ba817d
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7243
diff
changeset
|
55 |
%patch4 -p1 |
8401 | 56 |
%patch5 -p1 |
4455 | 57 |
|
585 | 58 |
%build |
3263 | 59 |
%ifos linux |
60 |
if [ -x /usr/bin/getconf ]; then |
|
61 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
62 |
fi |
|
63 |
%else |
|
3846 | 64 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 65 |
%endif |
66 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
67 |
CPUS=1 |
|
68 |
fi |
|
69 |
||
2434 | 70 |
%ifos solaris |
71 |
glib-gettextize -f |
|
72 |
%endif |
|
585 | 73 |
#%{?suse_update_config:%{suse_update_config -f . libgphoto2_port}} |
74 |
libtoolize --copy --force |
|
5518 | 75 |
aclocal $ACLOCAL_FLAGS -I libgphoto2_port/m4 |
585 | 76 |
automake -a -f |
77 |
autoconf |
|
78 |
cd libgphoto2_port |
|
2462 | 79 |
%ifos solaris |
80 |
glib-gettextize -f |
|
81 |
%endif |
|
82 |
libtoolize --copy --force |
|
5518 | 83 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
2462 | 84 |
automake -a -f |
85 |
autoconf |
|
585 | 86 |
cd .. |
2434 | 87 |
# Removing sierra driver on Solaris since it doesn't compile. |
88 |
%ifos solaris |
|
89 |
%define driver_options "--with-drivers=agfa-cl20,aox,barbie,canon,casio,digita,dimera,directory,fuji,gsmart300,jamcam,jd11,kodak,konica,mustek,largan,minolta,panasonic,pccam300,pccam600,polaroid,ptp2,ricoh,samsung,smal,sipix,sonydscf1,sonydscf55,soundvision,spca50x,sq905,stv0680,sx330z" |
|
6547
4f067ebacd0f
* libgphoto2.spec: Add libusb option for Solaris.
dc144907
parents:
6465
diff
changeset
|
90 |
%define libusb_option "--with-libusb=/usr/sfw" |
7256
39cb28ba817d
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7243
diff
changeset
|
91 |
export LIBUSB_LIBS="-L/usr/sfw/lib -R/usr/sfw/lib -lusb" |
6664 | 92 |
export LIBUSB_CFLAGS="-I/usr/sfw/include" |
2434 | 93 |
%else |
6547
4f067ebacd0f
* libgphoto2.spec: Add libusb option for Solaris.
dc144907
parents:
6465
diff
changeset
|
94 |
%define driver_options "--with-drivers=all" |
4f067ebacd0f
* libgphoto2.spec: Add libusb option for Solaris.
dc144907
parents:
6465
diff
changeset
|
95 |
%define libusb_option "" |
2434 | 96 |
%endif |
97 |
||
585 | 98 |
PATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure \ |
99 |
--prefix=%{_prefix} \ |
|
100 |
--mandir=%{_mandir} \ |
|
4536 | 101 |
--bindir=%{_bindir} \ |
585 | 102 |
--libdir=%{_libdir} \ |
4536 | 103 |
--includedir=%{_includedir} \ |
585 | 104 |
--with-doc-dir=%{_defaultdocdir}/%{name} \ |
6547
4f067ebacd0f
* libgphoto2.spec: Add libusb option for Solaris.
dc144907
parents:
6465
diff
changeset
|
105 |
--disable-static %{libusb_option} %{driver_options} |
7243
69a196f7101d
2006-05-10 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6923
diff
changeset
|
106 |
make -j $CPUS INTLLIBS= |
585 | 107 |
|
108 |
%install |
|
109 |
export LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} |
|
5518 | 110 |
make DESTDIR=$RPM_BUILD_ROOT install |
585 | 111 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb/ |
112 |
cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb/usbcam.usermap |
|
113 |
install -c -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb/usbcam |
|
5518 | 114 |
|
8327 | 115 |
rm $RPM_BUILD_ROOT%{_libdir}/libgphoto2/*/*.la |
116 |
rm $RPM_BUILD_ROOT%{_libdir}/libgphoto2_port/*/*.la |
|
6923 | 117 |
|
3628 | 118 |
#Clean up unpackaged files |
6923 | 119 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
585 | 120 |
|
121 |
%clean |
|
6923 | 122 |
rm -rf $RPM_BUILD_ROOT |
585 | 123 |
|
1080 | 124 |
%post |
125 |
/sbin/ldconfig |
|
126 |
||
127 |
%postun |
|
128 |
/sbin/ldconfig |
|
129 |
||
585 | 130 |
%files |
131 |
%defattr(-,root,root) |
|
132 |
%{_includedir}/gphoto2 |
|
133 |
%dir %{_defaultdocdir}/%{name} |
|
134 |
%{_defaultdocdir}/%{name}/* |
|
135 |
%{_datadir}/libgphoto2 |
|
136 |
%{_bindir}/gphoto2-config |
|
137 |
%{_bindir}/gphoto2-port-config |
|
1058 | 138 |
%{_libdir}/libgphoto2.*so* |
6923 | 139 |
%{_libdir}/libgphoto2/*/*.so |
585 | 140 |
%{_libdir}/libgphoto2_port.* |
6923 | 141 |
%{_libdir}/libgphoto2_port/*/*.so |
3628 | 142 |
%{_libdir}/libgphoto2/print-usb-usermap |
585 | 143 |
%{_libdir}/pkgconfig/libgphoto2.pc |
144 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
5518 | 145 |
%{_mandir}/man3/ |
585 | 146 |
%{_sysconfdir}/hotplug/usb/* |
147 |
||
148 |
%changelog -n libgphoto2 |
|
8327 | 149 |
* Mon Oct 16 2006 - [email protected] |
150 |
- Remove the '-f' from the 'rm *.la *.a' lines so that any changes to the |
|
151 |
module source will be seen as a build error and action can be taken. |
|
152 |
||
7739 | 153 |
* Mon Jul 24 2006 [email protected] |
154 |
- Add patch libgphoto2-05-dummy.diff |
|
155 |
||
7693 | 156 |
* Web Jul 21 2006 - [email protected] |
157 |
- Bump to 2.2.1. |
|
7256
39cb28ba817d
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7243
diff
changeset
|
158 |
* Thu May 11 2006 - [email protected] |
39cb28ba817d
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7243
diff
changeset
|
159 |
- add patch pragma-pack.diff |
6898 | 160 |
* Thu Mar 9 2006 - [email protected] |
161 |
- Add patch, 03-solaris-mntent, to port mntent code to Solaris. |
|
6664 | 162 |
* Wed Jan 25 2006 - [email protected] |
163 |
- Set LIBUSB_LIBS and LIBUSB_CFLAGS which makes the libgphoto2_port configure |
|
164 |
happier. For some reason just calling with --with-libusb isn't enough. The |
|
165 |
build still fails when compiling libgphoto2_port/disk.c because Solaris does |
|
7256
39cb28ba817d
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
7243
diff
changeset
|
166 |
not have mntent.h, but this gets the build farther along. |
6465 | 167 |
* Tue Jan 03 2006 - [email protected] |
168 |
- Bump to 2.1.99. |
|
5529
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
169 |
* Mon Aug 15 2005 - [email protected] |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
170 |
- Bump to 2.1.6. |
5039 | 171 |
* Wed Feb 09 2005 - [email protected] |
172 |
- Version updated to 2.1.5 |
|
173 |
- Patches 2 and 4 are not longer needed: |
|
174 |
libgphoto2-02-fix-konica.diff, libgphoto2-04-pc.diff |
|
175 |
- Renamed path 5 as patch 2: libgphoto2-05-g11n-potfiles.diff -> |
|
176 |
libgphoto2-02-g11n-potfiles.diff |
|
4536 | 177 |
* Fri Nov 12 2004 - [email protected] |
178 |
- added --bindir=%{_bindir} so it can be redirected on Solaris |
|
3955
10424d4f0260
Added libgphoto2-05-g11n-potfiles.diff. Updated libgphoto2.spec.
yk150259
parents:
3858
diff
changeset
|
179 |
* Wed Sep 15 2004 - [email protected] |
10424d4f0260
Added libgphoto2-05-g11n-potfiles.diff. Updated libgphoto2.spec.
yk150259
parents:
3858
diff
changeset
|
180 |
- Added libgphoto2-05-g11n-potfiles.diff |
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
181 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
182 |
- Updated l10n content to libgphoto2-l10n-po-1.2.tar.bz2 |
3628 | 183 |
* Thu Jul 08 2004 - [email protected] |
184 |
- ported to rpm4 |
|
3263 | 185 |
* Wed Jul 07 2004 - [email protected] |
186 |
- added "-j $CPUS" to make to speed up builds |
|
2955 | 187 |
* Fri May 28 2004 - [email protected] |
188 |
- Added patch 04, so that gtkam can build on Solaris. |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
189 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
190 |
- Updated l10n content to libgphoto2-l10n-po-1.1.tar.bz2 |
2474 | 191 |
* Thu Apr 15 2004 - [email protected] |
192 |
- Only apply patch01 on Solaris since it is causing problems for |
|
193 |
Linux. |
|
2462 | 194 |
* Wed Apr 14 2004 - [email protected] |
195 |
- Add glib-gettextize -f when running configure in the |
|
196 |
libgphoto2_port directory. |
|
2434 | 197 |
* Thu Apr 08 2004 - [email protected] |
198 |
- Avoid building sierra driver on Solaris, since it doesn't |
|
199 |
build with Forte. Add needed 02 patch. |
|
2355 | 200 |
* Wed Mar 31 2004 - [email protected] |
201 |
- replace tar jxf with the more solaris friendly |
|
202 |
bzcat piped through tar |
|
2350 | 203 |
* Mon Mar 29 2004 - [email protected] |
204 |
- Updated l10n content to libgphoto2-l10n-po-1.0.tar.bz2 |
|
1568 | 205 |
* Wed Feb 04 2004 - <[email protected]> |
206 |
- New Tarball 2.1.4, added l10n tarball |
|
207 |
- Remove patch: libgphoto2-01-potfiles-in.diff |
|
1257 | 208 |
* Tue Oct 14 2003 - <[email protected]> |
209 |
- New Tarball 2.1.2 for QS |
|
1058 | 210 |
* Thu Aug 14 2003 - <[email protected]> |
211 |
- remove *.a, *.la |
|
740 | 212 |
* Wed Jul 23 2003 - [email protected] |
213 |
- Fixing POTFILES.in |
|
585 | 214 |
* Wed Jul 16 2003 - [email protected] |
215 |
- Initial Spec File |