SUNWbabl.spec
author bewitche
Fri, 22 May 2009 06:20:19 +0000
changeset 15797 5e28b4b6e2be
parent 15504 64a3820cf2fc
child 15963 de8e59307496
permissions -rw-r--r--
2009-05-22 Chris Wang <[email protected]> * SUNWbabl.spec: Change Require package to SUNWglib2-devel
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}
15178
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    23
Source:                  %{name}-manpages-0.1.tar.gz
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    24
SUNW_BaseDir:            %{_basedir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    25
SUNW_Copyright:		 SUNWbabl.copyright
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    26
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    27
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    28
%include default-depend.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    29
Requires:                SUNWgnome-libs
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    30
BuildRequires:           SUNWgnome-libs-devel
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    31
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    32
%package devel
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    33
Summary:                 %{summary} - development files
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    34
SUNW_BaseDir:            %{_basedir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    35
%include default-depend.inc
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    36
Requires: %name
15797
5e28b4b6e2be 2009-05-22 Chris Wang <[email protected]>
bewitche
parents: 15504
diff changeset
    37
Requires: SUNWglib2-devel
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    38
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    39
%prep
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    40
rm -rf %name-%version
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    41
mkdir %name-%version
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    42
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    43
mkdir %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    44
%babl_64.prep -d %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    45
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    46
mkdir %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    47
%babl.prep -d %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    48
cd %{_builddir}/%name-%version
15178
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    49
cd %{_builddir}/%name-%version
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    50
gzcat %SOURCE0 | tar -xf -
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    51
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    52
%build
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    53
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    54
%babl_64.build -d %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    55
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    56
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    57
%babl.build -d %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    58
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    59
%install
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    60
rm -rf $RPM_BUILD_ROOT
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    61
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    62
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    63
%babl_64.install -d %name-%version/%_arch64
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    64
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    65
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    66
%babl.install -d %name-%version/%{base_arch}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    67
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    68
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
15178
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    69
cd %{_builddir}/%name-%version/sun-manpages
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    70
make install DESTDIR=$RPM_BUILD_ROOT
14687
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
%clean
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    73
rm -rf $RPM_BUILD_ROOT
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    74
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    75
%files
15504
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
    76
%doc -d %{base_arch} babl-%{babl.version}/AUTHORS
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
    77
%doc -d %{base_arch} babl-%{babl.version}/README
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
    78
%doc(bzip2) -d %{base_arch} babl-%{babl.version}/ChangeLog
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
    79
%doc(bzip2) -d %{base_arch} babl-%{babl.version}/COPYING
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
    80
%doc(bzip2) -d %{base_arch} babl-%{babl.version}/NEWS
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
    81
%doc(bzip2) -d %{base_arch} babl-%{babl.version}/COPYING.LESSER
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
    82
%dir %attr (0755, root, other) %{_datadir}/doc
15056
63a666f81f38 2009-02-11 Chris Wang <[email protected]>
bewitche
parents: 14842
diff changeset
    83
%defattr (-, root, bin)
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    84
%dir %attr (0755, root, bin) %{_libdir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    85
%{_libdir}/lib*.so*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    86
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    87
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    88
%{_libdir}/%{_arch64}/lib*.so*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    89
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}/babl-0.0
14776
8174efc21fe1 2008-12-16 Chris Wang <[email protected]>
bewitche
parents: 14742
diff changeset
    90
%{_libdir}/%{_arch64}/babl-0.0/*.so*
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    91
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    92
%dir %attr (0755, root, bin) %{_libdir}/babl-0.0
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    93
%{_libdir}/babl-0.0/*.so*
15178
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    94
%dir %attr (0755, root, sys) %{_datadir}
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    95
%dir %attr (0755, root, bin) %{_mandir}
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
    96
%{_mandir}/*/*
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    97
%files devel
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    98
%defattr (-, root, bin)
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
    99
%dir %attr (0755, root, bin) %{_includedir}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   100
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   101
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0/babl
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   102
%{_includedir}/babl-0.0/babl/*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   103
%ifarch amd64 sparcv9
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   104
%dir %attr (0755, root, bin) %dir %{_libdir}/%{_arch64}
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   105
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   106
%{_libdir}/%{_arch64}/pkgconfig/*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   107
%endif
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   108
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   109
%{_libdir}/pkgconfig/*
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   110
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   111
%changelog
15797
5e28b4b6e2be 2009-05-22 Chris Wang <[email protected]>
bewitche
parents: 15504
diff changeset
   112
* Fri May 22 2009  [email protected]
5e28b4b6e2be 2009-05-22 Chris Wang <[email protected]>
bewitche
parents: 15504
diff changeset
   113
- Change devel pacakge depandency to SUNWglib2-devel
15504
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
   114
* Thu Mar 26 2009  [email protected]
64a3820cf2fc 2009-03-26 Chris Wang <[email protected]>
bewitche
parents: 15178
diff changeset
   115
- Correct copyright file
15178
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
   116
* Fri Feb 20 2009  [email protected]
878f06faf3b6 2009-02-20 Chris Wang <[email protected]>
bewitche
parents: 15056
diff changeset
   117
- Add manpage
14776
8174efc21fe1 2008-12-16 Chris Wang <[email protected]>
bewitche
parents: 14742
diff changeset
   118
* Tue Dec 16 2008 - [email protected]
8174efc21fe1 2008-12-16 Chris Wang <[email protected]>
bewitche
parents: 14742
diff changeset
   119
- Fix SparcV9 file section problem
14687
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   120
* Fri Nov 18 2008 - [email protected]
fcb253179759 2008-12-02 Chris Wang <[email protected]>
bewitche
parents:
diff changeset
   121
- Create