SUNWliboil.spec
author ginnchen
Mon, 12 Apr 2010 08:07:21 +0000
branchgnome-2-28
changeset 18675 d625b72c91d8
parent 16434 f21f22550fe9
child 17283 709178528816
permissions -rw-r--r--
2010-04-12 Ginn Chen <[email protected]> * SUNWfirefox.spec: Fix the build issue of Firefox 3.6.3.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWliboil
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): liboil
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
11937
1c2548ce7ef9 2008-03-27 Brian Cameron <[email protected]>
yippi
parents: 9586
diff changeset
     6
# Copyright (c) 2008 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15650
diff changeset
    10
%define owner yippi
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%use liboil = liboil.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Name:                    SUNWliboil
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Summary:                 GNOME structured file library
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Version:                 %{liboil.version}
15191
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    19
Source:                  %{name}-manpages-0.1.tar.gz
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
SUNW_BaseDir:            %{_basedir}
11937
1c2548ce7ef9 2008-03-27 Brian Cameron <[email protected]>
yippi
parents: 9586
diff changeset
    21
SUNW_Copyright:          %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
Requires: SUNWlibms
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
%ifarch amd64 i386
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
BuildRequires: SUNWgcc
9568
deb9c2d524d2 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    28
Requires: SUNWgccruntime
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
mkdir %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%liboil.prep -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
15191
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    41
cd %{_builddir}/%name-%version
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    42
gzcat %SOURCE0 | tar xf -
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    43
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
# Note, on x86 build with gcc since liboil contains GCC-style assembly
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
# code which won't compile with Sun Studio.  For better performance,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
# we use GCC here.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
export PKG_CONFIG_PATH=%{_pkg_config_path}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
export CFLAGS="%optflags"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
export LDFLAGS="%_ldflags"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%ifarch i386
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
export CC=gcc
9586
21ec49e72013 2007-03-19 Doug Scott <[email protected]>
drdoug
parents: 9568
diff changeset
    54
export CFLAGS="-O2 -march=i586 -Xlinker -i -fno-omit-frame-pointer -fPIC -DPIC"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%liboil.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
%liboil.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
15191
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    62
rm -rf $RPM_BUILD_ROOT%{_mandir}
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    63
cd %{_builddir}/%name-%version/sun-manpages
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    64
make install DESTDIR=$RPM_BUILD_ROOT
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    65
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%{_libdir}/lib*.so*
13574
164d399fe546 2008-09-12 Brian Cameron <[email protected]>
yippi
parents: 11937
diff changeset
    77
%dir %attr (0755, root, sys) %{_datadir}
164d399fe546 2008-09-12 Brian Cameron <[email protected]>
yippi
parents: 11937
diff changeset
    78
%doc -d liboil-%{liboil.version} AUTHORS README
164d399fe546 2008-09-12 Brian Cameron <[email protected]>
yippi
parents: 11937
diff changeset
    79
%doc(bzip2) -d liboil-%{liboil.version} COPYING NEWS
13649
c8f5a54799c5 2008-09-18 Brian Cameron <[email protected]>
yippi
parents: 13580
diff changeset
    80
%dir %attr (0755, root, other) %{_datadir}/doc
15191
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    81
%dir %attr(0755, root, bin) %{_mandir}
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    82
%dir %attr(0755, root, bin) %{_mandir}/man1
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    83
%dir %attr(0755, root, bin) %{_mandir}/man3
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    84
%{_mandir}/man1/*
64a5e3c641c9 2009-02-20 Brian Cameron <[email protected]>
yippi
parents: 13649
diff changeset
    85
%{_mandir}/man3/*
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%{_datadir}/gtk-doc/html/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%changelog
13580
1e2182bde7de 2008-09-15 Christian Kelly <[email protected]>
chrisk
parents: 13574
diff changeset
    98
* Mon Sep 15 2008 - [email protected]
1e2182bde7de 2008-09-15 Christian Kelly <[email protected]>
chrisk
parents: 13574
diff changeset
    99
- Remove /usr/share/doc from %files.
11937
1c2548ce7ef9 2008-03-27 Brian Cameron <[email protected]>
yippi
parents: 9586
diff changeset
   100
* Thu Mar 27 2008 - [email protected]
1c2548ce7ef9 2008-03-27 Brian Cameron <[email protected]>
yippi
parents: 9586
diff changeset
   101
- Add SUNW_Copyright.
9586
21ec49e72013 2007-03-19 Doug Scott <[email protected]>
drdoug
parents: 9568
diff changeset
   102
* Mon Mar 19 2007 - [email protected]
21ec49e72013 2007-03-19 Doug Scott <[email protected]>
drdoug
parents: 9568
diff changeset
   103
- Fixed -fno-omit-frame-pointer flag
9568
deb9c2d524d2 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   104
* Thu Mar 15 2007 - [email protected]
deb9c2d524d2 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   105
- Add Requires SUNWgccruntime after check-deps.pl run.
deb9c2d524d2 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   106
* Mon Feb 12 2007 - [email protected]
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
- Fix building with gcc based on Laca's comments.
9568
deb9c2d524d2 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   108
* Wed Jan 31 2007 - [email protected]
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
- Build with gcc so that on x86 we compile hardware acceleration GCC asm code.
9568
deb9c2d524d2 2007-03-15 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   110
* Wed Jun 14 2007 - [email protected]
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
- Add new bindir files included in 0.3.9.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
* Sun Jun 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
- change group from other to bin/sys
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
* Thu May 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
- Change build dependency on SUNWgnome-base-libs-share. That pkg is obsolete
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
  with files now in the base package.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
* Thu Mar 23 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
- Updated Package Summary
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
* Fri Mar 17 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
- Updated Package Summary
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
* Fri Feb 17 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
- Update Build/Requires after running check-deps.pl script.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
* Wed Oct 26 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- Created.