author | gheet |
Wed, 03 Sep 2008 09:42:30 +0000 | |
changeset 13383 | 5829d369bf63 |
parent 13293 | d7a5628d840b |
child 13476 | 4d72fd428e8b |
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 |
|
12912 | 9 |
# bugdb: defect.opensolaris.org/bz |
10092 | 10 |
# |
11 |
Name: ospm |
|
12 |
License: GPL |
|
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. |
|
13383 | 16 |
Version: 1.4.2 |
10092 | 17 |
Release: 1 |
10121 | 18 |
Distribution: Java Desktop System |
10092 | 19 |
Vendor: Sun Microsystems, Inc. |
20 |
Summary: GNOME Remote Desktop |
|
12912 | 21 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{version}.tar.bz2 |
12031 | 22 |
%if %build_l10n |
23 |
Source1: l10n-configure.sh |
|
24 |
%endif |
|
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 |
|
49 |
||
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 |
|
65 |
intltoolize --force --automake |
|
12031 | 66 |
|
67 |
%if %build_l10n |
|
68 |
bash -x %SOURCE1 --enable-copyright |
|
69 |
%endif |
|
70 |
||
10092 | 71 |
autoheader |
72 |
automake -a -f -c --gnu |
|
73 |
autoconf |
|
74 |
||
75 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
76 |
./configure --prefix=%{_prefix} \ |
|
77 |
--sysconfdir=%{_sysconfdir} |
|
78 |
||
79 |
make -j $CPUS |
|
80 |
||
81 |
||
82 |
%install |
|
83 |
rm -rf $RPM_BUILD_ROOT |
|
84 |
||
85 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
86 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
87 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
88 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
89 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
90 |
||
91 |
||
92 |
%clean |
|
93 |
rm -rf $RPM_BUILD_ROOT |
|
94 |
||
95 |
%post |
|
96 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
97 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ospm-server.schemas >/dev/null |
|
98 |
||
99 |
%files |
|
100 |
%defattr(-,root,root) |
|
101 |
%doc AUTHORS COPYING ChangeLog NEWS README |
|
102 |
%doc docs/remote-desktop.txt |
|
103 |
%doc docs/TODO |
|
104 |
%{_bindir}/* |
|
105 |
%{_libdir}/bonobo/servers/* |
|
106 |
%{_libexecdir}/* |
|
107 |
%{_datadir}/applications/ |
|
108 |
%{_datadir}/gnome/ospm/* |
|
109 |
%{_datadir}/icons/ |
|
110 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
111 |
%config %{_sysconfdir}/gconf/schemas/* |
|
112 |
||
113 |
%changelog |
|
13293 | 114 |
* Wed Aug 27 2008 - [email protected] |
115 |
- Bump to 1.4.1 |
|
12912 | 116 |
* Thu Jul 24 2008 - [email protected] |
117 |
- Bump to 1.4. |
|
118 |
- 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
|
119 |
* Wed May 14 2008 - [email protected] |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
120 |
- Add patch ospm-03-add-libsocket.diff to fix build error |
12273 | 121 |
* Thu May 08 2008 - [email protected] |
122 |
- Add ospm-01-po.diff for cs.po |
|
123 |
Contributed l10n from Hana Zalska <[email protected]> |
|
11888 | 124 |
* Fri Mar 21 2008 - [email protected] |
125 |
- Bump to 0.2.1 |
|
126 |
- Remove upstreamed patches: hal-miss-data.diff |
|
127 |
freed-file-pointer.diff, queue-exists-on-system.diff |
|
128 |
disable-hal-crash.diff |
|
11294 | 129 |
* Wed Dec 06 2007 - [email protected] |
130 |
Added patch ospm-04-disable-hal-crash.diff to fix bugster 6633471. |
|
11292 | 131 |
* Wed Dec 05 2007 - [email protected] |
132 |
Added patch ospm-03-queue-exists-on-system.diff |
|
133 |
* Tue Dec 04 2007 - [email protected] |
|
134 |
- Modified ospm-02-freed-file-pointer.diff to include |
|
11274 | 135 |
also printer to have MAXPATHLEN committed by Norm. |
10316 | 136 |
* Tue Aug 14 2007 - [email protected] |
137 |
- Add patch hal-miss-data.diff |
|
10177 | 138 |
* Thu Jul 10 2007 - [email protected] |
139 |
- Bump to version 0.2 and remove upstream patches |
|
10121 | 140 |
* Tue Jun 26 2007 - [email protected] |
141 |
- Add patches critical-warning.diff and quit-crash.diff |
|
10095 | 142 |
* Thu Jun 21 2007 - [email protected] |
143 |
- Fix source url error. |
|
10092 | 144 |
* Fri Apr 27 2007 - [email protected] |
145 |
- Initial spec file |