author | davelam |
Wed, 14 May 2008 08:32:49 +0000 | |
changeset 12292 | 9fea8698dbfd |
parent 12273 | b16d1d014bbd |
child 12309 | cbcb1e4de16f |
permissions | -rw-r--r-- |
10092 | 1 |
# |
2 |
# spec file for package ospm |
|
3 |
# |
|
11888 | 4 |
# Copyright 2008 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 |
|
9 |
# |
|
10 |
Name: ospm |
|
11 |
License: GPL |
|
12 |
Group: System/GUI/GNOME |
|
11390 | 13 |
# NOTE: If the version is bumped the new tarball must be uploaded to the |
14 |
# Sun Download Center. Contact GNOME RE for assistance. |
|
11888 | 15 |
Version: 0.2.1 |
10092 | 16 |
Release: 1 |
10121 | 17 |
Distribution: Java Desktop System |
10092 | 18 |
Vendor: Sun Microsystems, Inc. |
19 |
Summary: GNOME Remote Desktop |
|
10095 | 20 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{version}.tar.gz |
12031 | 21 |
%if %build_l10n |
22 |
Source1: l10n-configure.sh |
|
23 |
%endif |
|
12224 | 24 |
Patch1: %{name}-01-dbus-error-init.diff |
12273 | 25 |
# date:2008-05-08 owner:fujiwara type:l10n state:upstream |
26 |
Patch2: %{name}-02-po.diff |
|
12292
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
27 |
# date:2008-05-14 owner:davelam type:bug bugster:6699160 |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
28 |
Patch3: %{name}-03-add-libsocket.diff |
10092 | 29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
30 |
Docdir: %{_defaultdocdir}/doc |
|
31 |
Autoreqprov: on |
|
32 |
||
33 |
%define gtk2_version 2.2.0 |
|
34 |
%define GConf_version 2.2.0 |
|
35 |
%define libglade_version 2.0.0 |
|
36 |
%define intltool_version 0.25 |
|
37 |
||
38 |
Requires: gtk2 >= %{gtk2_version} |
|
39 |
Requires: GConf >= %{GConf_version} |
|
40 |
Requires: libglade >= %{libglade_version} |
|
41 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
42 |
BuildRequires: GConf-devel >= %{GConf_version} |
|
43 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
44 |
BuildRequires: intltool >= %{intltool_version} |
|
45 |
||
46 |
%description |
|
47 |
Ospm is an printer management tool. It can support local USB printer |
|
48 |
queue plug/unplug configration automaticlly. A printer management tool |
|
49 |
to let use mamnage own printers and jobs. |
|
50 |
||
51 |
%prep |
|
52 |
%setup -q |
|
53 |
||
12224 | 54 |
%patch1 -p1 |
12273 | 55 |
%patch2 -p1 |
12292
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
56 |
%patch3 -p1 |
12224 | 57 |
|
10092 | 58 |
%build |
59 |
%ifos linux |
|
60 |
if [ -x /usr/bin/getconf ]; then |
|
61 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
62 |
fi |
|
63 |
%else |
|
64 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
65 |
%endif |
|
66 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
67 |
CPUS=1 |
|
68 |
fi |
|
69 |
||
70 |
aclocal $ACLOCAL_FLAGS |
|
71 |
libtoolize --force |
|
72 |
intltoolize --force --automake |
|
12031 | 73 |
|
74 |
%if %build_l10n |
|
75 |
bash -x %SOURCE1 --enable-copyright |
|
76 |
%endif |
|
77 |
||
10092 | 78 |
autoheader |
79 |
automake -a -f -c --gnu |
|
80 |
autoconf |
|
81 |
||
82 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
83 |
./configure --prefix=%{_prefix} \ |
|
84 |
--sysconfdir=%{_sysconfdir} |
|
85 |
||
86 |
make -j $CPUS |
|
87 |
||
88 |
||
89 |
%install |
|
90 |
rm -rf $RPM_BUILD_ROOT |
|
91 |
||
92 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
93 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
94 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
95 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
96 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
97 |
||
98 |
||
99 |
%clean |
|
100 |
rm -rf $RPM_BUILD_ROOT |
|
101 |
||
102 |
%post |
|
103 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
104 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ospm-server.schemas >/dev/null |
|
105 |
||
106 |
%files |
|
107 |
%defattr(-,root,root) |
|
108 |
%doc AUTHORS COPYING ChangeLog NEWS README |
|
109 |
%doc docs/remote-desktop.txt |
|
110 |
%doc docs/TODO |
|
111 |
%{_bindir}/* |
|
112 |
%{_libdir}/bonobo/servers/* |
|
113 |
%{_libexecdir}/* |
|
114 |
%{_datadir}/applications/ |
|
115 |
%{_datadir}/gnome/ospm/* |
|
116 |
%{_datadir}/icons/ |
|
117 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
118 |
%config %{_sysconfdir}/gconf/schemas/* |
|
119 |
||
120 |
%changelog |
|
12292
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
121 |
* Wed May 14 2008 - [email protected] |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
122 |
- Add patch ospm-03-add-libsocket.diff to fix build error |
12273 | 123 |
* Thu May 08 2008 - [email protected] |
124 |
- Add ospm-01-po.diff for cs.po |
|
125 |
Contributed l10n from Hana Zalska <[email protected]> |
|
11888 | 126 |
* Fri Mar 21 2008 - [email protected] |
127 |
- Bump to 0.2.1 |
|
128 |
- Remove upstreamed patches: hal-miss-data.diff |
|
129 |
freed-file-pointer.diff, queue-exists-on-system.diff |
|
130 |
disable-hal-crash.diff |
|
11294 | 131 |
* Wed Dec 06 2007 - [email protected] |
132 |
Added patch ospm-04-disable-hal-crash.diff to fix bugster 6633471. |
|
11292 | 133 |
* Wed Dec 05 2007 - [email protected] |
134 |
Added patch ospm-03-queue-exists-on-system.diff |
|
135 |
* Tue Dec 04 2007 - [email protected] |
|
136 |
- Modified ospm-02-freed-file-pointer.diff to include |
|
11274 | 137 |
also printer to have MAXPATHLEN committed by Norm. |
10316 | 138 |
* Tue Aug 14 2007 - [email protected] |
139 |
- Add patch hal-miss-data.diff |
|
10177 | 140 |
* Thu Jul 10 2007 - [email protected] |
141 |
- Bump to version 0.2 and remove upstream patches |
|
10121 | 142 |
* Tue Jun 26 2007 - [email protected] |
143 |
- Add patches critical-warning.diff and quit-crash.diff |
|
10095 | 144 |
* Thu Jun 21 2007 - [email protected] |
145 |
- Fix source url error. |
|
10092 | 146 |
* Fri Apr 27 2007 - [email protected] |
147 |
- Initial spec file |