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