10092
|
1 |
#
|
|
2 |
# spec file for package ospm
|
|
3 |
#
|
|
4 |
# Copyright (c) 2007 Sun Microsystems, Inc.
|
|
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
|
10177
|
13 |
Version: 0.2
|
10092
|
14 |
Release: 1
|
10121
|
15 |
Distribution: Java Desktop System
|
10092
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: GNOME Remote Desktop
|
10095
|
18 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{version}.tar.gz
|
10316
|
19 |
# date:2007-08-14 owner:evan type:bug bugster:6586850
|
|
20 |
Patch1: %{name}-01-hal-miss-data.diff
|
11094
|
21 |
# date:2007-10-14 owner:gheet type:bug bugster:6617327
|
11274
|
22 |
Patch2: %{name}-02-freed-file-pointer-max-printer-name.diff
|
11292
|
23 |
# date:2007-12-05 owner:gheet type:bug bugster:6591935
|
|
24 |
Patch3: %{name}-03-queue-exists-on-system.diff
|
10092
|
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
26 |
Docdir: %{_defaultdocdir}/doc
|
|
27 |
Autoreqprov: on
|
|
28 |
|
|
29 |
%define gtk2_version 2.2.0
|
|
30 |
%define GConf_version 2.2.0
|
|
31 |
%define libglade_version 2.0.0
|
|
32 |
%define intltool_version 0.25
|
|
33 |
|
|
34 |
Requires: gtk2 >= %{gtk2_version}
|
|
35 |
Requires: GConf >= %{GConf_version}
|
|
36 |
Requires: libglade >= %{libglade_version}
|
|
37 |
BuildRequires: gtk2-devel >= %{gtk2_version}
|
|
38 |
BuildRequires: GConf-devel >= %{GConf_version}
|
|
39 |
BuildRequires: libglade-devel >= %{libglade_version}
|
|
40 |
BuildRequires: intltool >= %{intltool_version}
|
|
41 |
|
|
42 |
%description
|
|
43 |
Ospm is an printer management tool. It can support local USB printer
|
|
44 |
queue plug/unplug configration automaticlly. A printer management tool
|
|
45 |
to let use mamnage own printers and jobs.
|
|
46 |
|
|
47 |
%prep
|
|
48 |
%setup -q
|
10316
|
49 |
%patch1 -p0
|
11094
|
50 |
%patch2 -p1
|
11292
|
51 |
%patch3 -p1
|
10092
|
52 |
|
|
53 |
%build
|
|
54 |
%ifos linux
|
|
55 |
if [ -x /usr/bin/getconf ]; then
|
|
56 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
57 |
fi
|
|
58 |
%else
|
|
59 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
60 |
%endif
|
|
61 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
62 |
CPUS=1
|
|
63 |
fi
|
|
64 |
|
|
65 |
aclocal $ACLOCAL_FLAGS
|
|
66 |
libtoolize --force
|
|
67 |
intltoolize --force --automake
|
|
68 |
autoheader
|
|
69 |
automake -a -f -c --gnu
|
|
70 |
autoconf
|
|
71 |
|
|
72 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
73 |
./configure --prefix=%{_prefix} \
|
|
74 |
--sysconfdir=%{_sysconfdir}
|
|
75 |
|
|
76 |
make -j $CPUS
|
|
77 |
|
|
78 |
|
|
79 |
%install
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
83 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
84 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
85 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
86 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
87 |
|
|
88 |
|
|
89 |
%clean
|
|
90 |
rm -rf $RPM_BUILD_ROOT
|
|
91 |
|
|
92 |
%post
|
|
93 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
94 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ospm-server.schemas >/dev/null
|
|
95 |
|
|
96 |
%files
|
|
97 |
%defattr(-,root,root)
|
|
98 |
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
99 |
%doc docs/remote-desktop.txt
|
|
100 |
%doc docs/TODO
|
|
101 |
%{_bindir}/*
|
|
102 |
%{_libdir}/bonobo/servers/*
|
|
103 |
%{_libexecdir}/*
|
|
104 |
%{_datadir}/applications/
|
|
105 |
%{_datadir}/gnome/ospm/*
|
|
106 |
%{_datadir}/icons/
|
|
107 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
|
108 |
%config %{_sysconfdir}/gconf/schemas/*
|
|
109 |
|
|
110 |
%changelog
|
11292
|
111 |
* Wed Dec 05 2007 - [email protected]
|
|
112 |
Added patch ospm-03-queue-exists-on-system.diff
|
|
113 |
* Tue Dec 04 2007 - [email protected]
|
|
114 |
- Modified ospm-02-freed-file-pointer.diff to include
|
11274
|
115 |
also printer to have MAXPATHLEN committed by Norm.
|
10316
|
116 |
* Tue Aug 14 2007 - [email protected]
|
|
117 |
- Add patch hal-miss-data.diff
|
10177
|
118 |
* Thu Jul 10 2007 - [email protected]
|
|
119 |
- Bump to version 0.2 and remove upstream patches
|
10121
|
120 |
* Tue Jun 26 2007 - [email protected]
|
|
121 |
- Add patches critical-warning.diff and quit-crash.diff
|
10095
|
122 |
* Thu Jun 21 2007 - [email protected]
|
|
123 |
- Fix source url error.
|
10092
|
124 |
* Fri Apr 27 2007 - [email protected]
|
|
125 |
- Initial spec file
|