author | dcarbery |
Fri, 24 Nov 2006 16:37:59 +0000 | |
branch | 217update |
changeset 19096 | d542fc2c823e |
parent 8564 | df62c23d2955 |
child 8756 | 4ca44ad2b521 |
child 19010 | e42e2a66fa57 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package gphoto2 |
|
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: gphoto2 |
11 |
License: GPL |
|
12 |
Group: Hardware/Other |
|
7693 | 13 |
Version: 2.2.0 |
5518 | 14 |
Release: 1 |
15 |
Distribution: Java Desktop System |
|
591 | 16 |
Vendor: Sun Microsystems, Inc. |
585 | 17 |
Summary: Digital camera utility |
7693 | 18 |
Source: http://heanet.dl.sourceforge.net/sourceforge/gphoto/%{name}-%{version}.tar.bz2 |
5979 | 19 |
Patch1: gphoto2-01-build.diff |
585 | 20 |
URL: http://www.gphoto.org |
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
22 |
DocDir: %{_defaultdocdir}/gphoto2 |
|
23 |
Autoreqprov: on |
|
24 |
||
1258 | 25 |
%define libgphoto2_version 2.1.2 |
649 | 26 |
|
27 |
Requires: libgphoto2 >= %{libgphoto2_version} |
|
683 | 28 |
BuildRequires: libgphoto2 >= %{libgphoto2_version} |
649 | 29 |
|
585 | 30 |
%description |
8564 | 31 |
gPhoto (GNU Photo) is a commandline tool for previewing, retrieving, and |
32 |
capturing images from a range of supported digital camerason to your |
|
33 |
local harddrive. |
|
585 | 34 |
|
35 |
(It does not support digital cameras based on the USB storage protocol, |
|
36 |
those can be mounted by Linux directly.) |
|
37 |
||
38 |
As of this time gPhoto supports around 200 cameras, listed on: |
|
39 |
||
40 |
http://www.gphoto.org/cameras.html |
|
41 |
||
42 |
or by running |
|
43 |
||
44 |
gphoto2 --list-cameras |
|
45 |
||
46 |
%prep |
|
47 |
%setup -q -n gphoto2-%{version} |
|
1933 | 48 |
%patch1 -p1 |
4455 | 49 |
|
585 | 50 |
%build |
3263 | 51 |
%ifos linux |
52 |
if [ -x /usr/bin/getconf ]; then |
|
53 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
54 |
fi |
|
55 |
%else |
|
3846 | 56 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 57 |
%endif |
58 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
59 |
CPUS=1 |
|
60 |
fi |
|
61 |
||
2586 | 62 |
%ifos solaris |
63 |
glib-gettextize -f |
|
64 |
%endif |
|
585 | 65 |
libtoolize --copy --force |
6923 | 66 |
aclocal $ACLOCAL_FLAGS -I ./m4m |
1569 | 67 |
automake -a -f |
585 | 68 |
autoconf |
69 |
PATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure \ |
|
70 |
--prefix=%{_prefix} \ |
|
71 |
--mandir=%{_mandir} \ |
|
4536 | 72 |
--bindir=%{_bindir} \ |
585 | 73 |
--libdir=%{_libdir} \ |
4536 | 74 |
--includedir=%{_includedir} \ |
585 | 75 |
--with-cdk-prefix={_prefix} \ |
7739 | 76 |
--with-libintl-prefix=/usr \ |
585 | 77 |
--with-doc-dir=%{_defaultdocdir}/%{name} |
7256
39cb28ba817d
2006-05-11 Laszlo (Laca) Peter <[email protected]>
lp117937
parents:
6923
diff
changeset
|
78 |
make -j $CPUS INTLLIBS= |
585 | 79 |
|
80 |
%install |
|
3711 | 81 |
make DESTDIR=$RPM_BUILD_ROOT install |
585 | 82 |
|
83 |
%clean |
|
84 |
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
|
85 |
||
86 |
%files |
|
87 |
%defattr(-,root,root) |
|
88 |
%{_bindir}/gphoto2 |
|
89 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
3656 | 90 |
%{_mandir}/man1/* |
585 | 91 |
|
2421 | 92 |
%changelog |
7739 | 93 |
* Mon Jul 24 2006 - [email protected] |
94 |
- add option --with-libintl-prefix=/usr |
|
7693 | 95 |
* Web Jul 21 2006 - [email protected] |
96 |
- Bump to 2.2.0. |
|
6465 | 97 |
* Tue Jan 03 2006 - [email protected] |
98 |
- Bump to 2.1.99. |
|
5979 | 99 |
* Tue Sep 20 2005 - [email protected] |
100 |
- update patches forte-configure and forte-fixes and merge them into one |
|
5529
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
101 |
* Mon Aug 15 2005 - [email protected] |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
102 |
- Bump to 2.1.6. |
5518 | 103 |
* Wed Jun 08 2005 - [email protected] |
104 |
- Bump to 2.1.5 |
|
4536 | 105 |
* Fri Nov 12 2004 - [email protected] |
106 |
- Added --bindir=%{_bindir} so it can be redirected on Solaris |
|
4188
659ece934298
Recreated and reintroduced failed alllinguas patches
cm152228
parents:
4133
diff
changeset
|
107 |
* Thu Oct 07 2004 - [email protected] |
4191
77f98e1114ef
Backing out patch 4, it only applies on linux, not on solaris
cm152228
parents:
4188
diff
changeset
|
108 |
- Backing out Patch4,only applies in linux |
77f98e1114ef
Backing out patch 4, it only applies on linux, not on solaris
cm152228
parents:
4188
diff
changeset
|
109 |
- and not in Solaris for unknown reason. |
77f98e1114ef
Backing out patch 4, it only applies on linux, not on solaris
cm152228
parents:
4188
diff
changeset
|
110 |
* Thu Oct 07 2004 - [email protected] |
4188
659ece934298
Recreated and reintroduced failed alllinguas patches
cm152228
parents:
4133
diff
changeset
|
111 |
- Recreated gphoto2-04-g11n-alllinguas.diff |
4023 | 112 |
* Mon Sep 20 2004 - [email protected] |
113 |
- Removed patch 04 |
|
3974
0a6845ee0008
Updating gphoto2.spec to include gphoto2-04-g11n-alllinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
114 |
* Thu Sep 16 2004 - [email protected] |
0a6845ee0008
Updating gphoto2.spec to include gphoto2-04-g11n-alllinguas.diff patch
yk150259
parents:
3858
diff
changeset
|
115 |
- Added gphoto2-04-g11n-alllinguas.diff to add hu lingua. |
3711 | 116 |
* Tue Aug 24 2004 - [email protected] |
117 |
- fix man pge installation |
|
3656 | 118 |
* Fri Aug 20 2004 - [email protected] |
119 |
- added man page to pkg list |
|
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
120 |
* 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
|
121 |
- Updated l10n content to gphoto2-l10n-po-1.2.tar.bz2 |
3263 | 122 |
* Wed Jul 07 2004 - [email protected] |
123 |
- added "-j $CPUS" to make to speed up builds |
|
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2627
diff
changeset
|
124 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2627
diff
changeset
|
125 |
- Updated l10n content to gphoto2-l10n-po-1.1.tar.bz2 |
2627 | 126 |
* Tue May 04 2004 - [email protected] |
127 |
- grrr... don't rm -rf $RPM_BUILD_ROOT in %install, do it in %clean |
|
2618 | 128 |
* Mon May 03 2004 - [email protected] |
129 |
- fixed %install cleanup error |
|
2462 | 130 |
* Wed Apr 14 2004 - [email protected] |
131 |
- Added $ACLOCAL_FLAGS to aclocal call, needed for Solaris. |
|
2421 | 132 |
* Wed Apr 07 2004 - [email protected] |
133 |
- Removed -n from %changelog. It breaks Solaris and Laca recommended |
|
134 |
removing it. |
|
2350 | 135 |
* Mon Mar 29 2004 - [email protected] |
136 |
- Updated l10n content to gphoto2-l10n-po-1.0.tar.bz2 |
|
1569 | 137 |
* Wed Feb 04 2004 - [email protected] |
1933 | 138 |
- Ported Patch 01 from QS |
139 |
* Wed Feb 04 2004 - [email protected] |
|
1569 | 140 |
- New tarball 2.1.4 for Cinnabar |
1258 | 141 |
* Tue Oct 14 2003 - [email protected] |
142 |
- New Tarball 2.1.2 for QS |
|
585 | 143 |
* Wed Jul 16 2003 - [email protected] |
144 |
- Initial version |