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