SUNWbabl.spec
author an230044
Mon, 27 Sep 2010 11:32:21 +0000
branchopensolaris-2009-06
changeset 20102 2d19c462bb98
parent 14169 0befc11e485d
permissions -rw-r--r--
6917569 CVE-2008-5824 libaudiofile contains heap-based buffer overflow in msadpcm.c Committing for Rohini because of svn issues on opensolaris2009.06 branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14058
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     1
#
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     2
# spec file for package SUNWbabl
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     3
#
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     4
# includes module(s): babl
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     5
#
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     6
# Copyright 2008 Sun Microsystems, Inc.
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     8
# package are under the same license as the package itself.
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     9
#
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    10
# Owner: bewitche
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    11
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    12
%include Solaris.inc
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    13
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    14
%include arch64.inc
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    15
%use babl_64 = babl.spec
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    16
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    17
%include base.inc
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    18
%use babl = babl.spec
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    19
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    20
Name:                    SUNWbabl
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    21
Summary:                 Babl is a dynamic, any to any, pixel format conversion library.
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    22
Version:                 %{default_pkg_version}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    23
SUNW_BaseDir:            %{_basedir}
14138
0b6bb902830b 2009-01-06 Takao Fujiwara <[email protected]>
fujiwara
parents: 14107
diff changeset
    24
SUNW_Copyright:		 SUNWbabl.copyright
14058
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    25
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    26
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    27
%include default-depend.inc
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    28
Requires:                SUNWgnome-libs
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    29
BuildRequires:           SUNWgnome-libs-devel
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    30
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    31
%package devel
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    32
Summary:                 %{summary} - development files
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    33
SUNW_BaseDir:            %{_basedir}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    34
%include default-depend.inc
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    35
Requires: %name
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    36
Requires: SUNWgnome-libs-devel
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    37
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    38
%prep
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    39
rm -rf %name-%version
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    40
mkdir %name-%version
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    41
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    42
mkdir %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    43
%babl_64.prep -d %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    44
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    45
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    46
mkdir %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    47
%babl.prep -d %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    48
cd %{_builddir}/%name-%version
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    49
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    50
%build
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    51
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    52
%babl_64.build -d %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    53
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    54
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    55
%babl.build -d %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    56
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    57
%install
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    58
rm -rf $RPM_BUILD_ROOT
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    59
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    60
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    61
%babl_64.install -d %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    62
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    63
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    64
%babl.install -d %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    65
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    66
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    67
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    68
%clean
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    69
rm -rf $RPM_BUILD_ROOT
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    70
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    71
%files
14169
0befc11e485d Set default dir/file attribute for base pkg to correct invalid owner issue.
davelam
parents: 14138
diff changeset
    72
%defattr(-, root, bin)
14058
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    73
%dir %attr (0755, root, bin) %{_libdir}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    74
%{_libdir}/lib*.so*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    75
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    76
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    77
%{_libdir}/%{_arch64}/lib*.so*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    78
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}/babl-0.0
14107
f922732f4d55 2008-12-16 Chris Wang <[email protected]>
bewitche
parents: 14084
diff changeset
    79
%{_libdir}/%{_arch64}/babl-0.0/*.so*
14058
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    80
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    81
%dir %attr (0755, root, bin) %{_libdir}/babl-0.0
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    82
%{_libdir}/babl-0.0/*.so*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    83
%files devel
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    84
%defattr (-, root, bin)
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    85
%dir %attr (0755, root, bin) %{_includedir}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    86
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    87
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0/babl
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    88
%{_includedir}/babl-0.0/babl/*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    89
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    90
%dir %attr (0755, root, bin) %dir %{_libdir}/%{_arch64}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    91
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    92
%{_libdir}/%{_arch64}/pkgconfig/*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    93
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    94
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    95
%{_libdir}/pkgconfig/*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    96
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    97
%changelog
14169
0befc11e485d Set default dir/file attribute for base pkg to correct invalid owner issue.
davelam
parents: 14138
diff changeset
    98
* Thu Jan 15 2009 - [email protected]
0befc11e485d Set default dir/file attribute for base pkg to correct invalid owner issue.
davelam
parents: 14138
diff changeset
    99
- Set default dir/file attribute for base pkg to correct invalid owner issue.
14107
f922732f4d55 2008-12-16 Chris Wang <[email protected]>
bewitche
parents: 14084
diff changeset
   100
* Tue Dec 16 2008 - [email protected]
14138
0b6bb902830b 2009-01-06 Takao Fujiwara <[email protected]>
fujiwara
parents: 14107
diff changeset
   101
- Fix SparcV9 file section problem
14058
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   102
* Fri Nov 18 2008 - [email protected]
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   103
- Create