9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-cd
|
|
3 |
#
|
|
4 |
# includes module(s): sound-juicer
|
|
5 |
#
|
|
6 |
# Copyright (c) 2004 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 |
#
|
|
10 |
# Owner: yippi
|
|
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}
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
|
|
23 |
%include default-depend.inc
|
|
24 |
BuildRequires: SUNWmusicbrainz-devel
|
|
25 |
BuildRequires: SUNWgnome-cd-burner-devel
|
|
26 |
BuildRequires: SUNWgnome-media-apps-devel
|
|
27 |
BuildRequires: SUNWgnome-cd-burner-devel
|
|
28 |
BuildRequires: SUNWlibcdio-devel
|
|
29 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
30 |
BuildRequires: SUNWgnome-config-devel
|
|
31 |
BuildRequires: SUNWgnome-libs-devel
|
|
32 |
BuildRequires: SUNWgnome-media-devel
|
|
33 |
BuildRequires: SUNWgnome-vfs-devel
|
|
34 |
Requires: SUNWmusicbrainz
|
|
35 |
Requires: SUNWgnome-cd-burner
|
|
36 |
Requires: SUNWgnome-media-apps
|
|
37 |
Requires: SUNWgnome-cd-burner
|
|
38 |
Requires: SUNWlibcdio
|
|
39 |
Requires: SUNWpostrun
|
|
40 |
Requires: SUNWgnome-base-libs
|
|
41 |
Requires: SUNWgnome-config
|
|
42 |
Requires: SUNWgnome-libs
|
|
43 |
Requires: SUNWgnome-media
|
|
44 |
Requires: SUNWgnome-vfs
|
|
45 |
Requires: SUNWlibC
|
|
46 |
Requires: SUNWlibms
|
|
47 |
|
|
48 |
%if %build_l10n
|
|
49 |
%package l10n
|
|
50 |
Summary: %{summary} - l10n files
|
|
51 |
SUNW_BaseDir: %{_basedir}
|
|
52 |
%include default-depend.inc
|
|
53 |
Requires: %{name}
|
|
54 |
%endif
|
|
55 |
|
|
56 |
%package root
|
|
57 |
Summary: %{summary} - / filesystem
|
|
58 |
SUNW_BaseDir: /
|
|
59 |
%include default-depend.inc
|
|
60 |
Requires: SUNWpostrun-root
|
|
61 |
Requires: SUNWgnome-config
|
|
62 |
|
|
63 |
%prep
|
|
64 |
rm -rf %name-%version
|
|
65 |
mkdir %name-%version
|
|
66 |
%soundjuicer.prep -d %name-%version
|
|
67 |
cd %{_builddir}/%name-%version
|
|
68 |
gzcat %SOURCE0 | tar xf -
|
|
69 |
cd %{_builddir}/%name-%version/sound-juicer-%{soundjuicer.version}
|
|
70 |
cd ..
|
|
71 |
|
|
72 |
%build
|
|
73 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
|
74 |
export CXXFLAGS="%cxx_optflags -I/usr/sfw/include -lCrun -lCstd"
|
|
75 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib"
|
|
76 |
export CFLAGS="%optflags -I/usr/sfw/include"
|
|
77 |
%soundjuicer.build -d %name-%version
|
|
78 |
|
|
79 |
%install
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
%soundjuicer.install -d %name-%version
|
|
82 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/solaris-cdda.schemas
|
|
83 |
# rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
84 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
86 |
|
|
87 |
cd $RPM_BUILD_ROOT%{_bindir}
|
|
88 |
ln -s sound-juicer gnome-cd
|
|
89 |
|
|
90 |
%if %build_l10n
|
|
91 |
%else
|
|
92 |
# REMOVE l10n FILES
|
|
93 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
94 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/[a-c]*/[a-z]*
|
|
95 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/[e-z]*/[a-z]*
|
|
96 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??.omf
|
|
97 |
%endif
|
|
98 |
|
|
99 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
100 |
|
|
101 |
%clean
|
|
102 |
rm -rf $RPM_BUILD_ROOT
|
|
103 |
|
|
104 |
%post
|
|
105 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
106 |
echo '/usr/bin/update-desktop-database'
|
|
107 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
108 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
109 |
echo '/usr/bin/scrollkeeper-update'
|
|
110 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
111 |
|
|
112 |
%postun
|
|
113 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
114 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
115 |
echo '/usr/bin/update-desktop-database'
|
|
116 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
117 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
118 |
echo '/usr/bin/scrollkeeper-update'
|
|
119 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
120 |
|
|
121 |
%post root
|
|
122 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
123 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
124 |
echo ' exit 1';
|
|
125 |
echo '}';
|
|
126 |
echo 'umask 0022';
|
|
127 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
|
|
128 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
129 |
echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas'
|
|
130 |
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
|
|
131 |
|
|
132 |
%preun root
|
|
133 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
134 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
135 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
136 |
echo ' exit 0';
|
|
137 |
echo '}';
|
|
138 |
echo 'umask 0022';
|
|
139 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
140 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
141 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
142 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
143 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
144 |
echo 'schemas="$SDIR/sound-juicer.schemas';
|
|
145 |
echo ' $SDIR/solaris-cdda.schemas"';
|
|
146 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
147 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
148 |
|
|
149 |
%files
|
|
150 |
%defattr (-, root, bin)
|
|
151 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
152 |
%{_bindir}/*
|
|
153 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
154 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
155 |
%{_datadir}/applications/*
|
|
156 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
157 |
%{_datadir}/gnome/help/*/C
|
|
158 |
%attr (-, root, other) %{_datadir}/icons
|
|
159 |
%{_datadir}/sound-juicer
|
|
160 |
%{_datadir}/omf/*/*-C.omf
|
|
161 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
162 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
163 |
%{_mandir}/*/*
|
|
164 |
|
|
165 |
%if %build_l10n
|
|
166 |
%files l10n
|
|
167 |
%defattr (-, root, bin)
|
|
168 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
169 |
%attr (-, root, other) %{_datadir}/locale
|
|
170 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
171 |
%{_datadir}/gnome/help/*/??
|
|
172 |
%{_datadir}/omf/*/*-??.omf
|
|
173 |
%endif
|
|
174 |
|
|
175 |
%files root
|
|
176 |
%defattr (0755, root, sys)
|
|
177 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
178 |
%{_sysconfdir}/gconf/schemas/solaris-cdda.schemas
|
|
179 |
%{_sysconfdir}/gconf/schemas/sound-juicer.schemas
|
|
180 |
|
|
181 |
%changelog
|
|
182 |
* Tue Oct 31 2006 - [email protected]
|
|
183 |
- Added /usr/share/locale in files l10n. Fixes 6488189.
|
|
184 |
* Fri Sep 08 2006 - [email protected]
|
|
185 |
- Add manpage tarball
|
|
186 |
* Sat Aug 12 2006 - [email protected]
|
|
187 |
- change datadir/icons permissions back to root:other since it's a stable
|
|
188 |
interface and wasn't supposed to be changed
|
|
189 |
* Fri Jul 28 2006 - [email protected]
|
|
190 |
- Omit locale files from packaging as not installed.
|
|
191 |
* Fri Jul 14 2006 - [email protected]
|
|
192 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
193 |
part of 6448317
|
|
194 |
* Fri Jul 14 2006 - [email protected]
|
|
195 |
- Install schemas file for CDDA URL Handler.
|
|
196 |
* Thu Jun 29 2006 - [email protected]
|
|
197 |
- update postrun scripts
|
|
198 |
* Wed Jun 21 2006 - [email protected]
|
|
199 |
- Fix packaging.
|
|
200 |
* Sun Jun 11 2006 - [email protected]
|
|
201 |
- change group from other to bin/sys
|
|
202 |
* Thu Jun 1 2006 - [email protected]
|
|
203 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
204 |
* Fri May 12 2006 - [email protected]
|
|
205 |
- Small update to dependency list after check-deps.pl run.
|
|
206 |
* Wed May 10 2006 - [email protected]
|
|
207 |
- merge -share pkg(s) into the base pkg(s)
|
|
208 |
* Fri May 5 2006 - [email protected]
|
|
209 |
- Backing out "merged" GCONF change, since it doesn't work right. For now
|
|
210 |
it seems you need to delete /etc/gconf/gconf.xml.defaults/%gconf-tree*.xml
|
|
211 |
and run /usr/bin/gconf-merge-tree /etc/gconf/gconf.xml.defaults to get
|
|
212 |
the GCONF set up for this to work. I talked with Laca and he plans to
|
|
213 |
fix this in the build process so this is not necessary.
|
|
214 |
* Sun Apr 20 2006 - [email protected]
|
|
215 |
- Correct %install line that removes omf files for non-l10n build.
|
|
216 |
* Sun Apr 9 2006 - [email protected]
|
|
217 |
- Add help files to share and l10n packages.
|
|
218 |
* Tue Mar 28 2006 - [email protected]
|
|
219 |
- Now building Sound Juicer as CD player on Solaris.
|
|
220 |
* Thu Feb 16 2006 - [email protected]
|
|
221 |
- Update Build/Requires after running check-deps.pl script.
|
|
222 |
* Tue Nov 29 2005 - [email protected]
|
|
223 |
- remove javahelp stuff
|
|
224 |
* Mon Jul 25 2005 - [email protected]
|
|
225 |
- Add dependency SUNWgnome-media-apps, SUNWmusicbrainz
|
|
226 |
and SUNWgnome-cd-burner
|
|
227 |
* Fri Jul 22 2005 - [email protected]
|
|
228 |
- Changed the name to SUNWgnome-cd from SUNWsound-juicer
|
|
229 |
* Thu Jul 07 2005 - [email protected]
|
|
230 |
- Initial spec-file created
|