SUNWbabl.spec
author bewitche
Wed, 10 Dec 2008 05:25:47 +0000
changeset 14742 a123b6d9bd37
parent 14687 fcb253179759
child 14776 8174efc21fe1
permissions -rw-r--r--
2008-12-10 Chris Wnag <[email protected]> * SUNWbabl.spec: remove l10n package files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     1
#
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     2
# spec file for package SUNWbabl
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     3
#
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     4
# includes module(s): babl
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     5
#
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     6
# Copyright 2008 Sun Microsystems, Inc.
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     8
# package are under the same license as the package itself.
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
     9
#
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    10
# Owner: bewitche
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    11
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    12
%include Solaris.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    13
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    14
%include arch64.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    15
%use babl_64 = babl.spec
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    16
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    17
%include base.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    18
%use babl = babl.spec
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    19
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    20
Name:                    SUNWbabl
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    21
Summary:                 Babl is a dynamic, any to any, pixel format conversion library.
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    22
Version:                 %{default_pkg_version}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    23
SUNW_BaseDir:            %{_basedir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    24
SUNW_Copyright:		 SUNWbabl.copyright
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    25
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    26
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    27
%include default-depend.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    28
Requires:                SUNWgnome-libs
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    29
BuildRequires:           SUNWgnome-libs-devel
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    30
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    31
%package devel
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    32
Summary:                 %{summary} - development files
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    33
SUNW_BaseDir:            %{_basedir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    34
%include default-depend.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    35
Requires: %name
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    36
Requires: SUNWgnome-libs-devel
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    37
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    38
%if %build_l10n
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    39
%package l10n
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    40
Summary:                 %{summary} - l10n files
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    41
SUNW_BaseDir:            %{_basedir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    42
%include default-depend.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    43
Requires:                %{name}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    44
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    45
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    46
%prep
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    47
rm -rf %name-%version
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    48
mkdir %name-%version
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    49
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    50
mkdir %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    51
%babl_64.prep -d %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    52
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    53
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    54
mkdir %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    55
%babl.prep -d %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    56
cd %{_builddir}/%name-%version
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    57
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    58
%build
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    59
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    60
%babl_64.build -d %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    61
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    62
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    63
%babl.build -d %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    65
%install
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    66
rm -rf $RPM_BUILD_ROOT
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    67
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    68
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    69
%babl_64.install -d %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    70
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    71
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    72
%babl.install -d %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    73
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    74
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    75
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    76
%if %build_l10n
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    77
%else
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    78
# REMOVE l10n FILES
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    79
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    80
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    81
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    82
%clean
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    83
rm -rf $RPM_BUILD_ROOT
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    84
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    85
%files
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    86
%dir %attr (0755, root, bin) %{_libdir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    87
%{_libdir}/lib*.so*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    88
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    89
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    90
%{_libdir}/%{_arch64}/lib*.so*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    91
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}/babl-0.0
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    92
%{_libdir}/amd64/babl-0.0/*.so*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    93
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    94
%dir %attr (0755, root, bin) %{_libdir}/babl-0.0
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    95
%{_libdir}/babl-0.0/*.so*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    96
%files devel
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    97
%defattr (-, root, bin)
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    98
%dir %attr (0755, root, bin) %{_includedir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    99
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   100
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0/babl
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   101
%{_includedir}/babl-0.0/babl/*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   102
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   103
%dir %attr (0755, root, bin) %dir %{_libdir}/%{_arch64}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   104
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   105
%{_libdir}/%{_arch64}/pkgconfig/*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   106
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   107
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   108
%{_libdir}/pkgconfig/*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   109
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   110
%if %build_l10n
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   111
%files l10n
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   112
%defattr (-, root, bin)
14742
a123b6d9bd37 2008-12-10 Chris Wnag <[email protected]>
bewitche
parents: 14687
diff changeset
   113
#%dir %attr (0755, root, sys) %{_datadir}
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   114
#%attr (-, root, other) %{_datadir}/locale
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   115
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   116
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   117
%changelog
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   118
* Fri Nov 18 2008 - [email protected]
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   119
- Create