base-specs/ospm.spec
author gheet
Wed, 05 Dec 2007 13:48:49 +0000
changeset 11292 ef64d4b8ee52
parent 11274 9c6741a6499d
child 11294 d06300cf0435
permissions -rw-r--r--
2007-12-05 Ghee Teo <[email protected]> * patches/ospm-03-queue-exists-on-system.diff: base-specs/ospm.spec: Added patch to fix bugster#6591935
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
#
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     4
# Copyright (c) 2007 Sun Microsystems, Inc.
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
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
     9
#
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    10
Name:			ospm
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    11
License:		GPL
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    12
Group:			System/GUI/GNOME
10177
87b7df417303 * base-specs/ospm.spec: Bump to 0.2
evan
parents: 10121
diff changeset
    13
Version:		0.2
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    14
Release:		1
10121
a296126e2c51 * base-specs/ospm.spec: Add two patches.
halton
parents: 10095
diff changeset
    15
Distribution:	Java Desktop System
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    16
Vendor:			Sun Microsystems, Inc.
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    17
Summary:		GNOME Remote Desktop
10095
20ae98556466 * base-specs/ospm.spec: Fix source url error.
halton
parents: 10092
diff changeset
    18
Source:			http://dlc.sun.com/osol/jds/downloads/extras/%{name}-%{version}.tar.gz
10316
8195b3e2b244 2007-08-15 Evan Yan <[email protected]>
evan
parents: 10177
diff changeset
    19
# date:2007-08-14 owner:evan type:bug bugster:6586850
8195b3e2b244 2007-08-15 Evan Yan <[email protected]>
evan
parents: 10177
diff changeset
    20
Patch1:			%{name}-01-hal-miss-data.diff
11094
9e3909fa5e72 2007-10-31 Ghee Teo <[email protected]>
gheet
parents: 10316
diff changeset
    21
# date:2007-10-14 owner:gheet type:bug bugster:6617327
11274
9c6741a6499d 2007-12-03 Ghee Teo <[email protected]>
gheet
parents: 11094
diff changeset
    22
Patch2:			%{name}-02-freed-file-pointer-max-printer-name.diff
11292
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
    23
# date:2007-12-05 owner:gheet type:bug bugster:6591935
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
    24
Patch3:                 %{name}-03-queue-exists-on-system.diff
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
10316
8195b3e2b244 2007-08-15 Evan Yan <[email protected]>
evan
parents: 10177
diff changeset
    49
%patch1 -p0
11094
9e3909fa5e72 2007-10-31 Ghee Teo <[email protected]>
gheet
parents: 10316
diff changeset
    50
%patch2 -p1
11292
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
    51
%patch3 -p1
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    52
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    53
%build
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    54
%ifos linux
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    55
if [ -x /usr/bin/getconf ]; then
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    56
  CPUS=`getconf _NPROCESSORS_ONLN`
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    57
fi
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    58
%else
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    59
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    60
%endif
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    61
if test "x$CPUS" = "x" -o $CPUS = 0; then
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    62
  CPUS=1
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    63
fi
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    64
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    65
aclocal $ACLOCAL_FLAGS
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    66
libtoolize --force
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    67
intltoolize --force --automake
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    68
autoheader
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    69
automake -a -f -c --gnu
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    70
autoconf 
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    71
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    72
CFLAGS="$RPM_OPT_FLAGS"				\
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    73
./configure   --prefix=%{_prefix}		\
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    74
	      --sysconfdir=%{_sysconfdir}
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    75
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    76
make -j $CPUS
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    77
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    78
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    79
%install
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    80
rm -rf $RPM_BUILD_ROOT
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    81
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    82
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    83
make -i install DESTDIR=$RPM_BUILD_ROOT
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    84
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    85
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    86
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    87
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    88
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    89
%clean
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    90
rm -rf $RPM_BUILD_ROOT
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    91
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    92
%post
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    93
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    94
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ospm-server.schemas >/dev/null
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    95
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    96
%files
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    97
%defattr(-,root,root)
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    98
%doc AUTHORS COPYING ChangeLog NEWS README
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
    99
%doc docs/remote-desktop.txt
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   100
%doc docs/TODO
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   101
%{_bindir}/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   102
%{_libdir}/bonobo/servers/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   103
%{_libexecdir}/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   104
%{_datadir}/applications/
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   105
%{_datadir}/gnome/ospm/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   106
%{_datadir}/icons/
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   107
%{_datadir}/locale/*/LC_MESSAGES/*.mo
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   108
%config %{_sysconfdir}/gconf/schemas/*
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   109
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   110
%changelog
11292
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   111
* Wed Dec 05 2007 - [email protected]
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   112
  Added patch ospm-03-queue-exists-on-system.diff 
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   113
* Tue Dec 04 2007 - [email protected]
ef64d4b8ee52 2007-12-05 Ghee Teo <[email protected]>
gheet
parents: 11274
diff changeset
   114
- Modified ospm-02-freed-file-pointer.diff to include
11274
9c6741a6499d 2007-12-03 Ghee Teo <[email protected]>
gheet
parents: 11094
diff changeset
   115
  also printer to have MAXPATHLEN committed by Norm.
10316
8195b3e2b244 2007-08-15 Evan Yan <[email protected]>
evan
parents: 10177
diff changeset
   116
* Tue Aug 14 2007 - [email protected]
8195b3e2b244 2007-08-15 Evan Yan <[email protected]>
evan
parents: 10177
diff changeset
   117
- Add patch hal-miss-data.diff
10177
87b7df417303 * base-specs/ospm.spec: Bump to 0.2
evan
parents: 10121
diff changeset
   118
* Thu Jul 10 2007 - [email protected]
87b7df417303 * base-specs/ospm.spec: Bump to 0.2
evan
parents: 10121
diff changeset
   119
- Bump to version 0.2 and remove upstream patches
10121
a296126e2c51 * base-specs/ospm.spec: Add two patches.
halton
parents: 10095
diff changeset
   120
* Tue Jun 26 2007 - [email protected]
a296126e2c51 * base-specs/ospm.spec: Add two patches.
halton
parents: 10095
diff changeset
   121
- Add patches critical-warning.diff and quit-crash.diff
10095
20ae98556466 * base-specs/ospm.spec: Fix source url error.
halton
parents: 10092
diff changeset
   122
* Thu Jun 21 2007 - [email protected]
20ae98556466 * base-specs/ospm.spec: Fix source url error.
halton
parents: 10092
diff changeset
   123
- Fix source url error.
10092
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   124
* Fri Apr 27 2007 - [email protected]
0e4af03bd2d7 New spec files for ospm project.
halton
parents:
diff changeset
   125
- Initial spec file