author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 16426 | 6e0af232ec80 |
child 16797 | 9ec262bbf629 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package gphoto2 |
|
3 |
# |
|
11963 | 4 |
# Copyright (c) 2008 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner mattman |
9397 | 9 |
# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=8874&atid=108874&aid= |
10 |
# |
|
16426 | 11 |
|
12 |
%define OSR 2306:2.1.4 |
|
13 |
||
9397 | 14 |
Name: gphoto2 |
15 |
License: GPL |
|
16 |
Group: Hardware/Other |
|
15560 | 17 |
Version: 2.4.5 |
11963 | 18 |
Release: 1 |
9397 | 19 |
Distribution: Java Desktop System |
20 |
Vendor: Sun Microsystems, Inc. |
|
21 |
Summary: Digital camera utility |
|
14485 | 22 |
Source: http://kent.dl.sourceforge.net/sourceforge/gphoto/gphoto2-%{version}.tar.bz2 |
12741 | 23 |
# date:2005-09-30 type:bug owner:dcarbery bugster:6570425 |
9397 | 24 |
Patch1: gphoto2-01-gettext.diff |
12991
5890cd0839ce
* base-specs/gtkam.spec : Add new man page attributes patch
mattman
parents:
12872
diff
changeset
|
25 |
# date:2008-08-01 type:branding owner:mattman |
5890cd0839ce
* base-specs/gtkam.spec : Add new man page attributes patch
mattman
parents:
12872
diff
changeset
|
26 |
Patch2: gphoto2-02-man.diff |
9397 | 27 |
URL: http://www.gphoto.org |
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
29 |
DocDir: %{_defaultdocdir}/gphoto2 |
|
30 |
Autoreqprov: on |
|
31 |
||
32 |
%define libgphoto2_version 2.1.2 |
|
33 |
||
34 |
Requires: libgphoto2 >= %{libgphoto2_version} |
|
35 |
BuildRequires: libgphoto2 >= %{libgphoto2_version} |
|
36 |
||
37 |
%description |
|
38 |
gPhoto (GNU Photo) is a commandline tool for previewing, retrieving, and |
|
39 |
capturing images from a range of supported digital camerason to your |
|
40 |
local harddrive. |
|
41 |
||
42 |
(It does not support digital cameras based on the USB storage protocol, |
|
43 |
those can be mounted by Linux directly.) |
|
44 |
||
45 |
As of this time gPhoto supports around 200 cameras, listed on: |
|
46 |
||
47 |
http://www.gphoto.org/cameras.html |
|
48 |
||
49 |
or by running |
|
50 |
||
51 |
gphoto2 --list-cameras |
|
52 |
||
53 |
%prep |
|
54 |
%setup -q -n gphoto2-%{version} |
|
55 |
%patch1 -p1 |
|
12991
5890cd0839ce
* base-specs/gtkam.spec : Add new man page attributes patch
mattman
parents:
12872
diff
changeset
|
56 |
%patch2 -p1 |
9397 | 57 |
|
58 |
%build |
|
59 |
%ifos linux |
|
60 |
if [ -x /usr/bin/getconf ]; then |
|
61 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
62 |
fi |
|
63 |
%else |
|
64 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
65 |
%endif |
|
66 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
67 |
CPUS=1 |
|
68 |
fi |
|
69 |
||
70 |
%ifos solaris |
|
71 |
glib-gettextize -f |
|
72 |
%endif |
|
73 |
libtoolize --copy --force |
|
11262 | 74 |
aclocal-1.9 $ACLOCAL_FLAGS -I ./m4m -I ./auto-m4 |
10248 | 75 |
autoheader |
9650 | 76 |
automake-1.9 -a -f |
9397 | 77 |
autoconf |
78 |
PATH="/usr/X11R6/bin:$PATH" CFLAGS="$RPM_OPT_FLAGS" ./configure \ |
|
79 |
--prefix=%{_prefix} \ |
|
80 |
--mandir=%{_mandir} \ |
|
81 |
--bindir=%{_bindir} \ |
|
82 |
--libdir=%{_libdir} \ |
|
83 |
--includedir=%{_includedir} \ |
|
84 |
--with-cdk-prefix={_prefix} \ |
|
85 |
--with-libintl-prefix=/usr \ |
|
86 |
--with-doc-dir=%{_defaultdocdir}/%{name} |
|
87 |
make -j $CPUS INTLLIBS= |
|
88 |
||
89 |
%install |
|
90 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
91 |
||
92 |
%clean |
|
93 |
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
|
94 |
||
95 |
%files |
|
96 |
%defattr(-,root,root) |
|
97 |
%{_bindir}/gphoto2 |
|
98 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
99 |
%{_mandir}/man1/* |
|
100 |
||
101 |
%changelog |
|
15560 | 102 |
* Fri Apr 03 2009 - [email protected] |
103 |
- Bump to 2.4.5. |
|
14952 | 104 |
* Wed Jan 21 2009 - [email protected] |
105 |
- Bump to 2.4.4. |
|
14485 | 106 |
* Tue Oct 21 2008 - [email protected] |
107 |
- Bump to 2.4.3. |
|
12991
5890cd0839ce
* base-specs/gtkam.spec : Add new man page attributes patch
mattman
parents:
12872
diff
changeset
|
108 |
* Fri Aug 01 2008 - [email protected] |
5890cd0839ce
* base-specs/gtkam.spec : Add new man page attributes patch
mattman
parents:
12872
diff
changeset
|
109 |
- Add man page attributes patch |
12872 | 110 |
* Mon Jul 21 2008 - [email protected] |
111 |
- Bump to 2.4.2. |
|
11963 | 112 |
* Sat Mar 29 2008 - [email protected] |
113 |
- Bump to 2.4.1. |
|
11262 | 114 |
* Wed Nov 28 2007 - [email protected] |
115 |
- Bump to 2.4.0 and add back patch gphoto2-02-fixbuild.diff |
|
10304 | 116 |
* Mon Aug 13 2007 - [email protected] |
117 |
- Bump back to 2.3.1, since 2.4.0 depends on libltdl which is not |
|
118 |
yet in Nevada (it is a part of libtool). Will bump back to 2.4.0 once |
|
119 |
libtool is in Nevada. |
|
10248 | 120 |
* Tue Jul 31 2007 - [email protected] |
121 |
- Bump to 2.4.0. |
|
9650 | 122 |
* Mon Apr 2 2007 - [email protected] |
123 |
- force using automake 1.9 |
|
9397 | 124 |
* Tue Feb 13 2007 - [email protected] |
125 |
- Bump to 2.3.1 |
|
126 |
* Tue Dec 19 2006 - [email protected] |
|
127 |
- Bump to 2.3.0. |
|
128 |
* Mon Jul 24 2006 - [email protected] |
|
129 |
- add option --with-libintl-prefix=/usr |
|
130 |
* Web Jul 21 2006 - [email protected] |
|
131 |
- Bump to 2.2.0. |
|
132 |
* Tue Jan 03 2006 - [email protected] |
|
133 |
- Bump to 2.1.99. |
|
134 |
* Tue Sep 20 2005 - [email protected] |
|
135 |
- update patches forte-configure and forte-fixes and merge them into one |
|
136 |
* Mon Aug 15 2005 - [email protected] |
|
137 |
- Bump to 2.1.6. |
|
138 |
* Wed Jun 08 2005 - [email protected] |
|
139 |
- Bump to 2.1.5 |
|
140 |
* Fri Nov 12 2004 - [email protected] |
|
141 |
- Added --bindir=%{_bindir} so it can be redirected on Solaris |
|
142 |
* Thu Oct 07 2004 - [email protected] |
|
143 |
- Backing out Patch4,only applies in linux |
|
144 |
- and not in Solaris for unknown reason. |
|
145 |
* Thu Oct 07 2004 - [email protected] |
|
146 |
- Recreated gphoto2-04-g11n-alllinguas.diff |
|
147 |
* Mon Sep 20 2004 - [email protected] |
|
148 |
- Removed patch 04 |
|
149 |
* Thu Sep 16 2004 - [email protected] |
|
150 |
- Added gphoto2-04-g11n-alllinguas.diff to add hu lingua. |
|
151 |
* Tue Aug 24 2004 - [email protected] |
|
152 |
- fix man pge installation |
|
153 |
* Fri Aug 20 2004 - [email protected] |
|
154 |
- added man page to pkg list |
|
155 |
* Thu Jul 08 2004 - [email protected] |
|
156 |
- Updated l10n content to gphoto2-l10n-po-1.2.tar.bz2 |
|
157 |
* Wed Jul 07 2004 - [email protected] |
|
158 |
- added "-j $CPUS" to make to speed up builds |
|
159 |
* Wed May 12 2004 - [email protected] |
|
160 |
- Updated l10n content to gphoto2-l10n-po-1.1.tar.bz2 |
|
161 |
* Tue May 04 2004 - [email protected] |
|
162 |
- grrr... don't rm -rf $RPM_BUILD_ROOT in %install, do it in %clean |
|
163 |
* Mon May 03 2004 - [email protected] |
|
164 |
- fixed %install cleanup error |
|
165 |
* Wed Apr 14 2004 - [email protected] |
|
166 |
- Added $ACLOCAL_FLAGS to aclocal call, needed for Solaris. |
|
167 |
* Wed Apr 07 2004 - [email protected] |
|
168 |
- Removed -n from %changelog. It breaks Solaris and Laca recommended |
|
169 |
removing it. |
|
170 |
* Mon Mar 29 2004 - [email protected] |
|
171 |
- Updated l10n content to gphoto2-l10n-po-1.0.tar.bz2 |
|
172 |
* Wed Feb 04 2004 - [email protected] |
|
173 |
- Ported Patch 01 from QS |
|
174 |
* Wed Feb 04 2004 - [email protected] |
|
175 |
- New tarball 2.1.4 for Cinnabar |
|
176 |
* Tue Oct 14 2003 - [email protected] |
|
177 |
- New Tarball 2.1.2 for QS |
|
178 |
* Wed Jul 16 2003 - [email protected] |
|
179 |
- Initial version |