author | dcarbery |
Fri, 06 Jun 2008 16:46:17 +0000 | |
changeset 12620 | 31cf55af5c8c |
parent 11958 | 9a5520e3cc7a |
child 12728 | 118427d41d8c |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-camera |
|
3 |
# |
|
4 |
# includes module(s): libgphoto2, gphoto2, gtkam |
|
5 |
# |
|
10572 | 6 |
# Copyright 2007 Sun Microsystems, Inc. |
9397 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: mattman |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
%use libgphoto2 = libgphoto2.spec |
|
14 |
%use gphoto2 = gphoto2.spec |
|
15 |
%use gtkam = gtkam.spec |
|
16 |
||
17 |
Name: SUNWgnome-camera |
|
18 |
Summary: GNOME digital camera tool |
|
19 |
Version: %{default_pkg_version} |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
11958
9a5520e3cc7a
* SUNWgnome-pdf-viewer.spec : Add Copyright to preamble
mattman
parents:
11780
diff
changeset
|
21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
25 |
Requires: SUNWgnome-libs |
|
26 |
Requires: SUNWgnome-base-libs |
|
27 |
Requires: SUNWlibusb |
|
28 |
Requires: SUNWgnome-component |
|
29 |
Requires: SUNWgnome-img-editor |
|
30 |
Requires: SUNWjpg |
|
31 |
Requires: SUNWlibexif |
|
32 |
Requires: SUNWlibms |
|
33 |
Requires: SUNWlibpopt |
|
34 |
Requires: SUNWmlib |
|
35 |
Requires: SUNWpostrun |
|
36 |
Requires: SUNWdbus |
|
10633 | 37 |
Requires: SUNWdsdu |
11324 | 38 |
Requires: SUNWltdl |
9397 | 39 |
BuildRequires: SUNWgnome-component-devel |
40 |
BuildRequires: SUNWlibexif-devel |
|
41 |
BuildRequires: SUNWlibpopt-devel |
|
42 |
# gtkam builds a gimp plug-in, so SUNWgnome-img-editor is a dependancy |
|
43 |
BuildRequires: SUNWgnome-img-editor-devel |
|
44 |
BuildRequires: SUNWlibusb |
|
45 |
BuildRequires: SUNWdbus-devel |
|
10633 | 46 |
BuildRequires: SUNWdsdu |
11266 | 47 |
BuildRequires: SUNWlibtool |
11324 | 48 |
BuildRequires: SUNWltdl |
9397 | 49 |
|
50 |
%if %build_l10n |
|
51 |
%package l10n |
|
52 |
Summary: %{summary} - l10n files |
|
53 |
SUNW_BaseDir: %{_basedir} |
|
54 |
%include default-depend.inc |
|
55 |
Requires: %{name} |
|
56 |
%endif |
|
57 |
||
58 |
%package devel |
|
59 |
Summary: %{summary} - development files |
|
60 |
SUNW_BaseDir: %{_basedir} |
|
61 |
%include default-depend.inc |
|
62 |
||
63 |
%prep |
|
64 |
rm -rf %name-%version |
|
65 |
mkdir %name-%version |
|
66 |
%libgphoto2.prep -d %name-%version |
|
67 |
%gphoto2.prep -d %name-%version |
|
68 |
%gtkam.prep -d %name-%version |
|
69 |
||
70 |
%build |
|
10612 | 71 |
# note: This ACLOCAL_FLAGS setting seems unnecessary, but it's |
72 |
# needed so that gettext.m4 is used from /usr/share/aclocal and |
|
73 |
# not from ./m4m |
|
10613 | 74 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
10572 | 75 |
export CFLAGS="%optflags" |
9397 | 76 |
export RPM_OPT_FLAGS="$CFLAGS" |
12620 | 77 |
export LDFLAGS="%_ldflags -R/usr/sfw/lib -lgailutil" |
9397 | 78 |
|
79 |
%libgphoto2.build -d %name-%version |
|
10248 | 80 |
|
11262 | 81 |
export PKG_CONFIG_PATH=%{_builddir}/%name-%version/libgphoto2-%{libgphoto2.version}:%{_builddir}/%name-%version/libgphoto2-%{libgphoto2.version}/libgphoto2_port:%{_pkg_config_path} |
10304 | 82 |
|
9397 | 83 |
%gphoto2.build -d %name-%version |
10248 | 84 |
|
9397 | 85 |
%gtkam.build -d %name-%version |
86 |
||
87 |
%install |
|
88 |
rm -rf $RPM_BUILD_ROOT |
|
89 |
%libgphoto2.install -d %name-%version |
|
90 |
%gphoto2.install -d %name-%version |
|
91 |
%gtkam.install -d %name-%version |
|
92 |
||
93 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/var |
|
94 |
# Remove source code files (AUTHORS, README, CHANGELOG etc) |
|
95 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/doc |
|
96 |
# Remove Linux specific hotplug stuff |
|
97 |
rm -rf $RPM_BUILD_ROOT%{_sysconfdir} |
|
98 |
||
99 |
%if %build_l10n |
|
100 |
%else |
|
101 |
# REMOVE l10n FILES |
|
102 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
103 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
104 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
105 |
%endif |
|
106 |
||
107 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
108 |
||
109 |
%clean |
|
110 |
rm -rf $RPM_BUILD_ROOT |
|
111 |
||
112 |
%post |
|
113 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
114 |
echo '/usr/bin/update-desktop-database' |
|
115 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
116 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
117 |
echo '/usr/bin/scrollkeeper-update' |
|
118 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
119 |
||
120 |
%postun |
|
121 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
122 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
123 |
echo '/usr/bin/update-desktop-database' |
|
124 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
125 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; |
|
126 |
echo '/usr/bin/scrollkeeper-update' |
|
127 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
128 |
||
129 |
%files |
|
130 |
%defattr (-, root, bin) |
|
131 |
%dir %attr (0755, root, bin) %{_bindir} |
|
132 |
%{_bindir}/gphoto2 |
|
133 |
%{_bindir}/gtkam |
|
134 |
%{_bindir}/gexif |
|
135 |
%dir %attr (0755, root, bin) %{_libdir} |
|
136 |
%{_libdir}/lib*.so* |
|
137 |
%{_libdir}/libgphoto2 |
|
138 |
%{_libdir}/libgphoto2_port |
|
139 |
%{_libdir}/gimp |
|
140 |
%dir %attr (0755, root, sys) %{_datadir} |
|
141 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
142 |
%{_datadir}/applications/* |
|
143 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
144 |
%{_datadir}/doc/* |
|
145 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
146 |
%{_datadir}/gnome/help/gtkam/C |
|
147 |
%{_datadir}/gtkam |
|
148 |
%{_datadir}/images |
|
149 |
%{_datadir}/libgphoto2 |
|
150 |
%{_datadir}/omf/*/*-C.omf |
|
151 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
152 |
%{_datadir}/pixmaps/* |
|
153 |
%dir %attr(0755, root, bin) %{_mandir} |
|
154 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
155 |
%{_mandir}/man1/* |
|
156 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
157 |
%{_mandir}/man3/* |
|
158 |
||
159 |
%if %build_l10n |
|
160 |
%files l10n |
|
161 |
%defattr (-, root, bin) |
|
162 |
%dir %attr (0755, root, sys) %{_datadir} |
|
163 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
164 |
%attr (-, root, other) %{_datadir}/locale |
|
165 |
%{_datadir}/gnome/help/*/[a-z]* |
|
166 |
%{_datadir}/omf/*/*-[a-z]*.omf |
|
167 |
%endif |
|
168 |
||
169 |
%files devel |
|
170 |
%defattr (-, root, bin) |
|
171 |
%dir %attr (0755, root, bin) %{_bindir} |
|
172 |
%{_bindir}/gphoto2-port-config |
|
173 |
%{_bindir}/gphoto2-config |
|
174 |
%dir %attr (0755, root, bin) %{_includedir} |
|
175 |
%{_includedir}/* |
|
176 |
%dir %attr (0755, root, bin) %{_libdir} |
|
177 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
178 |
%{_libdir}/pkgconfig/* |
|
179 |
||
180 |
%changelog |
|
12620 | 181 |
* Fri Jun 06 2008 - [email protected] |
182 |
- Add "-lgailutil" to LDFLAGS so that libgailutil is linked in when |
|
183 |
libgnomecanvas is linked. libgnomecanvas.so includes some gail functions. |
|
11780
b9e43abdfc7d
* SUNWgnome-camera.spec : Remove installation of udev files
mattman
parents:
11327
diff
changeset
|
184 |
* Mon Mar 03 2007 - [email protected] |
b9e43abdfc7d
* SUNWgnome-camera.spec : Remove installation of udev files
mattman
parents:
11327
diff
changeset
|
185 |
- Remove udev files as udev not supported on solaris |
11324 | 186 |
* Mon Dec 17 2007 - [email protected] |
187 |
- Add Build/Requires SUNWltdl |
|
11327 | 188 |
- Remove Requires: SUNWlibtool |
11266 | 189 |
* Fri Dec 1 2007 - [email protected] |
190 |
- Add Build/Requires SUNWlibtool. |
|
191 |
* Wed Oct 10 2007 - [email protected] |
|
10633 | 192 |
- Update Build/Requires after running check-deps.pl script. |
10612 | 193 |
* Thu Oct 4 2007 - [email protected] |
194 |
- define ACLOCAL_FLAGS |
|
10304 | 195 |
* Mon Aug 13 2007 - [email protected] |
196 |
- Clean up. |
|
9397 | 197 |
* Tue Feb 13 2007 - [email protected] |
198 |
- Add lib/udev to packaging - new directory in 2.3.1. |
|
199 |
* Fri Feb 09 2007 - [email protected] |
|
200 |
- Add SUNWdbus dependency since libgphoto2 requires D-Bus. |
|
201 |
* Tue Dec 19 2006 - [email protected] |
|
202 |
- Rework spec file after updating gtkam, libgphoto2, gphoto2 spec files. |
|
203 |
* Sat Aug 12 2006 - [email protected] |
|
204 |
- delete some unnecessary env variables |
|
205 |
* Tue Jul 25 2006 - [email protected] |
|
206 |
- Fix 'rm .omf' line to not delete the C locale file. |
|
207 |
* Fri Jul 14 2006 - [email protected] |
|
208 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
209 |
part of 6448317 |
|
210 |
* Thu Jun 29 2006 - [email protected] |
|
211 |
- update postrun scripts |
|
212 |
* Sun Jun 11 2006 - [email protected] |
|
213 |
- change group from other to bin/sys |
|
214 |
* Mon May 15 2006 - [email protected] |
|
215 |
- Correct l10n package perms. |
|
216 |
* Tue May 09 2006 - [email protected] |
|
217 |
- merge -share pkg(s) into the base pkg(s) |
|
218 |
* Tue Apr 4 2006 - [email protected] |
|
219 |
- Remove the hotplug stuff which is Linux specific. This |
|
220 |
cuts out the -root package currently. |
|
221 |
* Tue Apr 4 2006 - [email protected] |
|
222 |
- Move gphoto2-config into the -devel package. |
|
223 |
* Wed Mar 15 2006 - [email protected] |
|
224 |
- Add to Build/Requires after running check-deps.pl. |
|
225 |
* Mon Jan 09 2006 - [email protected] |
|
226 |
- Add SUNWlibusb dependency to get libusb-config. |
|
227 |
* Sat Dec 3 2005 - [email protected] |
|
228 |
- add %post script that runs update-desktop-database |
|
229 |
* Tue Nov 29 2005 - [email protected] |
|
230 |
- remove javahelp stuff |
|
231 |
* Fri Sep 30 2005 - [email protected] |
|
232 |
- Add root package for _sysconfdir files. Remove javahelp references. |
|
233 |
Delete .la files and others before packaging. |
|
234 |
* Mon Dec 13 2004 - [email protected] |
|
235 |
- Move to /usr/sfw to implement ARC decision. |
|
236 |
* Sun Nov 14 2004 - [email protected] |
|
237 |
- add /usr/demo/jds/lib to RPATH |
|
238 |
* Fri Nov 12 2004 - [email protected] |
|
239 |
- move to /usr/demo/jds |
|
240 |
* Mon Oct 11 2004 - [email protected] |
|
241 |
- Corrected packaging of gimp plugin. |
|
242 |
* Wed Oct 06 2004 - [email protected] |
|
243 |
- added l10n help files section |
|
244 |
* Sat Oct 02 2004 - [email protected] |
|
245 |
- added %pkgbuild_postprocess |
|
246 |
* Mon Sep 13 2004 [email protected] |
|
247 |
- Added code to install javahelp documents. Fixes #5096653. |
|
248 |
* Thu Sep 09 2004 [email protected] |
|
249 |
- Moved %{_datadir}/pixmaps to '%files share' from '%files l10n'. |
|
250 |
Put %{_datadir}/omf/*/*-C.omf under '%files share'. |
|
251 |
* Sun Sep 05 2004 - [email protected] |
|
252 |
- removed root subpkg as it only contained 2 linux specific files (#5097102) |
|
253 |
* Tue Aug 24 2004 - [email protected] |
|
254 |
- Remove %{_datadir}/doc from install since these docs are not useful |
|
255 |
to install |
|
256 |
* Mon Aug 23 2004 - [email protected] |
|
257 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
258 |
* Sun Jun 27 2004 [email protected] |
|
259 |
- Changed install location to /usr/... |
|
260 |
* Mon Jun 07 2004 - [email protected] |
|
261 |
- Moved libexif to SUNWlibexif and libexif-gtk to SUNWgnome-libs since |
|
262 |
nautilus also uses these libraries if available. |
|
263 |
* Wed Jun 02 2004 - [email protected] |
|
264 |
- Added gtkam to package. |
|
265 |
* Wed Jun 02 2004 - [email protected] |
|
266 |
- Added %{_datadir}/locale to install l10n messages |
|
267 |
* Mon May 03 2004 - [email protected] |
|
268 |
- renamed to SUNWgnome-camera |
|
269 |
* Fri Mar 31 2004 - [email protected] |
|
270 |
- Created, |