author | halton |
Thu, 30 Oct 2008 02:25:11 +0000 | |
changeset 14527 | 090a92864692 |
parent 14407 | 623017cc49e3 |
child 13989 | 44f30b8c07b9 |
child 14559 | 081ca1b9050c |
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. |
|
14527 | 16 |
Version: 1.4.7 |
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 |
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 |
|
14527 | 65 |
gnome-doc-prepare --copy --force --automake |
10092 | 66 |
intltoolize --force --automake |
12031 | 67 |
|
68 |
%if %build_l10n |
|
69 |
bash -x %SOURCE1 --enable-copyright |
|
70 |
%endif |
|
71 |
||
10092 | 72 |
autoheader |
73 |
automake -a -f -c --gnu |
|
74 |
autoconf |
|
75 |
||
76 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
77 |
./configure --prefix=%{_prefix} \ |
|
78 |
--sysconfdir=%{_sysconfdir} |
|
79 |
||
80 |
make -j $CPUS |
|
81 |
||
82 |
||
83 |
%install |
|
84 |
rm -rf $RPM_BUILD_ROOT |
|
85 |
||
86 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
87 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
88 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
89 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
90 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
91 |
||
92 |
||
93 |
%clean |
|
94 |
rm -rf $RPM_BUILD_ROOT |
|
95 |
||
96 |
%post |
|
97 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
98 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ospm-server.schemas >/dev/null |
|
99 |
||
100 |
%files |
|
101 |
%defattr(-,root,root) |
|
102 |
%doc AUTHORS COPYING ChangeLog NEWS README |
|
103 |
%{_bindir}/* |
|
104 |
%{_libdir}/bonobo/servers/* |
|
105 |
%{_libexecdir}/* |
|
106 |
%{_datadir}/applications/ |
|
107 |
%{_datadir}/gnome/ospm/* |
|
108 |
%{_datadir}/icons/ |
|
109 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
110 |
%config %{_sysconfdir}/gconf/schemas/* |
|
111 |
||
112 |
%changelog |
|
14527 | 113 |
* Thu Oct 30 2008 - [email protected] |
114 |
- Bump to 1.4.7 to contain non-C gnome-help and omf |
|
115 |
- Add add gnome-doc-prepare |
|
14407 | 116 |
* Wed Oct 01 2008 - [email protected] |
117 |
- Bump to 1.4.6 to contain fix for 6754585. |
|
13793 | 118 |
* Sat Sep 27 2008 - [email protected] |
119 |
- Bump to 1.4.5 |
|
13794 | 120 |
- Fix Source URL error |
13750 | 121 |
* Thu Sep 24 2008 - [email protected] |
122 |
- Uprev tarball to 1.4.4 |
|
13667 | 123 |
* Thu Sep 18 2008 - [email protected] |
124 |
- Uprev tarball to 1.4.3 |
|
13476 | 125 |
* Wed Sep 10 2008 - [email protected] |
126 |
- Remove some files not exist |
|
13293 | 127 |
* Wed Aug 27 2008 - [email protected] |
128 |
- Bump to 1.4.1 |
|
12912 | 129 |
* Thu Jul 24 2008 - [email protected] |
130 |
- Bump to 1.4. |
|
131 |
- 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
|
132 |
* Wed May 14 2008 - [email protected] |
9fea8698dbfd
Add ld flags in Makefile.am to fix the build error.
davelam
parents:
12273
diff
changeset
|
133 |
- Add patch ospm-03-add-libsocket.diff to fix build error |
12273 | 134 |
* Thu May 08 2008 - [email protected] |
135 |
- Add ospm-01-po.diff for cs.po |
|
136 |
Contributed l10n from Hana Zalska <[email protected]> |
|
11888 | 137 |
* Fri Mar 21 2008 - [email protected] |
138 |
- Bump to 0.2.1 |
|
139 |
- Remove upstreamed patches: hal-miss-data.diff |
|
140 |
freed-file-pointer.diff, queue-exists-on-system.diff |
|
141 |
disable-hal-crash.diff |
|
11294 | 142 |
* Wed Dec 06 2007 - [email protected] |
143 |
Added patch ospm-04-disable-hal-crash.diff to fix bugster 6633471. |
|
11292 | 144 |
* Wed Dec 05 2007 - [email protected] |
145 |
Added patch ospm-03-queue-exists-on-system.diff |
|
146 |
* Tue Dec 04 2007 - [email protected] |
|
147 |
- Modified ospm-02-freed-file-pointer.diff to include |
|
11274 | 148 |
also printer to have MAXPATHLEN committed by Norm. |
10316 | 149 |
* Tue Aug 14 2007 - [email protected] |
150 |
- Add patch hal-miss-data.diff |
|
10177 | 151 |
* Thu Jul 10 2007 - [email protected] |
152 |
- Bump to version 0.2 and remove upstream patches |
|
10121 | 153 |
* Tue Jun 26 2007 - [email protected] |
154 |
- Add patches critical-warning.diff and quit-crash.diff |
|
10095 | 155 |
* Thu Jun 21 2007 - [email protected] |
156 |
- Fix source url error. |
|
10092 | 157 |
* Fri Apr 27 2007 - [email protected] |
158 |
- Initial spec file |