base-specs/ospm.spec
author gheet
Wed, 03 Sep 2008 09:42:30 +0000
changeset 13383 5829d369bf63
parent 13293 d7a5628d840b
child 13476 4d72fd428e8b
permissions -rw-r--r--
2008-09-03 Ghee Teo <[email protected]> Updrev to 1.4.2 for ospm which includes the online help doc to fix 6742099. * SUNWprint-monitor.spec: * base-specs/ospm.spec:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     1
#
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     2
# spec file for package ospm
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     3
#
11888
757e19a58922 2008-03-21 Halton Huo <[email protected]>
halton
parents: 11390
diff changeset
     4
# Copyright 2008 Sun Microsystems, Inc.
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     6
# package are under the same license as the package itself.
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     7
#
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     8
# Owner: halton
12912
0a71ddb3f876 2008-07-24 Halton Huo <[email protected]>
halton
parents: 12309
diff changeset
     9
# bugdb: defect.opensolaris.org/bz
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    10
#
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    11
Name:			ospm
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    12
License:		GPL
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    13
Group:			System/GUI/GNOME
11390
5d4f02562c57 2008-01-04 Damien Carbery <[email protected]>
dcarbery
parents: 11294
diff changeset
    14
# NOTE: If the version is bumped the new tarball must be uploaded to the
5d4f02562c57 2008-01-04 Damien Carbery <[email protected]>
dcarbery
parents: 11294
diff changeset
    15
#       Sun Download Center. Contact GNOME RE for assistance.
13383
5829d369bf63 2008-09-03 Ghee Teo <[email protected]>
gheet
parents: 13293
diff changeset
    16
Version:		1.4.2
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    17
Release:		1
10121
a296126e2c51 * base-specs/ospm.spec: Add two patches.
halton
parents: 10095
diff changeset
    18
Distribution:	Java Desktop System
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    19
Vendor:			Sun Microsystems, Inc.
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    20
Summary:		GNOME Remote Desktop
12912
0a71ddb3f876 2008-07-24 Halton Huo <[email protected]>
halton
parents: 12309
diff changeset
    21
