base-specs/cairomm.spec
author Jon Tibble <meths@btinternet.com>
Thu, 15 Mar 2012 09:58:35 +0000
branchs11express-2010-11
changeset 22104 cde243cbe3f6
parent 17893 36619080451b
child 18253 b38a15c23c98
permissions -rw-r--r--
Added tag oi_151a_prestable2 for changeset 47b3f775541a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     1
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     2
# spec file for package cairomm 
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     3
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     4
# Copyright 2008 Sun Microsystems, Inc.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
# package are under the same license as the package itself.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16425
diff changeset
     8
%define owner gheet
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     9
#
16425
d6ed2a48e85f 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16078
diff changeset
    10
d6ed2a48e85f 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16078
diff changeset
    11
%define OSR 8314:1.4.6
d6ed2a48e85f 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16078
diff changeset
    12
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
Name:                    cairomm
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
License:		 LGPL
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    15
Group:			 System/Libraries
16078
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    16
Version:                 1.8.2
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    17
Release:		 1
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    18
Distribution:		 Java Desktop System
17893
36619080451b 2010-04-21 Christian Kelly <[email protected]>
chrisk
parents: 17881
diff changeset
    19
Vendor:			 cairographics.org/cairomm
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    20
Summary:                 cairomm - C++ API for the Cairo Graphics Library
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
URL:                     http://cairographics.org/cairomm/
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
Source:                  http://cairographics.org/releases/cairomm-%{version}.tar.gz
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    24
Requires: cairo
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    25
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    26
%package devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    27
Summary:                 %{summary} - development files
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    28
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
%prep
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
%setup -q -n cairomm-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    32
%build
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
if test "x$CPUS" = "x" -o $CPUS = 0; then
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
    CPUS=1
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
fi
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    37
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
            --libdir=%{_libdir}              \
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
            --libexecdir=%{_libexecdir}      \
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    41
            --sysconfdir=%{_sysconfdir} 	\
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    42
	    --disable-python 		\
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    43
	    --disable-docs
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    44
make -j$CPUS 
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    45
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    46
%install
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    47
make install DESTDIR=$RPM_BUILD_ROOT
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    48
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    49
# Copied the example programs and binaries for testing
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/pdf-surface
16078
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    51
cp examples/surfaces/pdf-surface.cc $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/pdf-surface
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    52
cp examples/surfaces/.libs/pdf-surface $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/pdf-surface
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    53
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/png-file
16078
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    55
cp examples/surfaces/image-surface.cc $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/png-file
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    56
cp examples/surfaces/.libs/image-surface $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/png-file
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/ps-surface
16078
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    59
cp examples/surfaces/ps-surface.cc $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/ps-surface
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    60
cp examples/surfaces/.libs/ps-surface $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/ps-surface
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    61
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    62
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/svg-surface
16078
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    63
cp examples/surfaces/svg-surface.cc $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/svg-surface
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    64
cp examples/surfaces/.libs/svg-surface $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/svg-surface
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    65
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    66
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/text-rotate
16078
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    67
cp examples/text/text-rotate.cc $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/text-rotate
fa89833db2f7 2009-07-21 Ghee Teo <[email protected]>
gheet
parents: 11851
diff changeset
    68
cp examples/text/.libs/text-rotate $RPM_BUILD_ROOT/%{_datadir}/doc/cairomm/examples/text-rotate
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    69
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    70
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    71
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    72
%clean
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    73
rm -rf $RPM_BUILD_ROOT
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    74
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    75
%changelog
11851
2c2e364373e7 2008-03-12 Damien Carbery <[email protected]>
dcarbery
parents: 11665
diff changeset
    76
* Wed Mar 12 2008 - [email protected]
2c2e364373e7 2008-03-12 Damien Carbery <[email protected]>
dcarbery
parents: 11665
diff changeset
    77
- Bump to 1.4.8.
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    78
* Tue Feb 19 2008 - [email protected]
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    79
- Modified according to review comments.
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    80
* Fri Feb 08 2008 - [email protected]
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    81
- Modified SFEcairomm.spec to make SUNWcairomm.spec and cairomm.spec