author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19882 | 23cc5cfbaf30 |
permissions | -rw-r--r-- |
19693 | 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 |
# |
|
1576 | 8 |
%define gexif_version 0.5 |
585 | 9 |
|
10 |
Name: gtkam |
|
11 |
License: GPL |
|
12 |
Group: Hardware/Other |
|
19422 | 13 |
Version: 0.1.12 |
14 |
Release: 1 |
|
19693 | 15 |
Distribution: Java Desktop System |
591 | 16 |
Vendor: Sun Microsystems, Inc. |
585 | 17 |
Summary: A GTK Digital Camera Viewing Tool |
19881 | 18 |
Source: http://umn.dl.sourceforge.net/gphoto/gtkam-%{version}.tar.gz |
19882 | 19 |
Source1: http://umn.dl.sourceforge.net/libexif/gexif-%{gexif_version}.tar.bz2 |
1069 | 20 |
Patch1: gtkam-01-menu-entry.diff |
1532
c4a9396b7859
Enable deprecated for libexif-gtk and gtkam so that they build :)
mattk
parents:
1522
diff
changeset
|
21 |
Patch2: gtkam-02-enable-deprecated.diff |
3169 | 22 |
Patch3: gtkam-03-g11n-i18n.diff |
23 |
Patch4: gtkam-04-solaris.diff |
|
3515 | 24 |
Patch5: gtkam-05-short-cut-key.diff |
19733 | 25 |
Patch6: gtkam-06-wall.diff |
19832 | 26 |
Patch7: gtkam-07-gimp-plugin.diff |
585 | 27 |
URL: http://www.gphoto.org |
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
3750 | 29 |
Docdir: %{_datadir}/doc |
650 | 30 |
|
31 |
%define libgphoto2_version 2.1.1 |
|
1576 | 32 |
%define libexif_gtk_version 0.3.2 |
650 | 33 |
|
34 |
Requires: libgphoto2 >= %{libgphoto2_version} |
|
704 | 35 |
Requires: libexif-gtk >= %{libexif_gtk_version} |
683 | 36 |
BuildRequires: libgphoto2 >= %{libgphoto2_version} |
704 | 37 |
BuildRequires: libexif-gtk >= %{libexif_gtk_version} |
19832 | 38 |
BuildRequires: gimp-devel |
650 | 39 |
|
585 | 40 |
%description |
41 |
GTKam is a GTK/GNOME based tool to access Digital Cameras, |
|
42 |
view thumbnails and download pictures from the camera. |
|
43 |
||
44 |
%prep |
|
45 |
%setup -q |
|
1522 | 46 |
bzcat %SOURCE1 | tar xf - |
1532
c4a9396b7859
Enable deprecated for libexif-gtk and gtkam so that they build :)
mattk
parents:
1522
diff
changeset
|
47 |
%patch1 -p1 |
c4a9396b7859
Enable deprecated for libexif-gtk and gtkam so that they build :)
mattk
parents:
1522
diff
changeset
|
48 |
%patch2 -p1 |
1576 | 49 |
%patch3 -p1 |
50 |
%patch4 -p1 |
|
3515 | 51 |
%patch5 -p1 |
19733 | 52 |
%patch6 -p1 |
585 | 53 |
|
4455 | 54 |
|
585 | 55 |
%build |
3263 | 56 |
%ifos linux |
57 |
if [ -x /usr/bin/getconf ]; then |
|
58 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
59 |
fi |
|
60 |
%else |
|
3846 | 61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 62 |
%endif |
63 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
64 |
CPUS=1 |
|
65 |
fi |
|
66 |
||
3746 | 67 |
glib-gettextize -f |
2244 | 68 |
gnome-doc-common |
1069 | 69 |
libtoolize --force |
3169 | 70 |
intltoolize --copy --force --automake |
19243 | 71 |
aclocal $ACLOCAL_FLAGS |
1069 | 72 |
automake -a -c -f |
73 |
autoconf |
|
3750 | 74 |
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ |
4536 | 75 |
--bindir=%{_bindir} \ |
76 |
--libdir=%{_libdir} \ |
|
77 |
--includedir=%{_includedir} \ |
|
3750 | 78 |
--mandir=%{_mandir} |
3263 | 79 |
make -j $CPUS |
1069 | 80 |
|
585 | 81 |
cd gexif-* |
3169 | 82 |
glib-gettextize -f |
83 |
libtoolize --force |
|
84 |
intltoolize --copy --force --automake |
|
19243 | 85 |
aclocal $ACLOCAL_FLAGS |
3169 | 86 |
automake -a -c -f |
87 |
autoconf |
|
88 |
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure --prefix=%{_prefix} |
|
89 |
make |
|
585 | 90 |
cd .. |
91 |
||
92 |
%install |
|
93 |
mkdir -p $RPM_BUILD_ROOT%{_prefix} |
|
94 |
make DESTDIR=$RPM_BUILD_ROOT install-strip |
|
95 |
cd gexif-* |
|
96 |
make prefix=$RPM_BUILD_ROOT%{_prefix} install-strip |
|
97 |
cd .. |
|
98 |
||
99 |
%clean |
|
19727 | 100 |
rm -rf $RPM_BUILD_ROOT; |
585 | 101 |
|
102 |
%files |
|
103 |
%defattr(-,root,root) |
|
3736
954faf76fa5c
* gtkam.spec: Add unpackaged files to %files section.
dc144907
parents:
3679
diff
changeset
|
104 |
%doc AUTHORS COPYING NEWS README TODO |
585 | 105 |
%attr(755,root,root) %{_bindir}/gtkam |
106 |
%attr(755,root,root) %{_bindir}/gexif |
|
107 |
%{_datadir}/gtkam |
|
108 |
%{_datadir}/images/gtkam |
|
3736
954faf76fa5c
* gtkam.spec: Add unpackaged files to %files section.
dc144907
parents:
3679
diff
changeset
|
109 |
%{_datadir}/pixmaps/* |
585 | 110 |
%{_datadir}/locale/*/*/* |
1069 | 111 |
%{_datadir}/applications/* |
3907 | 112 |
%{_datadir}/gnome/help |
3736
954faf76fa5c
* gtkam.spec: Add unpackaged files to %files section.
dc144907
parents:
3679
diff
changeset
|
113 |
%{_datadir}/omf/* |
954faf76fa5c
* gtkam.spec: Add unpackaged files to %files section.
dc144907
parents:
3679
diff
changeset
|
114 |
%{_libdir}/gimp/*/plug-ins/gtkam-gimp |
3750 | 115 |
%{_mandir}/man1/* |
585 | 116 |
|
3907 | 117 |
%changelog |
19832 | 118 |
* Sun Sep 18 2005 - [email protected] |
119 |
- Add patch so that we install into the correct plugin directory. Add |
|
120 |
gimp-devel as a BuildRequires. |
|
121 |
||
19546
e4e15ec27027
* gtkam.spec: - Add patch 08 to remove '-W -Wall -Wno-unused' as they
dc144907
parents:
19422
diff
changeset
|
122 |
* Fri Jul 08 2005 - [email protected] |
e4e15ec27027
* gtkam.spec: - Add patch 08 to remove '-W -Wall -Wno-unused' as they
dc144907
parents:
19422
diff
changeset
|
123 |
- Add patch 08 to remove '-W -Wall -Wno-unused' as they do not work on Solaris. |
e4e15ec27027
* gtkam.spec: - Add patch 08 to remove '-W -Wall -Wno-unused' as they
dc144907
parents:
19422
diff
changeset
|
124 |
|
19422 | 125 |
* Wed Jun 15 2005 - [email protected] |
126 |
- Bump to 0.1.12 |
|
127 |
||
5400
46e96785b77d
* gtkam.spec, totem.spec: Fix 6227253: Change xml file in [gtkam|totem]-C.omf
dc144907
parents:
5370
diff
changeset
|
128 |
* Thu May 05 2005 - [email protected] |
46e96785b77d
* gtkam.spec, totem.spec: Fix 6227253: Change xml file in [gtkam|totem]-C.omf
dc144907
parents:
5370
diff
changeset
|
129 |
- 6227253: Change xml file in gtkam-C.omf from gtkam.xml to |
46e96785b77d
* gtkam.spec, totem.spec: Fix 6227253: Change xml file in [gtkam|totem]-C.omf
dc144907
parents:
5370
diff
changeset
|
130 |
sample_apps_info.xml (part of gnome-user-docs). Bit of a hack but a very easy |
46e96785b77d
* gtkam.spec, totem.spec: Fix 6227253: Change xml file in [gtkam|totem]-C.omf
dc144907
parents:
5370
diff
changeset
|
131 |
one to maintain. |
46e96785b77d
* gtkam.spec, totem.spec: Fix 6227253: Change xml file in [gtkam|totem]-C.omf
dc144907
parents:
5370
diff
changeset
|
132 |
|
5203
d9ff679c2616
* gtkam.spec: Add docs tarball (Source4) to %setup section.
dc144907
parents:
5152
diff
changeset
|
133 |
* Thu Mar 10 2005 - [email protected] |
d9ff679c2616
* gtkam.spec: Add docs tarball (Source4) to %setup section.
dc144907
parents:
5152
diff
changeset
|
134 |
- Add docs tarball (Source4) to %setup section. |
d9ff679c2616
* gtkam.spec: Add docs tarball (Source4) to %setup section.
dc144907
parents:
5152
diff
changeset
|
135 |
|
5133 | 136 |
* Fri Feb 25 2005 - [email protected] |
137 |
- Added dummy l10n online help to follow base update |
|
138 |
||
5100
2d8dab9b93e9
* gtkam.spec: Integrate docs tarball (gtkam-docs-0.1) from [email protected].
dc144907
parents:
5082
diff
changeset
|
139 |
* Wed Feb 16 2005 - [email protected] |
2d8dab9b93e9
* gtkam.spec: Integrate docs tarball (gtkam-docs-0.1) from [email protected].
dc144907
parents:
5082
diff
changeset
|
140 |
- Integrate docs tarball (gtkam-docs-0.1) from [email protected]. |
2d8dab9b93e9
* gtkam.spec: Integrate docs tarball (gtkam-docs-0.1) from [email protected].
dc144907
parents:
5082
diff
changeset
|
141 |
|
4536 | 142 |
* Fri Nov 12 2004 - [email protected] |
143 |
- added --libdir and --bindir to configure opts so they can be redirected |
|
144 |
on Solaris |
|
145 |
||
4221 | 146 |
* Mon Oct 11 2004 - [email protected] |
147 |
- Move gtkam-gimp plugin to lib/gimp/2.0. |
|
148 |
||
3951
5554afeb8f5d
Added gtkam-06-g11n-potfiles.diff. Updated gtkam.spec.
yk150259
parents:
3907
diff
changeset
|
149 |
* Wed Sep 15 2004 - [email protected] |
5554afeb8f5d
Added gtkam-06-g11n-potfiles.diff. Updated gtkam.spec.
yk150259
parents:
3907
diff
changeset
|
150 |
- Added gtkam-06-g11n-potfiles.diff |
5554afeb8f5d
Added gtkam-06-g11n-potfiles.diff. Updated gtkam.spec.
yk150259
parents:
3907
diff
changeset
|
151 |
|
3907 | 152 |
* Mon Sep 13 2004 - [email protected] |
153 |
- Added code to install javahelp documents. Fixes #5096653 |
|
154 |
||
3746 | 155 |
* Wed Aug 25 2004 - [email protected] |
3750 | 156 |
- fixed man pages and docs installation |
4221 | 157 |
|
3750 | 158 |
* Wed Aug 25 2004 - [email protected] |
3746 | 159 |
- fixed glib-gettextize call |
4221 | 160 |
|
3736
954faf76fa5c
* gtkam.spec: Add unpackaged files to %files section.
dc144907
parents:
3679
diff
changeset
|
161 |
* Wed Aug 25 2004 - [email protected] |
954faf76fa5c
* gtkam.spec: Add unpackaged files to %files section.
dc144907
parents:
3679
diff
changeset
|
162 |
- Add unpackaged files to %files section. |
954faf76fa5c
* gtkam.spec: Add unpackaged files to %files section.
dc144907
parents:
3679
diff
changeset
|
163 |
|
3515 | 164 |
* Mon Aug 09 2004 - [email protected] |
165 |
- Added patch gtkam-05-short-cut-key.diff |
|
166 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
167 |
* 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
|
168 |
- Updated l10n content to gtkam-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
169 |
|
3263 | 170 |
* Wed Jul 07 2004 - [email protected] |
171 |
- added "-j $CPUS" to make to speed up builds |
|
172 |
||
3169 | 173 |
* Fri Jun 18 2004 - [email protected] |
174 |
- Run glib-gettexttize and intltoolize for both Solaris and Linux |
|
175 |
- merge i18n patches |
|
176 |
||
3092 | 177 |
* Thu Jun 10 2004 - [email protected] |
178 |
- make patch5 solaris-only |
|
179 |
||
3001 | 180 |
* Wed Jun 02 2004 - [email protected] |
181 |
- Added needed patches for Solaris. |
|
182 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
183 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
184 |
- Updated l10n content to gtkam-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
185 |
|
2350 | 186 |
* Mon Mar 29 2004 - [email protected] |
187 |
- Updated l10n content to gtkam-l10n-po-1.0.tar.bz2 |
|
188 |
||
2244 | 189 |
* Thu Mar 18 2004 - [email protected] |
190 |
- Bump to 0.1.11 |
|
191 |
||
2143 | 192 |
* Thu Mar 04 2004 - [email protected] |
193 |
- Updated gtkam-03-l10n-and-utf8.diff to gtkam-03-g11n-i18n-ui.diff |
|
194 |
to fix 4935751, 4981813 |
|
195 |
||
1579 | 196 |
* Thu Feb 04 2004 - [email protected] |
197 |
- Add l10n tarball, edit to gtkam-04-gexif-i18n.diff |
|
198 |
||
1576 | 199 |
* Wed Feb 04 2004 - [email protected] |
1579 | 200 |
- Port Patches, gexif version |
1576 | 201 |
|
1532
c4a9396b7859
Enable deprecated for libexif-gtk and gtkam so that they build :)
mattk
parents:
1522
diff
changeset
|
202 |
* Fri Jan 16 2004 - [email protected] |
c4a9396b7859
Enable deprecated for libexif-gtk and gtkam so that they build :)
mattk
parents:
1522
diff
changeset
|
203 |
- Enable deprecated patch |
c4a9396b7859
Enable deprecated for libexif-gtk and gtkam so that they build :)
mattk
parents:
1522
diff
changeset
|
204 |
|
1069 | 205 |
* Thu Aug 14 2003 - [email protected] |
206 |
- desktop file for menu entry |
|
1532
c4a9396b7859
Enable deprecated for libexif-gtk and gtkam so that they build :)
mattk
parents:
1522
diff
changeset
|
207 |
|
585 | 208 |
* Wed Jul 16 2003 - [email protected] |
209 |
- Initial version |