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