author | daniell |
Wed, 13 Oct 2010 16:43:58 +0000 | |
branch | opensolaris-2009-06 |
changeset 20159 | f18a6979f732 |
parent 14007 | 9d0acd126f19 |
permissions | -rw-r--r-- |
10092 | 1 |
# |
2 |
# spec file for package SUNWprint-monitor |
|
3 |
# |
|
4 |
# includes module(s): ospm |
|
5 |
# |
|
11370 | 6 |
# Copyright 2008 Sun Microsystems, Inc. |
10092 | 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: halton |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use ospm = ospm.spec |
|
15 |
||
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
16 |
Name: SUNWprint-monitor |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
17 |
Summary: Print Monitor |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
18 |
Version: %{default_pkg_version} |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
19 |
SUNW_BaseDir: %{_basedir} |
11922 | 20 |
SUNW_Copyright: %{name}.copyright |
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
22 |
Source: %{name}-exec_attr |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
23 |
Source1: %{name}-manpages-0.1.tar.gz |
10092 | 24 |
|
25 |
%include default-depend.inc |
|
26 |
Requires: SUNWgnome-libs |
|
27 |
Requires: SUNWgnome-base-libs |
|
28 |
Requires: SUNWgnome-component |
|
29 |
Requires: SUNWgnome-config |
|
30 |
Requires: SUNWzlib |
|
31 |
Requires: SUNWpostrun |
|
32 |
Requires: SUNWgnome-panel |
|
33 |
BuildRequires: SUNWgnome-component-devel |
|
34 |
BuildRequires: SUNWgnome-config-devel |
|
35 |
BuildRequires: SUNWgnome-libs-devel |
|
36 |
BuildRequires: SUNWgnome-base-libs-devel |
|
37 |
BuildRequires: SUNWgnome-panel-devel |
|
38 |
||
39 |
%if %build_l10n |
|
40 |
%package l10n |
|
41 |
Summary: %{summary} - l10n files |
|
42 |
SUNW_BaseDir: %{_basedir} |
|
43 |
%include default-depend.inc |
|
44 |
Requires: %{name} |
|
45 |
%endif |
|
46 |
||
47 |
%package root |
|
48 |
Summary: %{summary} - / filesystem |
|
49 |
SUNW_BaseDir: / |
|
50 |
%include default-depend.inc |
|
51 |
Requires: SUNWpostrun-root |
|
52 |
Requires: SUNWgnome-config |
|
53 |
||
54 |
%prep |
|
55 |
rm -rf %name-%version |
|
56 |
mkdir %name-%version |
|
57 |
%ospm.prep -d %name-%version |
|
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
58 |
cd %{_builddir}/%name-%version |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
59 |
gzcat %SOURCE1 | tar xf - |
10092 | 60 |
|
61 |
%build |
|
62 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
63 |
export MSGFMT="/usr/bin/msgfmt" |
|
64 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
65 |
export CFLAGS="%optflags -I%{_includedir}" |
|
66 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
67 |
export LDFLAGS="%_ldflags" |
|
68 |
||
69 |
%ospm.build -d %name-%version |
|
70 |
||
71 |
%install |
|
72 |
rm -rf $RPM_BUILD_ROOT |
|
73 |
%ospm.install -d %name-%version |
|
74 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/security |
|
75 |
install --mode=0644 %SOURCE $RPM_BUILD_ROOT%{_sysconfdir}/security/exec_attr |
|
76 |
||
77 |
#delete some unused or not shipped binaries. |
|
78 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/test-queues |
|
79 |
||
13406 | 80 |
#delete desktop files are they are now delived in SUNWpcu which uses a wrapper |
81 |
#to share the same desktop files for lp and cups. |
|
82 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/autostart |
|
83 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications |
|
84 |
||
10092 | 85 |
# install man page |
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
86 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
87 |
cd %{_builddir}/%name-%version/sun-manpages |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
88 |
make install DESTDIR=$RPM_BUILD_ROOT |
10092 | 89 |
|
90 |
%if %build_l10n |
|
91 |
%else |
|
92 |
# REMOVE l10n FILES |
|
93 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
13922 | 94 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
95 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf |
|
10092 | 96 |
%endif |
97 |
||
98 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
99 |
||
100 |
%clean |
|
101 |
rm -rf $RPM_BUILD_ROOT |
|
102 |
||
103 |
%post |
|
12912 | 104 |
%include desktop-database-install.script |
10092 | 105 |
|
106 |
%postun |
|
107 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
12912 | 108 |
%include desktop-database-uninstall.script |
10092 | 109 |
|
110 |
%post root |
|
11370 | 111 |
%include gconf-install.script |
10092 | 112 |
|
113 |
%preun root |
|
114 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
115 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
116 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
117 |
echo ' exit 0'; |
|
118 |
echo '}'; |
|
119 |
echo 'umask 0022'; |
|
120 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
121 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
122 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
123 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
124 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
125 |
echo 'schemas="$SDIR/ospm.schemas"'; |
|
126 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
127 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
128 |
||
129 |
%files |
|
14007 | 130 |
%doc(bzip2) -d ospm-%{ospm.version} COPYING ChangeLog po/ChangeLog |
13476 | 131 |
%doc -d ospm-%{ospm.version} AUTHORS |
13478 | 132 |
%dir %attr (0755, root, other) %{_datadir}/doc |
10092 | 133 |
%defattr (-, root, bin) |
134 |
%dir %attr (0755, root, bin) %{_bindir} |
|
135 |
%{_bindir}/* |
|
136 |
%dir %attr (0755, root, bin) %{_libdir} |
|
137 |
%dir %attr (0755, root, bin) %{_libdir}/ospm |
|
138 |
%{_libdir}/ospm/lib*.so* |
|
139 |
%{_libdir}/ospm/ospm-applet |
|
140 |
%{_libdir}/ospm/lp-queue-exists-by-serial.sh |
|
141 |
%attr (0755, root, bin) %{_libdir}/ospm/lp-queue-helper |
|
13420 | 142 |
%dir %attr (0755, root, sys) %{_datadir} |
10092 | 143 |
%{_datadir}/ospm |
14007 | 144 |
%{_datadir}/omf/ospm-pm/*-C.omf |
13420 | 145 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
146 |
%{_datadir}/gnome/help/ospm-pm/C |
|
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
147 |
%dir %attr(0755, root, bin) %{_mandir} |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
148 |
%dir %attr(0755, root, bin) %{_mandir}/* |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
149 |
%{_mandir}/*/* |
10092 | 150 |
|
151 |
%if %build_l10n |
|
152 |
%files l10n |
|
153 |
%defattr (-, root, bin) |
|
154 |
%dir %attr (0755, root, sys) %{_datadir} |
|
155 |
%attr (-, root, other) %{_datadir}/locale |
|
13922 | 156 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
157 |
%{_datadir}/gnome/help/*/[a-z]* |
|
158 |
%{_datadir}/omf/*/*-[a-z]*.omf |
|
10092 | 159 |
%endif |
160 |
||
161 |
%files root |
|
162 |
%defattr (-, root, sys) |
|
163 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
164 |
%{_sysconfdir}/gconf/schemas/ospm.schemas |
|
165 |
%config %class(rbac) %attr (0644, root, sys) %{_sysconfdir}/security/exec_attr |
|
166 |
||
167 |
%changelog |
|
14007 | 168 |
* Thu Nov 20 2008 - [email protected] |
169 |
- Fixed pkgmap |
|
170 |
* Wed Nov 05 2008 - [email protected] |
|
171 |
- Add po/ChangeLog to %files |
|
13922 | 172 |
* Thu Oct 30 2008 - [email protected] |
173 |
- Remove the hack of replacing testpages, since we've bumped new tar ball |
|
174 |
* Thu Oct 30 2008 - [email protected] |
|
175 |
- Add non-C locale gnome help and omf to %files |
|
13476 | 176 |
* Wed Sep 10 2008 - [email protected] |
177 |
- Add %doc to %files |
|
13420 | 178 |
* Fri Sep 05 2008 - [email protected] |
179 |
- Fix %files attr conflict for new added help files |
|
13406 | 180 |
* Thu Sep 04 2008 - [email protected] |
181 |
- Remove the delivery of desktop files as this is now delivered from SUNWpcu |
|
182 |
so that it can be shared by different print system. |
|
12912 | 183 |
* Thu Jul 24 2008 - [email protected] |
184 |
- Reflect change for version bump |
|
12263 | 185 |
* Wed May 07 2008 - [email protected] |
186 |
- Remove PERL5LIB setting as it is not necessary. |
|
11922 | 187 |
* Thu Mar 27 2008 - [email protected] |
188 |
- Add copyright file |
|
11370 | 189 |
* Thu Jan 3 2008 - [email protected] |
190 |
- use gconf-install.script instead of an inline script |
|
10572 | 191 |
* Fri Sep 28 2007 - [email protected] |
192 |
- delete SUNWxwrtl dependency, twice... |
|
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
193 |
* Tue Jul 10 2007 - [email protected] |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
194 |
- Add man page for ospm-preferences. |
10092 | 195 |
* Mon May 21 2007 - [email protected] |
196 |
- Renamed the spec file to SUNWprint-monitor.spec to match one pager. |
|
197 |
* Thu May 17 2007 - [email protected] |
|
198 |
- Added lp-queue-helper to exec_attr through the use of rbac class script |
|
199 |
Remove the need to make it setuid. |
|
200 |
* Sat May 05 2007 - [email protected] |
|
201 |
- Remove not shipped binaries ospm-pm and test-queues |
|
202 |
* Fri Apr 27 2007 - [email protected] |
|
203 |
- Initial spec file |