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