author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 15680 | 1b08e9ef4c4f |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-cd |
|
3 |
# |
|
4 |
# includes module(s): sound-juicer |
|
5 |
# |
|
15556 | 6 |
# Copyright 2009 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 |
# |
|
16434 | 10 |
%define owner yippi |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
13 |
%use soundjuicer = sound-juicer.spec |
|
14 |
||
15 |
Name: SUNWgnome-cd |
|
16 |
Summary: CD ripping tool |
|
17 |
Version: %{default_pkg_version} |
|
18 |
Source: %{name}-manpages-0.1.tar.gz |
|
19 |
Source1: solaris-cdda.schemas |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
11937 | 21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
15650 | 25 |
BuildRequires: SUNWlibglade-devel |
15298 | 26 |
BuildRequires: SUNWgnome-cd-burner-devel |
9397 | 27 |
BuildRequires: SUNWgnome-config-devel |
28 |
BuildRequires: SUNWgnome-libs-devel |
|
15167 | 29 |
BuildRequires: SUNWgnome-media-apps-devel |
9397 | 30 |
BuildRequires: SUNWgnome-media-devel |
31 |
BuildRequires: SUNWgnome-vfs-devel |
|
15167 | 32 |
BuildRequires: SUNWmusicbrainz-devel |
15650 | 33 |
Requires: SUNWlibglade |
34 |
Requires: SUNWlibcanberra |
|
15298 | 35 |
Requires: SUNWgnome-cd-burner |
9397 | 36 |
Requires: SUNWgnome-config |
37 |
Requires: SUNWgnome-libs |
|
15167 | 38 |
Requires: SUNWgnome-media-apps |
9397 | 39 |
Requires: SUNWgnome-media |
40 |
Requires: SUNWgnome-vfs |
|
41 |
Requires: SUNWlibC |
|
42 |
Requires: SUNWlibms |
|
15167 | 43 |
Requires: SUNWmusicbrainz |
15556 | 44 |
Requires: SUNWdesktop-cache |
45 |
Requires: %{name}-root |
|
9397 | 46 |
|
47 |
%if %build_l10n |
|
48 |
%package l10n |
|
49 |
Summary: %{summary} - l10n files |
|
50 |
SUNW_BaseDir: %{_basedir} |
|
51 |
%include default-depend.inc |
|
52 |
Requires: %{name} |
|
53 |
%endif |
|
54 |
||
55 |
%package root |
|
56 |
Summary: %{summary} - / filesystem |
|
57 |
SUNW_BaseDir: / |
|
58 |
%include default-depend.inc |
|
59 |
||
60 |
%prep |
|
61 |
rm -rf %name-%version |
|
62 |
mkdir %name-%version |
|
63 |
%soundjuicer.prep -d %name-%version |
|
64 |
cd %{_builddir}/%name-%version |
|
65 |
gzcat %SOURCE0 | tar xf - |
|
66 |
cd %{_builddir}/%name-%version/sound-juicer-%{soundjuicer.version} |
|
67 |
cd .. |
|
68 |
||
69 |
%build |
|
70 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
71 |
export CXXFLAGS="%cxx_optflags -I/usr/sfw/include -lCrun -lCstd" |
|
72 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib" |
|
73 |
export CFLAGS="%optflags -I/usr/sfw/include" |
|
74 |
%soundjuicer.build -d %name-%version |
|
75 |
||
76 |
%install |
|
77 |
rm -rf $RPM_BUILD_ROOT |
|
78 |
%soundjuicer.install -d %name-%version |
|
79 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/solaris-cdda.schemas |
|
80 |
# rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
81 |
cd %{_builddir}/%name-%version/sun-manpages |
|
82 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
83 |
||
15371 | 84 |
# RBAC related |
85 |
mkdir $RPM_BUILD_ROOT/etc/security |
|
86 |
# exec_attr(4) |
|
87 |
cat >> $RPM_BUILD_ROOT/etc/security/exec_attr <<EOF |
|
15680 | 88 |
Desktop Removable Media User:solaris:cmd:::/usr/bin/sound-juicer:privs=sys_devices |
15371 | 89 |
EOF |
90 |
||
9397 | 91 |
cd $RPM_BUILD_ROOT%{_bindir} |
92 |
ln -s sound-juicer gnome-cd |
|
93 |
||
94 |
%if %build_l10n |
|
95 |
%else |
|
96 |
# REMOVE l10n FILES |
|
97 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
98 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/[a-c]*/[a-z]* |
|
99 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/[e-z]*/[a-z]* |
|
100 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??.omf |
|
11396
b275d1afb303
* SUNWgnome-cd.spec: %{_datadir}/omf/*/*-??_??.omf should be removed
pale
parents:
11370
diff
changeset
|
101 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf |
9397 | 102 |
%endif |
103 |
||
104 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
105 |
||
106 |
%clean |
|
107 |
rm -rf $RPM_BUILD_ROOT |
|
108 |
||
109 |
%post |
|
15556 | 110 |
%restart_fmri desktop-mime-cache gconf-cache |
9397 | 111 |
|
112 |
%postun |
|
15556 | 113 |
%restart_fmri desktop-mime-cache |
9397 | 114 |
|
115 |
%files |
|
116 |
%defattr (-, root, bin) |
|
117 |
%dir %attr (0755, root, bin) %{_bindir} |
|
118 |
%dir %attr (0755, root, sys) %{_datadir} |
|
119 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
15371 | 120 |
%attr (0755, root, bin)%{_bindir}/* |
9397 | 121 |
%{_datadir}/applications/* |
13782 | 122 |
%doc -d sound-juicer-%{soundjuicer.version} AUTHORS README |
123 |
%doc(bzip2) -d sound-juicer-%{soundjuicer.version} COPYING NEWS |
|
124 |
%doc(bzip2) -d sound-juicer-%{soundjuicer.version} ChangeLog po/ChangeLog |
|
125 |
%doc(bzip2) -d sound-juicer-%{soundjuicer.version} help/sound-juicer/ChangeLog |
|
126 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 127 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
128 |
%{_datadir}/gnome/help/*/C |
|
129 |
%attr (-, root, other) %{_datadir}/icons |
|
130 |
%{_datadir}/sound-juicer |
|
131 |
%{_datadir}/omf/*/*-C.omf |
|
132 |
%dir %attr(0755, root, bin) %{_mandir} |
|
133 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
134 |
%{_mandir}/*/* |
|
135 |
||
136 |
%if %build_l10n |
|
137 |
%files l10n |
|
138 |
%defattr (-, root, bin) |
|
139 |
%dir %attr (0755, root, sys) %{_datadir} |
|
140 |
%attr (-, root, other) %{_datadir}/locale |
|
141 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
142 |
%{_datadir}/gnome/help/*/?? |
|
9746 | 143 |
%{_datadir}/gnome/help/*/??_?? |
9397 | 144 |
%{_datadir}/omf/*/*-??.omf |
9746 | 145 |
%{_datadir}/omf/*/*-??_??.omf |
9397 | 146 |
%endif |
147 |
||
148 |
%files root |
|
9780 | 149 |
%defattr (-, root, sys) |
9397 | 150 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
151 |
%{_sysconfdir}/gconf/schemas/solaris-cdda.schemas |
|
152 |
%{_sysconfdir}/gconf/schemas/sound-juicer.schemas |
|
15371 | 153 |
%config %class (rbac) %attr (0644, root, sys) /etc/security/exec_attr |
154 |
||
9397 | 155 |
%changelog |
15556 | 156 |
* Fri Apr 3 2009 - [email protected] |
157 |
- use desktop-cache instead of postrun |
|
15298 | 158 |
* Tue Mar 03 2009 - [email protected] |
159 |
- Renamed SUNWbrasero to SUNWgnome-cd-burner. |
|
15167 | 160 |
* Thu Feb 19 2009 - [email protected] |
161 |
- Add SUNWbrasero as a dependency. |
|
13782 | 162 |
* Fri Sep 26 2008 - [email protected] |
163 |
- Add new copyright files. |
|
11937 | 164 |
* Thu Mar 27 2008 - [email protected] |
165 |
- Add SUNW_Copyright. |
|
11370 | 166 |
* Thu Jan 3 2008 - [email protected] |
167 |
- use gconf-install.script instead of an inline script |
|
10118 | 168 |
* Tue Jun 26 2007 - [email protected] |
169 |
- remove libcdio as dependency. |
|
9780 | 170 |
* Tue Apr 24 2007 - [email protected] |
171 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9746 | 172 |
* Mon Apr 16 2007 - [email protected] |
173 |
- Add en_GB files to l10n package for new tarball. |
|
9397 | 174 |
* Tue Oct 31 2006 - [email protected] |
175 |
- Added /usr/share/locale in files l10n. Fixes 6488189. |
|
176 |
* Fri Sep 08 2006 - [email protected] |
|
177 |
- Add manpage tarball |
|
178 |
* Sat Aug 12 2006 - [email protected] |
|
179 |
- change datadir/icons permissions back to root:other since it's a stable |
|
180 |
interface and wasn't supposed to be changed |
|
181 |
* Fri Jul 28 2006 - [email protected] |
|
182 |
- Omit locale files from packaging as not installed. |
|
183 |
* Fri Jul 14 2006 - [email protected] |
|
184 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
185 |
part of 6448317 |
|
186 |
* Fri Jul 14 2006 - [email protected] |
|
187 |
- Install schemas file for CDDA URL Handler. |
|
188 |
* Thu Jun 29 2006 - [email protected] |
|
189 |
- update postrun scripts |
|
190 |
* Wed Jun 21 2006 - [email protected] |
|
191 |
- Fix packaging. |
|
192 |
* Sun Jun 11 2006 - [email protected] |
|
193 |
- change group from other to bin/sys |
|
194 |
* Thu Jun 1 2006 - [email protected] |
|
195 |
- use post/preun scripts to install schemas into the merged gconf files |
|
196 |
* Fri May 12 2006 - [email protected] |
|
197 |
- Small update to dependency list after check-deps.pl run. |
|
198 |
* Wed May 10 2006 - [email protected] |
|
199 |
- merge -share pkg(s) into the base pkg(s) |
|
200 |
* Fri May 5 2006 - [email protected] |
|
201 |
- Backing out "merged" GCONF change, since it doesn't work right. For now |
|
202 |
it seems you need to delete /etc/gconf/gconf.xml.defaults/%gconf-tree*.xml |
|
203 |
and run /usr/bin/gconf-merge-tree /etc/gconf/gconf.xml.defaults to get |
|
204 |
the GCONF set up for this to work. I talked with Laca and he plans to |
|
205 |
fix this in the build process so this is not necessary. |
|
206 |
* Sun Apr 20 2006 - [email protected] |
|
207 |
- Correct %install line that removes omf files for non-l10n build. |
|
208 |
* Sun Apr 9 2006 - [email protected] |
|
209 |
- Add help files to share and l10n packages. |
|
210 |
* Tue Mar 28 2006 - [email protected] |
|
211 |
- Now building Sound Juicer as CD player on Solaris. |
|
212 |
* Thu Feb 16 2006 - [email protected] |
|
213 |
- Update Build/Requires after running check-deps.pl script. |
|
214 |
* Tue Nov 29 2005 - [email protected] |
|
215 |
- remove javahelp stuff |
|
216 |
* Mon Jul 25 2005 - [email protected] |
|
217 |
- Add dependency SUNWgnome-media-apps, SUNWmusicbrainz |
|
218 |
and SUNWgnome-cd-burner |
|
219 |
* Fri Jul 22 2005 - [email protected] |
|
220 |
- Changed the name to SUNWgnome-cd from SUNWsound-juicer |
|
221 |
* Thu Jul 07 2005 - [email protected] |
|
222 |
- Initial spec-file created |
|
15650 | 223 |