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