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