Source:			http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{version}.tar.bz2
12031
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    22
%if %build_l10n
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    23
Source1:                 l10n-configure.sh
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    24
%endif
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    25
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    26
Docdir:			%{_defaultdocdir}/doc
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    27
Autoreqprov:		on
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    28
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    29
%define			gtk2_version 2.2.0
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    30
%define			GConf_version 2.2.0
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    31
%define			libglade_version 2.0.0
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    32
%define                 intltool_version 0.25
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    33
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    34
Requires:		gtk2           >= %{gtk2_version}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    35
Requires:		GConf          >= %{GConf_version}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    36
Requires:		libglade       >= %{libglade_version}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    37
BuildRequires:		gtk2-devel     >= %{gtk2_version}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    38
BuildRequires:		GConf-devel    >= %{GConf_version}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    39
BuildRequires:		libglade-devel >= %{libglade_version}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    40
BuildRequires:		intltool       >= %{intltool_version}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    41
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    42
%description
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    43
Ospm is an printer management tool. It can support local USB printer
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    44
queue plug/unplug configration automaticlly. A printer management tool
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    45
to let use mamnage own printers and jobs.
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    46
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    47
%prep
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    48
%setup -q
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    49
12224
32823eb68435 2008-04-29 Ghee Teo <[email protected]>
gheet
parents: 12031
diff changeset
    50
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    51
%build
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    52
%ifos linux
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    53
if [ -x /usr/bin/getconf ]; then
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    54
  CPUS=`getconf _NPROCESSORS_ONLN`
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    55
fi
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    56
%else
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    57
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    58
%endif
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    59
if test "x$CPUS" = "x" -o $CPUS = 0; then
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    60
  CPUS=1
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    61
fi
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    62
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    63
aclocal $ACLOCAL_FLAGS
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    64
libtoolize --force
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    65
intltoolize --force --automake
12031
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    66
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    67
%if %build_l10n
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    68
bash -x %SOURCE1 --enable-copyright
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    69
%endif
8ed3afd23a6f 2008-04-04 Takao Fujiwara <[email protected]>
fujiwara
parents: 11888
diff changeset
    70
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    71
autoheader
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    72
automake -a -f -c --gnu
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    73
autoconf 
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    74
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    75
CFLAGS="$RPM_OPT_FLAGS"				\
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    76
./configure   --prefix=%{_prefix}		\
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    77
	      --sysconfdir=%{_sysconfdir}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    78
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    79
make -j $CPUS
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    80
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    81
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    82
%install
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    83
rm -rf $RPM_BUILD_ROOT
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    84
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    85
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    86
make -i install DESTDIR=$RPM_BUILD_ROOT
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    87
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    88
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    89
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    90
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    91
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    92
%clean
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    93
rm -rf $RPM_BUILD_ROOT
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    94
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    95
%post
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    96
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    97
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ospm-server.schemas >/dev/null
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    98
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    99
%files
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   100
%defattr(-,root,root)
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   101
%doc AUTHORS COPYING ChangeLog NEWS README
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   102
%doc docs/remote-desktop.txt
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   103
%doc docs/TODO
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   104
%{_bindir}/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   105
%{_libdir}/bonobo/servers/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   106
%{_libexecdir}/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   107
%{_datadir}/applications/
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   108
%{_datadir}/gnome/ospm/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   109
%{_datadir}/icons/
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   110
%{_datadir}/locale/*/LC_MESSAGES/*.mo
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   111
%config %{_sysconfdir}/gconf/schemas/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   112
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   113
%changelog
13293
d7a5628d840b 2008-08-27 Halton Huo <[email protected]>
halton
parents: 12912
diff changeset
   114
* Wed Aug 27 2008 - [email protected]
d7a5628d840b 2008-08-27 Halton Huo <[email protected]>
halton
parents: 12912
diff changeset
   115
- Bump to 1.4.1
12912
0a71ddb3f876 2008-07-24 Halton Huo <[email protected]>
halton
parents: 12309
diff changeset
   116
* Thu Jul 24 2008 - [email protected]
0a71ddb3f876 2008-07-24 Halton Huo <[email protected]>
halton
parents: 12309
diff changeset
   117
- Bump to 1.4.
0a71ddb3f876 2008-07-24 Halton Huo <[email protected]>
halton
parents: 12309
diff changeset
   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
b16d1d014bbd 2008-05-08 Takao Fujiwara <[email protected]>
fujiwara
parents: 12224
diff changeset
   121
* Thu May 08 2008 - [email protected]
b16d1d014bbd 2008-05-08 Takao Fujiwara <[email protected]>
fujiwara
parents: 12224
diff changeset
   122
- Add ospm-01-po.diff for cs.po
b16d1d014bbd 2008-05-08 Takao Fujiwara <[email protected]>
fujiwara
parents: 12224
diff changeset
   123
  Contributed l10n from Hana Zalska <[email protected]>
11888
757e19a58922 2008-03-21 Halton Huo <[email protected]>
halton
parents: 11390
diff changeset
   124
* Fri Mar 21 2008 - [email protected]
757e19a58922 2008-03-21 Halton Huo <[email protected]>
halton
parents: 11390
diff changeset
   125
- Bump to 0.2.1
757e19a58922 2008-03-21 Halton Huo <[email protected]>
halton
parents: 11390
diff changeset
   126
- Remove upstreamed patches: hal-miss-data.diff
757e19a58922 2008-03-21 Halton Huo <[email protected]>
halton
parents: 11390
diff changeset
   127
  freed-file-pointer.diff, queue-exists-on-system.diff
757e19a58922 2008-03-21 Halton Huo <[email protected]>
halton
parents: 11390
diff changeset
   128
  disable-hal-crash.diff
11294
d06300cf0435 2007-12-06 Halton Huo <[email protected]>
halton
parents: 11292
diff changeset
   129
* Wed Dec 06 2007 - [email protected]
d06300cf0435 2007-12-06 Halton Huo <[email protected]>
halton
parents: 11292
diff changeset
   130
  Added patch ospm-04-disable-hal-crash.diff to fix bugster 6633471.
11292
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   131
* Wed Dec 05 2007 - [email protected]
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   132
  Added patch ospm-03-queue-exists-on-system.diff 
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   133
* Tue Dec 04 2007 - [email protected]
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   134
- Modified ospm-02-freed-file-pointer.diff to include
11274
9c6741a6499d 2007-12-03 Ghee Teo <[email protected]>
gheet
parents: 11094
diff changeset
   135
  also printer to have MAXPATHLEN committed by Norm.
10316
8195b3e2b244 2007-08-15 Evan Yan <[email protected]>
evan
parents: 10177
diff changeset
   136
* Tue Aug 14 2007 - [email protected]
8195b3e2b244 2007-08-15 Evan Yan <[email protected]>
evan
parents: 10177
diff changeset
   137
- Add patch hal-miss-data.diff
10177
87b7df417303 * base-specs/ospm.spec: Bump to 0.2
evan
parents: 10121
diff changeset
   138
* Thu Jul 10 2007 - [email protected]
87b7df417303 * base-specs/ospm.spec: Bump to 0.2
evan
parents: 10121
diff changeset
   139
- Bump to version 0.2 and remove upstream patches
10121
a296126e2c51 * base-specs/ospm.spec: Add two patches.
halton
parents: 10095
diff changeset
   140
* Tue Jun 26 2007 - [email protected]
a296126e2c51 * base-specs/ospm.spec: Add two patches.
halton
parents: 10095
diff changeset
   141
- Add patches critical-warning.diff and quit-crash.diff
10095
20ae98556466 * base-specs/ospm.spec: Fix source url error.
halton
parents: 10092
diff changeset
   142
* Thu Jun 21 2007 - [email protected]
20ae98556466 * base-specs/ospm.spec: Fix source url error.
halton
parents: 10092
diff changeset
   143
- Fix source url error.
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   144
* Fri Apr 27 2007 - [email protected]
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   145
- Initial spec file