9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-cd-burner
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-cd-burner
|
|
5 |
#
|
11370
|
6 |
# Copyright 2008 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: stephen
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%define makeinstall make install DESTDIR=$RPM_BUILD_ROOT
|
|
15 |
%use cd_burner = nautilus-cd-burner.spec
|
|
16 |
|
|
17 |
Name: SUNWgnome-cd-burner
|
|
18 |
Summary: GNOME CD burner
|
|
19 |
Version: %{default_pkg_version}
|
|
20 |
Source: %{name}-manpages-0.1.tar.gz
|
|
21 |
SUNW_BaseDir: %{_basedir}
|
12029
|
22 |
SUNW_Copyright: %{name}.copyright
|
9397
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
|
|
25 |
%include default-depend.inc
|
|
26 |
Requires: SUNWgnome-libs
|
|
27 |
Requires: SUNWgnome-base-libs
|
|
28 |
Requires: SUNWgnome-file-mgr
|
|
29 |
Requires: %name-root
|
|
30 |
Requires: SUNWgnome-config
|
|
31 |
Requires: SUNWgnome-vfs
|
|
32 |
Requires: SUNWlibC
|
|
33 |
Requires: SUNWlibms
|
|
34 |
Requires: SUNWlibmsr
|
|
35 |
Requires: SUNWmlib
|
|
36 |
Requires: SUNWhal
|
|
37 |
BuildRequires: SUNWgnome-libs-devel
|
|
38 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
39 |
BuildRequires: SUNWgnome-file-mgr-devel
|
|
40 |
BuildRequires: SUNWgnome-config-devel
|
|
41 |
BuildRequires: SUNWgnome-vfs-devel
|
|
42 |
|
|
43 |
%package root
|
|
44 |
Summary: %{summary} - / filesystem
|
|
45 |
SUNW_BaseDir: /
|
|
46 |
%include default-depend.inc
|
|
47 |
Requires: SUNWgnome-libs
|
|
48 |
Requires: SUNWpostrun-root
|
|
49 |
Requires: SUNWgnome-config
|
|
50 |
|
|
51 |
%if %build_l10n
|
|
52 |
%package l10n
|
|
53 |
Summary: %{summary} - l10n files
|
|
54 |
SUNW_BaseDir: %{_basedir}
|
|
55 |
%include default-depend.inc
|
|
56 |
Requires: %{name}
|
|
57 |
%endif
|
|
58 |
|
|
59 |
%package devel
|
|
60 |
Summary: %{summary} - development files
|
|
61 |
SUNW_BaseDir: %{_basedir}
|
|
62 |
%include default-depend.inc
|
|
63 |
Requires: %name
|
|
64 |
|
|
65 |
%prep
|
|
66 |
rm -rf %name-%version
|
|
67 |
mkdir %name-%version
|
|
68 |
%cd_burner.prep -d %name-%version
|
|
69 |
cd %{_builddir}/%name-%version
|
|
70 |
gzcat %SOURCE0 | tar xf -
|
|
71 |
|
|
72 |
%build
|
|
73 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
74 |
export CFLAGS="%optflags -I%{_includedir}"
|
|
75 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
76 |
%if %cc_is_gcc
|
|
77 |
%else
|
|
78 |
export CXX="${CXX} -norunpath"
|
|
79 |
%endif
|
|
80 |
export CXXFLAGS="%cxx_optflags -lCrun"
|
10572
|
81 |
export LDFLAGS="%_ldflags"
|
9397
|
82 |
|
|
83 |
%cd_burner.build -d %name-%version
|
|
84 |
|
|
85 |
%install
|
|
86 |
%cd_burner.install -d %name-%version
|
|
87 |
chmod -R a+rX $RPM_BUILD_ROOT/%{_sysconfdir}
|
|
88 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
89 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
90 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
91 |
|
|
92 |
%if %build_l10n
|
|
93 |
%else
|
|
94 |
# REMOVE l10n FILES
|
|
95 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
96 |
%endif
|
|
97 |
|
|
98 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
99 |
|
|
100 |
%clean
|
|
101 |
rm -rf $RPM_BUILD_ROOT
|
|
102 |
|
|
103 |
%post root
|
11370
|
104 |
%include gconf-install.script
|
9397
|
105 |
|
|
106 |
%preun root
|
|
107 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
108 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
109 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
110 |
echo ' exit 0';
|
|
111 |
echo '}';
|
|
112 |
echo 'umask 0022';
|
|
113 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
114 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
115 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
116 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
117 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
118 |
echo 'schemas="$SDIR/nautilus-cd-burner.schemas"';
|
|
119 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
120 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
121 |
|
|
122 |
%files
|
|
123 |
%defattr (-, root, bin)
|
|
124 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
125 |
%{_bindir}/*
|
|
126 |
%dir %attr (0755, root, bin) %{_libdir}
|
11440
|
127 |
%{_libdir}/nautilus/extensions-2.0/lib*.so*
|
9397
|
128 |
%{_libdir}/lib*.so*
|
|
129 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
130 |
%{_datadir}/nautilus-cd-burner
|
|
131 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
132 |
%{_datadir}/applications/nautilus-cd-burner.desktop
|
|
133 |
%{_datadir}/applications/nautilus-cd-burner-open-iso.desktop
|
|
134 |
%attr (-, root, other) %{_datadir}/icons
|
|
135 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
136 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
137 |
%{_mandir}/*/*
|
|
138 |
|
|
139 |
%files root
|
|
140 |
%defattr (-, root, sys)
|
|
141 |
%dir %attr(0755, root, sys) %{_sysconfdir}
|
|
142 |
%{_sysconfdir}/gconf/schemas/nautilus-cd-burner.schemas
|
|
143 |
|
|
144 |
%if %build_l10n
|
|
145 |
%files l10n
|
|
146 |
%defattr (-, root, bin)
|
|
147 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
148 |
%attr (-, root, other) %{_datadir}/locale
|
|
149 |
%endif
|
|
150 |
|
|
151 |
%files devel
|
|
152 |
%defattr (-, root, bin)
|
|
153 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
154 |
%{_includedir}/*
|
|
155 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
156 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
157 |
%{_libdir}/pkgconfig/*
|
|
158 |
|
|
159 |
%changelog
|
11579
|
160 |
* Fri Feb 01 2008 - [email protected]
|
|
161 |
- Remove %{_sysconfdir}/gnome-vfs-2.0/modules as they are no longer delivered.
|
11440
|
162 |
* Fri Jan 11 2008 - [email protected]
|
11508
|
163 |
- Move deletion of *.la to nautilus-cd-burner.spec. Update %files for new
|
|
164 |
tarball.
|
|
165 |
* Fri Jan 11 2008 - [email protected]
|
11440
|
166 |
- nautilus extensions go to extensions-2.0 dir. Change %files
|
11370
|
167 |
* Thu Jan 3 2008 - [email protected]
|
|
168 |
- use gconf-install.script instead of an inline script
|
9397
|
169 |
* Fri Dec 15 2006 - [email protected]
|
|
170 |
- Added l10n package. Fixes 6314057.
|
|
171 |
* Fri Oct 20 2006 - [email protected]
|
|
172 |
- Remove SUNWhalh BuildRequires because header files are in SUNWhea in snv_51.
|
|
173 |
* Mon Oct 16 2006 - [email protected]
|
|
174 |
- Remove the '-rf' from the 'rm *.la *.a' lines so that any changes to the
|
|
175 |
module source will be seen as a build error and action can be taken.
|
|
176 |
* Mon Sep 18 2006 - [email protected]
|
|
177 |
- Add SUNWhalh BuildRequires.
|
|
178 |
* Fri Sep 01 2006 - [email protected]
|
|
179 |
- New Manpage tarball
|
|
180 |
* Wed Aug 16 2006 - [email protected]
|
|
181 |
- Change 'icons' line in %files to pick up files.
|
|
182 |
* Sat Aug 12 2006 - [email protected]
|
|
183 |
- delete some unnecessary env variables
|
|
184 |
* Sat Aug 12 2006 - [email protected]
|
|
185 |
- change datadir/icons permissions back to root:other since it's a stable
|
|
186 |
interface and wasn't supposed to be changed
|
|
187 |
* Fri Aug 11 2006 - [email protected]
|
|
188 |
- Change SUNWhal-devel ref to SUNWhal as the former does not exist.
|
|
189 |
* Tue Aug 08 2006 - [email protected]
|
|
190 |
- Add BuildRequires SUNWhal/-devel after check-deps.pl run.
|
|
191 |
* Wed Thu 26 2006 - [email protected]
|
|
192 |
- Update pkging for new tarball, including removing l10n package as no files
|
|
193 |
installed there.
|
|
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 |
* Thu May 25 2006 - [email protected]
|
|
202 |
- use post/preun scripts to install schemas into the merged gconf files
|
|
203 |
* Wed May 10 2006 - [email protected]
|
|
204 |
- merge -share pkg(s) into the base pkg(s)
|
|
205 |
* Mon Feb 20 2006 - [email protected]
|
|
206 |
- Update Build/Requires after running check-deps.pl script.
|
|
207 |
* Sun Jan 22 2006 - [email protected]
|
|
208 |
- Add nautilus-cd-burner.desktop.
|
|
209 |
* Fri Sep 30 2005 - [email protected]
|
|
210 |
- Delete empty %gconf.xml files. Remove .la files.
|
|
211 |
* Mon Jul 11 2005 - [email protected]
|
|
212 |
- update CXXFLAGS
|
|
213 |
- added devel subpkg
|
|
214 |
* Sat Oct 02 2004 - [email protected]
|
|
215 |
- added %pkgbuild_postprocess
|
|
216 |
* Thu Sep 09 2004 - [email protected]
|
|
217 |
- Added nautilus-cd-burner.1 manpage
|
|
218 |
* Mon Aug 23 2004 - [email protected]
|
|
219 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
220 |
* Sat Jun 26 2004 [email protected]
|
|
221 |
- Changed install location to /usr/...
|
|
222 |
* Wed Jun 23 2004 - [email protected]
|
|
223 |
- Remove 'devel' package because no files assigned to it.
|
|
224 |
* Wed Jun 2 2004 - [email protected]
|
|
225 |
- Added %{_datadir}/locale to install l10n messages
|
|
226 |
* Tue May 11 2004 - [email protected]
|
|
227 |
- add SUNWgnome-file-mgr dependency
|
|
228 |
* Mon May 03 2004 - [email protected]
|
|
229 |
- fix directory permissions
|
|
230 |
* Thu Apr 15 2004 - [email protected]
|
|
231 |
- Created
|
|
232 |
|