author | gheet |
Thu, 05 Mar 2009 17:29:21 +0000 | |
changeset 15315 | 3663cf37c0ff |
parent 15049 | 88025eb00071 |
child 15865 | 69b745ef0e8d |
permissions | -rw-r--r-- |
10092 | 1 |
# |
2 |
# spec file for package ospm |
|
3 |
# |
|
15049 | 4 |
# Copyright 2009 Sun Microsystems, Inc. |
10092 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
# Owner: halton |
|
12912 | 9 |
# bugdb: defect.opensolaris.org/bz |
10092 | 10 |
# |
11 |
Name: ospm |
|
14559 | 12 |
License: GPL v2 |
10092 | 13 |
Group: System/GUI/GNOME |
11390 | 14 |
# NOTE: If the version is bumped the new tarball must be uploaded to the |
15 |
# Sun Download Center. Contact GNOME RE for assistance. |
|
15315 | 16 |
Version: 1.4.8 |
10092 | 17 |
Release: 1 |
10121 | 18 |
Distribution: Java Desktop System |
10092 | 19 |
Vendor: Sun Microsystems, Inc. |
20 |
Summary: GNOME Remote Desktop |
|
13794 | 21 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/%{name}/%{name}-%{version}.tar.bz2 |
14688 | 22 |
Source1: l10n-configure.sh |
10092 | 23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
24 |
Docdir: %{_defaultdocdir}/doc |
|
25 |
Autoreqprov: on |
|
26 |
||
27 |
%define gtk2_version 2.2.0 |
|
28 |
%define GConf_version 2.2.0 |
|
29 |
%define libglade_version 2.0.0 |
|
30 |
%define intltool_version 0.25 |
|
31 |
||
32 |
Requires: gtk2 >= %{gtk2_version} |
|
33 |
Requires: GConf >= %{GConf_version} |
|
34 |
Requires: libglade >= %{libglade_version} |
|
35 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
36 |
BuildRequires: GConf-devel >= %{GConf_version} |
|
37 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
38 |
BuildRequires: intltool >= %{intltool_version} |
|
39 |
||
40 |
%description |
|
41 |
Ospm is an printer management tool. It can support local USB printer |
|
42 |
queue plug/unplug configration automaticlly. A printer management tool |
|
43 |
to let use mamnage own printers and jobs. |
|
44 |
||
45 |
%prep |
|
46 |
%setup -q |
|
12224 | 47 |
|
10092 | 48 |
%build |
49 |
%ifos linux |
|
50 |
if [ -x /usr/bin/getconf ]; then |
|
51 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
52 |
fi |
|
53 |
%else |
|
54 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
55 |
%endif |
|
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
57 |
CPUS=1 |
|
58 |
fi |
|
59 |
||
60 |
aclocal $ACLOCAL_FLAGS |
|
61 |
libtoolize --force |
|
14527 | 62 |
gnome-doc-prepare --copy --force --automake |
10092 | 63 |
intltoolize --force --automake |
12031 | 64 |
|
65 |
bash -x %SOURCE1 --enable-copyright |
|
66 |
||
10092 | 67 |
autoheader |
68 |
automake -a -f -c --gnu |
|
69 |
autoconf |
|
70 |
||
71 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
72 |
./configure --prefix=%{_prefix} \ |
|
73 |
--sysconfdir=%{_sysconfdir} |
|
74 |
||
15049 | 75 |
make -j $CPUS |
10092 | 76 |
|
77 |
%install |
|
78 |
rm -rf $RPM_BUILD_ROOT |
|
79 |
||
80 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
81 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
82 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
83 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
84 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
85 |
||
86 |
||
87 |
%clean |
|
88 |
rm -rf $RPM_BUILD_ROOT |
|
89 |
||
90 |
%post |
|
91 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
92 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ospm-server.schemas >/dev/null |
|
93 |
||
94 |
%files |
|
95 |
%defattr(-,root,root) |
|
96 |
%doc AUTHORS COPYING ChangeLog NEWS README |
|
97 |
%{_bindir}/* |
|
98 |
%{_libdir}/bonobo/servers/* |
|
99 |
%{_libexecdir}/* |
|
100 |
%{_datadir}/applications/ |
|
101 |
%{_datadir}/gnome/ospm/* |
|
102 |
%{_datadir}/icons/ |
|
103 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
104 |
%config %{_sysconfdir}/gconf/schemas/* |
|
105 |
||
106 |
%changelog |
|
15315 | 107 |
* Thu Mar 05 2009 - [email protected] |
108 |
- Up-rev tarball to 1.4.8 to fix 6811380. |
|
15049 | 109 |
* Tue Feb 10 2009 - [email protected] |
110 |
- Add ospm-02-conflict-func.diff to fix CR #6803372 |
|
14688 | 111 |
* Tue Dec 02 2008 - [email protected] |
112 |
- Add ospm-01-no-net-during-build.diff to stop a build failure. |
|
113 |
The http dtd should be defined in /usr/share/sgml/docbook/xmlcatalog |
|
114 |
not to access network. |
|
14527 | 115 |
* Thu Oct 30 2008 - [email protected] |
116 |
- Bump to 1.4.7 to contain non-C gnome-help and omf |
|
117 |
- Add add gnome-doc-prepare |
|
14407 | 118 |
* Wed Oct 01 2008 - [email protected] |
119 |
- Bump to 1.4.6 to contain fix for 6754585. |
|
13793 | 120 |
* Sat Sep 27 2008 - [email protected] |
121 |
- Bump to 1.4.5 |
|
13794 | 122 |
- Fix Source URL error |
13750 | 123 |
* Thu Sep 24 2008 - [email protected] |
124 |
- Uprev tarball to 1.4.4 |
|
13667 | 125 |
* Thu Sep 18 2008 - [email protected] |
126 |
- Uprev tarball to 1.4.3 |
|
13476 | 127 |
* Wed Sep 10 2008 - [email protected] |
128 |
- Remove some files not exist |
|
13293 | 129 |
* Wed Aug 27 2008 - [email protected] |
130 |
- Bump to 1.4.1 |
|
12912 | 131 |
* Thu Jul 24 2008 - [email protected] |
132 |
- Bump to 1.4. |
|
133 |
- Remove upsteamed patches dbus-error-init.diff, po.diff and add-libsocket.diff |
|
12292
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
134 |
* Wed May 14 2008 - [email protected] |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
135 |
- Add patch ospm-03-add-libsocket.diff to fix build error |
12273 | 136 |
* Thu May 08 2008 - [email protected] |
137 |
- Add ospm-01-po.diff for cs.po |
|
138 |
Contributed l10n from Hana Zalska <[email protected]> |
|
11888 | 139 |
* Fri Mar 21 2008 - [email protected] |
140 |
- Bump to 0.2.1 |
|
141 |
- Remove upstreamed patches: hal-miss-data.diff |
|
142 |
freed-file-pointer.diff, queue-exists-on-system.diff |
|
143 |
disable-hal-crash.diff |
|
11294 | 144 |
* Wed Dec 06 2007 - [email protected] |
145 |
Added patch ospm-04-disable-hal-crash.diff to fix bugster 6633471. |
|
11292 | 146 |
* Wed Dec 05 2007 - [email protected] |
147 |
Added patch ospm-03-queue-exists-on-system.diff |
|
148 |
* Tue Dec 04 2007 - [email protected] |
|
149 |
- Modified ospm-02-freed-file-pointer.diff to include |
|
11274 | 150 |
also printer to have MAXPATHLEN committed by Norm. |
10316 | 151 |
* Tue Aug 14 2007 - [email protected] |
152 |
- Add patch hal-miss-data.diff |
|
10177 | 153 |
* Thu Jul 10 2007 - [email protected] |
154 |
- Bump to version 0.2 and remove upstream patches |
|
10121 | 155 |
* Tue Jun 26 2007 - [email protected] |
156 |
- Add patches critical-warning.diff and quit-crash.diff |
|
10095 | 157 |
* Thu Jun 21 2007 - [email protected] |
158 |
- Fix source url error. |
|
10092 | 159 |
* Fri Apr 27 2007 - [email protected] |
160 |
- Initial spec file |