13435
|
1 |
#
|
|
2 |
# spec file for package SUNWcheese
|
|
3 |
#
|
|
4 |
# includes module(s): cheese
|
|
5 |
#
|
15556
|
6 |
# Copyright 2009 Sun Microsystems, Inc.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
15144
|
10 |
# Owner: elaine
|
|
11 |
#
|
|
12 |
|
13435
|
13 |
%include Solaris.inc
|
|
14 |
%define source_name cheese
|
|
15 |
|
|
16 |
Name: SUNWcheese
|
|
17 |
Summary: Cheese - GNOME application for taking photos and videos from a webcam
|
14683
|
18 |
#### DO NOT BUMP TO 2.24.x AS IT DEPENDS ON HAL v4l backend
|
|
19 |
#### NOT YET READY FOR SOLARIS
|
13435
|
20 |
Version: 2.23.90
|
|
21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/cheese/2.23/cheese-%{version}.tar.gz
|
|
22 |
|
|
23 |
# owner:elaine date:2008-09-01 type:bug bugster:6657549
|
|
24 |
Patch1: cheese-01-lack-hal-backend.diff
|
|
25 |
|
|
26 |
# owner:elaine date:2008-09-01 type:bug bugster:6743364
|
|
27 |
Patch2: cheese-02-lack-uvc-framerate.diff
|
|
28 |
|
|
29 |
# owner:elaine date:2008-09-01 type:bug bugzilla:549804
|
|
30 |
Patch3: cheese-03-thumbnail-create.diff
|
|
31 |
|
|
32 |
URL: http://live.gnome.org/Cheese
|
|
33 |
SUNW_BaseDir: %{_basedir}
|
|
34 |
SUNW_Copyright: %{name}.copyright
|
|
35 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
36 |
%include default-depend.inc
|
|
37 |
Source1: %{name}-manpages-0.1.tar.gz
|
|
38 |
|
15650
|
39 |
Requires: SUNWlibgnomecanvas
|
15545
|
40 |
Requires: SUNWgnome-media
|
|
41 |
Requires: SUNWgnome-vfs
|
|
42 |
Requires: SUNWcheese-root
|
|
43 |
Requires: SUNWdbus
|
|
44 |
Requires: SUNWevolution-data-server
|
|
45 |
Requires: SUNWgnome-config
|
|
46 |
Requires: SUNWhal
|
|
47 |
Requires: SUNWlibrsvg
|
|
48 |
Requires: SUNWxwrtl
|
15556
|
49 |
Requires: SUNWdesktop-cache
|
15650
|
50 |
BuildRequires: SUNWlibgnomecanvas-devel
|
15545
|
51 |
BuildRequires: SUNWdbus-devel
|
|
52 |
BuildRequires: SUNWevolution-data-server-devel
|
13435
|
53 |
BuildRequires: SUNWgnome-media-devel
|
|
54 |
BuildRequires: SUNWgnome-vfs-devel
|
15545
|
55 |
BuildRequires: SUNWhal
|
13707
|
56 |
BuildRequires: SUNWlibrsvg-devel
|
13435
|
57 |
|
|
58 |
%package root
|
|
59 |
Summary: %{summary} - / filesystem
|
|
60 |
SUNW_BaseDir: /
|
|
61 |
%include default-depend.inc
|
|
62 |
Requires: SUNWgnome-config
|
|
63 |
|
|
64 |
%if %build_l10n
|
|
65 |
%package l10n
|
|
66 |
Summary: %{summary} - l10n files
|
|
67 |
SUNW_BaseDir: %{_basedir}
|
|
68 |
%include default-depend.inc
|
|
69 |
Requires: %{name}
|
|
70 |
%endif
|
|
71 |
|
|
72 |
%prep
|
|
73 |
%setup -q -c -n %name-%version
|
|
74 |
cd %{source_name}-%{version}
|
|
75 |
%patch1 -p1
|
|
76 |
%patch2 -p1
|
|
77 |
%patch3 -p1
|
|
78 |
cd %{_builddir}/%name-%version
|
|
79 |
gzcat %SOURCE1 | tar xf -
|
|
80 |
|
|
81 |
%build
|
|
82 |
cd %{source_name}-%{version}
|
|
83 |
|
|
84 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
85 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
86 |
CPUS=1
|
|
87 |
fi
|
|
88 |
|
|
89 |
autoconf
|
|
90 |
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
|
|
91 |
--libdir=%{_libdir} \
|
|
92 |
--libexecdir=%{_libexecdir} \
|
|
93 |
--sysconfdir=%{_sysconfdir}
|
|
94 |
|
|
95 |
gmake -j$CPUS
|
|
96 |
|
|
97 |
%install
|
|
98 |
rm -rf $RPM_BUILD_ROOT
|
|
99 |
cd %{source_name}-%{version}
|
|
100 |
gmake install DESTDIR=$RPM_BUILD_ROOT
|
|
101 |
|
|
102 |
%if %build_l10n
|
|
103 |
%else
|
|
104 |
# REMOVE l10n FILES
|
|
105 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
106 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/cheese/[a-z]*
|
|
107 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/cheese/cheese-[a-z]*.omf
|
|
108 |
%endif
|
|
109 |
|
|
110 |
#install man page
|
|
111 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
112 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
113 |
|
|
114 |
%post
|
15556
|
115 |
%restart_fmri gconf-cache desktop-mime-cache icon-cache mime-types-cache
|
13435
|
116 |
|
|
117 |
%postun
|
15556
|
118 |
%restart_fmri desktop-mime-cache mime-types-cache
|
13435
|
119 |
|
|
120 |
%clean
|
|
121 |
rm -rf $RPM_BUILD_ROOT
|
|
122 |
|
|
123 |
%files
|
|
124 |
%defattr (-, root, bin)
|
|
125 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
126 |
%{_bindir}/cheese
|
|
127 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
128 |
%dir %attr (0755, root, other) %{_libdir}/cheese
|
|
129 |
%{_libdir}/cheese/*
|
|
130 |
%dir %attr (0755, root, bin) %{_mandir}/man1
|
|
131 |
%{_mandir}/man1/*
|
|
132 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
133 |
%dir %attr (0755, root, other) %{_datadir}/cheese
|
|
134 |
%{_datadir}/cheese/*
|
|
135 |
%dir %attr (0755, root, other) %{_datadir}/icons
|
|
136 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/
|
|
137 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/
|
|
138 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/
|
|
139 |
%{_datadir}/icons/hicolor/scalable/apps/*
|
|
140 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
|
|
141 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/
|
|
142 |
%{_datadir}/icons/hicolor/16x16/apps/*
|
|
143 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/
|
|
144 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/
|
|
145 |
%{_datadir}/icons/hicolor/22x22/apps/*
|
|
146 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/
|
|
147 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/
|
|
148 |
%{_datadir}/icons/hicolor/24x24/apps/*
|
|
149 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/
|
|
150 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps/
|
|
151 |
%{_datadir}/icons/hicolor/32x32/apps/*
|
|
152 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/
|
|
153 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/
|
|
154 |
%{_datadir}/icons/hicolor/48x48/apps/*
|
|
155 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
156 |
%{_datadir}/applications/*.desktop
|
13682
|
157 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
13435
|
158 |
%{_datadir}/gnome/help/cheese/C
|
|
159 |
%{_datadir}/omf/cheese/cheese-C.omf
|
|
160 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1
|
|
161 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
|
|
162 |
%{_datadir}/dbus-1/services/org.gnome.Cheese.service
|
13605
|
163 |
%doc -d cheese-%{version} AUTHORS
|
|
164 |
%doc(bzip2) -d cheese-%{version} ChangeLog NEWS COPYING
|
|
165 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
13435
|
166 |
|
|
167 |
%files root
|
|
168 |
%defattr (-, root, sys)
|
|
169 |
%dir %attr(0755, root, sys) %{_sysconfdir}
|
|
170 |
%{_sysconfdir}/gconf/schemas/cheese.schemas
|
|
171 |
|
|
172 |
%if %build_l10n
|
|
173 |
%files l10n
|
|
174 |
%defattr (-, root, bin)
|
|
175 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
176 |
%attr (-, root, other) %{_datadir}/locale
|
13682
|
177 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
13435
|
178 |
%{_datadir}/gnome/help/cheese/[a-z]*
|
|
179 |
%{_datadir}/omf/cheese/cheese-[a-z]*.omf
|
|
180 |
%endif
|
|
181 |
|
|
182 |
%changelog
|
15556
|
183 |
* Fri Apr 3 2009 - [email protected]
|
|
184 |
- use desktop-cache instead of postrun
|
15051
|
185 |
* Tue Feb 10 2009 - [email protected]
|
|
186 |
- Add dependency on SUNWlibrsvg, CR #6755918
|
13707
|
187 |
* Sun Sep 21 2008 - [email protected]
|
|
188 |
- Fix typo from previous.
|
13700
|
189 |
* Sat Sep 20 2008 - [email protected]
|
|
190 |
- Added BuildRequires SUNWlibsrvg-devel.
|
13682
|
191 |
* Fri Sep 19 2008 - [email protected]
|
|
192 |
- Assign attribute to shared folders.
|
13605
|
193 |
* Tue Sep 16 2008 - [email protected]
|
|
194 |
- Add %doc to %files for new copyright.
|
13435
|
195 |
* Mon Sep 08 2008 - [email protected]
|
|
196 |
- Create from SFEcheese.spec. Upgrade to 2.23.90.
|
|
197 |
- Add patch cheese-01-lack-hal-backend.diff.
|
|
198 |
- Add patch cheese-02-lack-uvc-framerate.diff
|
|
199 |
- Add patch cheese-03-thumbnail-create.diff
|
15650
|
200 |
|