9397
|
1 |
#
|
|
2 |
# spec file for package gtkam
|
|
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 |
#
|
|
8 |
# Owner: mattman
|
|
9 |
# bugdb: http://sourceforge.net/tracker/index.php?func=detail&group_id=8874&atid=108874&aid=
|
|
10 |
#
|
|
11 |
%include l10n.inc
|
|
12 |
%define gexif_version 0.5
|
|
13 |
|
|
14 |
Name: gtkam
|
|
15 |
License: GPL
|
|
16 |
Group: Hardware/Other
|
|
17 |
Version: 0.1.14
|
|
18 |
Release: 3
|
|
19 |
Distribution: Java Desktop System
|
|
20 |
Vendor: Sun Microsystems, Inc.
|
|
21 |
Summary: A GTK Digital Camera Viewing Tool
|
|
22 |
Source: http://easynews.dl.sourceforge.net/sourceforge/gphoto/%{name}-%{version}.tar.bz2
|
|
23 |
Source1: http://umn.dl.sourceforge.net/libexif/gexif-%{gexif_version}.tar.bz2
|
|
24 |
Source2: %{name}-po-sun-%{po_sun_version}.tar.bz2
|
|
25 |
# date:2003-08-15 type:branding owner:mattman bugid:1619752
|
|
26 |
Patch1: gtkam-01-menu-entry.diff
|
|
27 |
# date:2004-02-04 type:bug owner:yippi bugster:6329710
|
|
28 |
Patch2: gtkam-02-gettext.diff
|
|
29 |
# date:2004-02-04 type:bug owner:fujiwara bugid:1616317,1616320,1616397 bugster:6329710
|
|
30 |
Patch3: gtkam-03-fixgexif.diff
|
|
31 |
URL: http://www.gphoto.org
|
|
32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
33 |
Docdir: %{_datadir}/doc
|
|
34 |
|
|
35 |
%define libgphoto2_version 2.1.1
|
|
36 |
%define libexif_gtk_version 0.3.2
|
|
37 |
|
|
38 |
Requires: libgphoto2 >= %{libgphoto2_version}
|
|
39 |
Requires: libexif-gtk >= %{libexif_gtk_version}
|
|
40 |
BuildRequires: libgphoto2 >= %{libgphoto2_version}
|
|
41 |
BuildRequires: libexif-gtk >= %{libexif_gtk_version}
|
|
42 |
BuildRequires: gimp-devel
|
|
43 |
|
|
44 |
%description
|
|
45 |
GTKam is a GTK/GNOME based tool to access Digital Cameras,
|
|
46 |
view thumbnails and download pictures from the camera.
|
|
47 |
|
|
48 |
%prep
|
|
49 |
%setup -q
|
|
50 |
bzcat %SOURCE1 | tar xf -
|
|
51 |
%if %build_l10n
|
|
52 |
bzcat %SOURCE2 | tar xf -
|
|
53 |
cd po-sun; make; cd ..
|
|
54 |
%endif
|
|
55 |
%patch1 -p1
|
|
56 |
%patch2 -p1
|
|
57 |
%patch3 -p1
|
|
58 |
|
|
59 |
%build
|
|
60 |
%ifos linux
|
|
61 |
if [ -x /usr/bin/getconf ]; then
|
|
62 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
63 |
fi
|
|
64 |
%else
|
|
65 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
66 |
%endif
|
|
67 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
68 |
CPUS=1
|
|
69 |
fi
|
|
70 |
|
|
71 |
glib-gettextize -f
|
|
72 |
gnome-doc-common
|
|
73 |
libtoolize --force
|
|
74 |
intltoolize --copy --force --automake
|
|
75 |
aclocal $ACLOCAL_FLAGS -I ./m4m
|
|
76 |
automake -a -c -f
|
|
77 |
autoconf
|
|
78 |
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
|
|
79 |
--bindir=%{_bindir} \
|
|
80 |
--libdir=%{_libdir} \
|
|
81 |
--includedir=%{_includedir} \
|
|
82 |
--mandir=%{_mandir} \
|
|
83 |
--with-libintl-prefix=/usr
|
|
84 |
make -j $CPUS INTLLIBS=
|
|
85 |
|
|
86 |
cd gexif-*
|
|
87 |
glib-gettextize -f
|
|
88 |
libtoolize --force
|
|
89 |
intltoolize --copy --force --automake
|
|
90 |
aclocal $ACLOCAL_FLAGS
|
|
91 |
automake -a -c -f
|
|
92 |
autoconf
|
|
93 |
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --prefix=%{_prefix}
|
|
94 |
make INTLLIBS=
|
|
95 |
cd ..
|
|
96 |
|
|
97 |
%install
|
|
98 |
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
99 |
make DESTDIR=$RPM_BUILD_ROOT install-strip
|
|
100 |
cd gexif-*
|
|
101 |
make prefix=$RPM_BUILD_ROOT%{_prefix} install-strip
|
|
102 |
cd ..
|
|
103 |
|
|
104 |
|
|
105 |
# FIXME: Remove scrollkeeper files
|
|
106 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/var/scrollkeeper
|
|
107 |
|
|
108 |
%clean
|
|
109 |
rm -rf $RPM_BUILD_ROOT;
|
|
110 |
|
|
111 |
%files
|
|
112 |
%defattr(-,root,root)
|
|
113 |
%doc AUTHORS COPYING NEWS README TODO
|
|
114 |
%attr(755,root,root) %{_bindir}/gtkam
|
|
115 |
%attr(755,root,root) %{_bindir}/gexif
|
|
116 |
%{_datadir}/gtkam
|
|
117 |
%{_datadir}/images/gtkam
|
|
118 |
%{_datadir}/pixmaps/*
|
|
119 |
%{_datadir}/locale/*/*/*
|
|
120 |
%{_datadir}/applications/*
|
|
121 |
%{_datadir}/gnome/help
|
|
122 |
%{_datadir}/omf/*
|
|
123 |
%{_libdir}/gimp/*/plug-ins/gtkam-gimp
|
|
124 |
%{_mandir}/man1/*
|
|
125 |
|
|
126 |
%changelog
|
|
127 |
* Tue Feb 13 2007 - [email protected]
|
|
128 |
- Add l10n tarball.
|
|
129 |
|
|
130 |
* Tue Feb 06 2007 - [email protected]
|
|
131 |
- Update patch comments
|
|
132 |
|
|
133 |
* Tue Dec 19 2006 - [email protected]
|
|
134 |
- Bump to 0.1.14. Fix patches, removing upstream patches.
|
|
135 |
|
|
136 |
* Thu Dec 14 2006 - [email protected]
|
|
137 |
- Remove gtkam-05-short-cut-key.diff : not needed anymore
|
|
138 |
|
|
139 |
* Tue Dec 12 2006 - [email protected]
|
|
140 |
- Added gtkam-06-g11n-i18n-menu.diff. Fixes 6488200
|
|
141 |
|
|
142 |
* Mon Jul 24 2006 - [email protected]
|
|
143 |
- add option --with-libintl-prefix=/usr
|
|
144 |
|
|
145 |
* Mon May 29 2006 - [email protected]
|
|
146 |
- Remove sfw patch since we're now in /usr/bin by default.
|
|
147 |
* Tue Jan 03 2006 - [email protected]
|
|
148 |
- Bump to 0.1.13.
|
|
149 |
- Remove obsolete patches -06-wall and -07-gimp-plugin. Renumber remaining.
|
|
150 |
|
|
151 |
* Fri Dec 02 2005 - [email protected]
|
|
152 |
- Added gtkam-08-sfw-path.diff to use the absolute path of the executable
|
|
153 |
in the .desktop file as usr/sfw/bin should not be included in $PATH.
|
|
154 |
Fixes bug #6345489.
|
|
155 |
|
|
156 |
* Tue Nov 29 2005 - laca.com
|
|
157 |
- remove javahelp stuff
|
|
158 |
|
|
159 |
* Sun Sep 18 2005 - [email protected]
|
|
160 |
- Add gimp-devel as BuildRequires, and add patch so that we install into the
|
|
161 |
correct plugin directory.
|
|
162 |
|
|
163 |
* Fri Jul 08 2005 - [email protected]
|
|
164 |
- Add patch 08 to remove '-W -Wall -Wno-unused' as they do not work on Solaris.
|
|
165 |
|
|
166 |
* Wed Jun 15 2005 - [email protected]
|
|
167 |
- Bump to 0.1.12
|
|
168 |
|
|
169 |
* Thu May 05 2005 - [email protected]
|
|
170 |
- 6227253: Change xml file in gtkam-C.omf from gtkam.xml to
|
|
171 |
sample_apps_info.xml (part of gnome-user-docs). Bit of a hack but a very easy
|
|
172 |
one to maintain.
|
|
173 |
|
|
174 |
* Thu Mar 10 2005 - [email protected]
|
|
175 |
- Add docs tarball (Source4) to %setup section.
|
|
176 |
|
|
177 |
* Fri Feb 25 2005 - [email protected]
|
|
178 |
- Added dummy l10n online help to follow base update
|
|
179 |
|
|
180 |
* Wed Feb 16 2005 - [email protected]
|
|
181 |
- Integrate docs tarball (gtkam-docs-0.1) from [email protected].
|
|
182 |
|
|
183 |
* Fri Nov 12 2004 - [email protected]
|
|
184 |
- added --libdir and --bindir to configure opts so they can be redirected
|
|
185 |
on Solaris
|
|
186 |
|
|
187 |
* Mon Oct 11 2004 - [email protected]
|
|
188 |
- Move gtkam-gimp plugin to lib/gimp/2.0.
|
|
189 |
|
|
190 |
* Wed Sep 15 2004 - [email protected]
|
|
191 |
- Added gtkam-06-g11n-potfiles.diff
|
|
192 |
|
|
193 |
* Mon Sep 13 2004 - [email protected]
|
|
194 |
- Added code to install javahelp documents. Fixes #5096653
|
|
195 |
|
|
196 |
* Wed Aug 25 2004 - [email protected]
|
|
197 |
- fixed man pages and docs installation
|
|
198 |
|
|
199 |
* Wed Aug 25 2004 - [email protected]
|
|
200 |
- fixed glib-gettextize call
|
|
201 |
|
|
202 |
* Wed Aug 25 2004 - [email protected]
|
|
203 |
- Add unpackaged files to %files section.
|
|
204 |
|
|
205 |
* Mon Aug 09 2004 - [email protected]
|
|
206 |
- Added patch gtkam-05-short-cut-key.diff
|
|
207 |
|
|
208 |
* Thu Jul 08 2004 - [email protected]
|
|
209 |
- Updated l10n content to gtkam-l10n-po-1.2.tar.bz2
|
|
210 |
|
|
211 |
* Wed Jul 07 2004 - [email protected]
|
|
212 |
- added "-j $CPUS" to make to speed up builds
|
|
213 |
|
|
214 |
* Fri Jun 18 2004 - [email protected]
|
|
215 |
- Run glib-gettexttize and intltoolize for both Solaris and Linux
|
|
216 |
- merge i18n patches
|
|
217 |
|
|
218 |
* Thu Jun 10 2004 - [email protected]
|
|
219 |
- make patch5 solaris-only
|
|
220 |
|
|
221 |
* Wed Jun 02 2004 - [email protected]
|
|
222 |
- Added needed patches for Solaris.
|
|
223 |
|
|
224 |
* Wed May 12 2004 - [email protected]
|
|
225 |
- Updated l10n content to gtkam-l10n-po-1.1.tar.bz2
|
|
226 |
|
|
227 |
* Mon Mar 29 2004 - [email protected]
|
|
228 |
- Updated l10n content to gtkam-l10n-po-1.0.tar.bz2
|
|
229 |
|
|
230 |
* Thu Mar 18 2004 - [email protected]
|
|
231 |
- Bump to 0.1.11
|
|
232 |
|
|
233 |
* Thu Mar 04 2004 - [email protected]
|
|
234 |
- Updated gtkam-03-l10n-and-utf8.diff to gtkam-03-g11n-i18n-ui.diff
|
|
235 |
to fix 4935751, 4981813
|
|
236 |
|
|
237 |
* Thu Feb 04 2004 - [email protected]
|
|
238 |
- Add l10n tarball, edit to gtkam-04-gexif-i18n.diff
|
|
239 |
|
|
240 |
* Wed Feb 04 2004 - [email protected]
|
|
241 |
- Port Patches, gexif version
|
|
242 |
|
|
243 |
* Fri Jan 16 2004 - [email protected]
|
|
244 |
- Enable deprecated patch
|
|
245 |
|
|
246 |
* Thu Aug 14 2003 - [email protected]
|
|
247 |
- desktop file for menu entry
|
|
248 |
|
|
249 |
* Wed Jul 16 2003 - [email protected]
|
|
250 |
- Initial version
|