SUNWcairomm.spec
author xz159989
Sun, 02 Mar 2008 05:48:33 +0000
changeset 11773 b0c56dfc4139
parent 11665 72222dae5e8e
child 11996 8c03a9e45131
permissions -rw-r--r--
2008-03-02 simon.zheng <[email protected]> * SUNWcairomm.spec: * SUNWglibmm.spec: * SUNWgnome-power-manager.spec: * SUNWgtkmm.spec: * SUNWlibgc.spec: * SUNWlibgmime.spec: * SUNWsigcpp.spec: Correct package version number.
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 SUNWcairomm
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
# includes module(s): cairomm
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
#
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
     6
# Copyright 2008 Sun Microsystems, Inc.
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
     7
# This file and all modifications and additions to the pristine
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
     8
# package are under the same license as the package itself.
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
     9
#
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    10
# Owner: gheet
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    11
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
%include Solaris.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
%use cairomm = cairomm.spec
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    15
Name:                    SUNWcairomm
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    16
Summary:                 cairomm - C++ API for the Cairo Graphics Library
11773
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11665
diff changeset
    17
Version:                 %{cairomm.version}
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    18
SUNW_BaseDir:            %{_basedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    20
%include default-depend.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
Requires: SUNWgnome-base-libs
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
BuildRequires: SUNWgnome-base-libs-devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
Requires: SUNWsigcpp
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    24
BuildRequires: SUNWsigcpp-devel
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
SUNW_BaseDir:            %{_basedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
%include default-depend.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
Requires: %name
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
Requires: SUNWgnome-base-libs-devel
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    32
Requires: SUNWsigcpp-devel
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
%prep
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
rm -rf %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
mkdir %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    37
%cairomm.prep -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
%build
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    41
if test "x$CPUS" = "x" -o $CPUS = 0; then
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    42
    CPUS=1
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    43
fi
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    44
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    45
%if %cc_is_gcc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    46
%else
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    47
export CXX="${CXX} -norunpath"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    48
%endif
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    49
export CXXFLAGS="%cxx_optflags"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
export PERL_PATH=/usr/perl5/bin/perl
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    51
%cairomm.build -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    52
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    53
%install
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
rm -rf $RPM_BUILD_ROOT
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    55
%cairomm.install -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    56
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    59
%clean
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    60
rm -rf $RPM_BUILD_ROOT
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
%files
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    63
%defattr (-, root, bin)
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    64
%dir %attr (0755, root, bin) %{_libdir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    65
%{_libdir}/lib*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    66
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    67
%files devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    68
%defattr (-, root, bin)
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    69
%dir %attr (0755, root, bin) %{_libdir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    70
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    71
%{_libdir}/pkgconfig/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    72
%dir %attr (0755, root, sys) %{_datadir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    73
%dir %attr (0755, root, other) %{_datadir}/doc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    74
%{_datadir}/doc/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    75
%dir %attr (0755, root, bin) %{_includedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    76
%{_includedir}/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    77
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    78
%changelog
11773
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11665
diff changeset
    79
* Sun Mar 02 2008 - [email protected]
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11665
diff changeset
    80
- Correct package version number.
11665
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    81
* Tue Feb 19 2008 - [email protected]
72222dae5e8e 2008-02-19 Ghee Teo <[email protected]>
gheet
parents: 11624
diff changeset
    82
- Updated after review.
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    83
* Fri Jan 08 2008 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    84
- Modified SFEcairomm.spec to make SUNWcairomm.spec and cairomm.spec
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    85
* Mon Nov 12 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    86
- Bump to 1.4.6.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    87
* Wed Sep 19 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    88
- Bump to 1.4.4
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    89
* Fri Aug 17 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    90
- Bump to 1.4.2
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    91
* Sun Feb 25 2007 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    92
- create