SUNWbabl.spec
author bewitche
Tue, 02 Dec 2008 10:02:27 +0000
branchgnome-2-24
changeset 14058 9c9ec2774def
child 14084 908e217bb460
permissions -rw-r--r--
2008-12-02 Chris Wang <[email protected]> * SUNWgegl.spec, copyrights/SUNWgegl.copyright base-sepcs/gegl.spec base-specs/gegl_64.spec patches/gegl-01-build.diff patches/gegl-02-make.diff Add gegl * SUNWbabl.spec copyrights/SUNWbabl.copyright base-specs/babl.spec patches/babl-01-soalris-build.diff patches/babl-02-inline-funcs.diff Add babl
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}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    24
SUNW_Copyright:		 SUNWflac.copyright
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
%if %build_l10n
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    39
%package l10n
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    40
Summary:                 %{summary} - l10n files
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    41
SUNW_BaseDir:            %{_basedir}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    42
%include default-depend.inc
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    43
Requires:                %{name}
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
%prep
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    47
rm -rf %name-%version
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    48
mkdir %name-%version
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    49
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    50
mkdir %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    51
%babl_64.prep -d %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    52
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    53
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    54
mkdir %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    55
%babl.prep -d %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    56
cd %{_builddir}/%name-%version
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    57
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    58
%build
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    59
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    60
%babl_64.build -d %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    61
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    62
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    63
%babl.build -d %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    65
%install
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    66
rm -rf $RPM_BUILD_ROOT
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
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    69
%babl_64.install -d %name-%version/%_arch64
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    70
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    71
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    72
%babl.install -d %name-%version/%{base_arch}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    73
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    74
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    75
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    76
%if %build_l10n
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    77
%else
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    78
# REMOVE l10n FILES
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    79
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
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
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    82
%clean
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    83
rm -rf $RPM_BUILD_ROOT
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    84
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    85
%files
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    86
%dir %attr (0755, root, bin) %{_libdir}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    87
%{_libdir}/lib*.so*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    88
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    89
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    90
%{_libdir}/%{_arch64}/lib*.so*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    91
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}/babl-0.0
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    92
%{_libdir}/amd64/babl-0.0/*.so*
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, bin) %{_libdir}/babl-0.0
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    95
%{_libdir}/babl-0.0/*.so*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    96
%files devel
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    97
%defattr (-, root, bin)
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    98
%dir %attr (0755, root, bin) %{_includedir}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    99
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   100
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0/babl
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   101
%{_includedir}/babl-0.0/babl/*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   102
%ifarch amd64 sparcv9
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   103
%dir %attr (0755, root, bin) %dir %{_libdir}/%{_arch64}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   104
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   105
%{_libdir}/%{_arch64}/pkgconfig/*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   106
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   107
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   108
%{_libdir}/pkgconfig/*
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   109
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   110
%if %build_l10n
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   111
%files l10n
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   112
%defattr (-, root, bin)
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   113
%dir %attr (0755, root, sys) %{_datadir}
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   114
#%attr (-, root, other) %{_datadir}/locale
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   115
%endif
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   116
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   117
%changelog
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   118
* Fri Nov 18 2008 - [email protected]
9c9ec2774def 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   119
- Create