author | laca |
Mon, 14 Jul 2008 09:46:17 +0000 | |
branch | gnome-2-22 |
changeset 12466 | cc05ce1b1d3e |
parent 12263 | 930dc7240f6a |
child 12492 | cc7f7fdaa301 |
child 12912 | 0a71ddb3f876 |
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}/ospm-pm |
|
79 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/test-queues |
|
80 |
||
81 |
# install man page |
|
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
82 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
83 |
cd %{_builddir}/%name-%version/sun-manpages |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
84 |
make install DESTDIR=$RPM_BUILD_ROOT |
10092 | 85 |
|
86 |
%if %build_l10n |
|
87 |
%else |
|
88 |
# REMOVE l10n FILES |
|
89 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
90 |
%endif |
|
91 |
||
92 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} |
|
93 |
||
94 |
%clean |
|
95 |
rm -rf $RPM_BUILD_ROOT |
|
96 |
||
97 |
%post |
|
98 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
99 |
echo '/usr/bin/update-desktop-database' |
|
100 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
101 |
||
102 |
%postun |
|
103 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
104 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
105 |
echo '/usr/bin/update-desktop-database' |
|
106 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
107 |
||
108 |
%post root |
|
11370 | 109 |
%include gconf-install.script |
10092 | 110 |
|
111 |
%preun root |
|
112 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
113 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
114 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
115 |
echo ' exit 0'; |
|
116 |
echo '}'; |
|
117 |
echo 'umask 0022'; |
|
118 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
119 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
120 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
121 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
122 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
123 |
echo 'schemas="$SDIR/ospm.schemas"'; |
|
124 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
125 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
126 |
||
127 |
%files |
|
128 |
%defattr (-, root, bin) |
|
129 |
%dir %attr (0755, root, bin) %{_bindir} |
|
130 |
%{_bindir}/* |
|
131 |
%dir %attr (0755, root, bin) %{_libdir} |
|
132 |
%dir %attr (0755, root, bin) %{_libdir}/ospm |
|
133 |
%{_libdir}/ospm/lib*.so* |
|
134 |
%{_libdir}/ospm/ospm-applet |
|
135 |
%{_libdir}/ospm/lp-queue-exists-by-serial.sh |
|
136 |
%attr (0755, root, bin) %{_libdir}/ospm/lp-queue-helper |
|
137 |
%dir %attr (0755, root, sys) %{_datadir} |
|
138 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
139 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/autostart |
|
140 |
%{_datadir}/gnome/autostart/ospm-applet.desktop |
|
141 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
142 |
%{_datadir}/applications/ospm-preferences.desktop |
|
143 |
%{_datadir}/ospm |
|
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
144 |
%dir %attr(0755, root, bin) %{_mandir} |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
145 |
%dir %attr(0755, root, bin) %{_mandir}/* |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
146 |
%{_mandir}/*/* |
10092 | 147 |
|
148 |
%if %build_l10n |
|
149 |
%files l10n |
|
150 |
%defattr (-, root, bin) |
|
151 |
%dir %attr (0755, root, sys) %{_datadir} |
|
152 |
%attr (-, root, other) %{_datadir}/locale |
|
153 |
%endif |
|
154 |
||
155 |
%files root |
|
156 |
%defattr (-, root, sys) |
|
157 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
158 |
%{_sysconfdir}/gconf/schemas/ospm.schemas |
|
159 |
%config %class(rbac) %attr (0644, root, sys) %{_sysconfdir}/security/exec_attr |
|
160 |
||
161 |
%changelog |
|
12263 | 162 |
* Wed May 07 2008 - [email protected] |
163 |
- Remove PERL5LIB setting as it is not necessary. |
|
11922 | 164 |
* Thu Mar 27 2008 - [email protected] |
165 |
- Add copyright file |
|
11370 | 166 |
* Thu Jan 3 2008 - [email protected] |
167 |
- use gconf-install.script instead of an inline script |
|
10572 | 168 |
* Fri Sep 28 2007 - [email protected] |
169 |
- delete SUNWxwrtl dependency, twice... |
|
10173
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
170 |
* Tue Jul 10 2007 - [email protected] |
b75cf692b129
Add man page for /usr/bin/ospm-preferences, fix bugster #6578592.
halton
parents:
10092
diff
changeset
|
171 |
- Add man page for ospm-preferences. |
10092 | 172 |
* Mon May 21 2007 - [email protected] |
173 |
- Renamed the spec file to SUNWprint-monitor.spec to match one pager. |
|
174 |
* Thu May 17 2007 - [email protected] |
|
175 |
- Added lp-queue-helper to exec_attr through the use of rbac class script |
|
176 |
Remove the need to make it setuid. |
|
177 |
* Sat May 05 2007 - [email protected] |
|
178 |
- Remove not shipped binaries ospm-pm and test-queues |
|
179 |
* Fri Apr 27 2007 - [email protected] |
|
180 |
- Initial spec file |