9397
|
1 |
#
|
|
2 |
# spec file for package SUNWliboil
|
|
3 |
#
|
|
4 |
# includes module(s): liboil
|
|
5 |
#
|
11937
|
6 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: yippi
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use liboil = liboil.spec
|
|
15 |
|
|
16 |
Name: SUNWliboil
|
|
17 |
Summary: GNOME structured file library
|
|
18 |
Version: %{liboil.version}
|
|
19 |
SUNW_BaseDir: %{_basedir}
|
11937
|
20 |
SUNW_Copyright: %{name}.copyright
|
9397
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
|
|
23 |
%include default-depend.inc
|
|
24 |
Requires: SUNWgnome-base-libs
|
|
25 |
Requires: SUNWlibms
|
|
26 |
BuildRequires: SUNWgnome-base-libs
|
|
27 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
28 |
%ifarch amd64 i386
|
|
29 |
BuildRequires: SUNWgcc
|
9568
|
30 |
Requires: SUNWgccruntime
|
9397
|
31 |
%endif
|
|
32 |
|
|
33 |
%package devel
|
|
34 |
Summary: %{summary} - development files
|
|
35 |
SUNW_BaseDir: %{_basedir}
|
|
36 |
%include default-depend.inc
|
|
37 |
|
|
38 |
%prep
|
|
39 |
rm -rf %name-%version
|
|
40 |
mkdir %name-%version
|
|
41 |
%liboil.prep -d %name-%version
|
|
42 |
|
|
43 |
# Note, on x86 build with gcc since liboil contains GCC-style assembly
|
|
44 |
# code which won't compile with Sun Studio. For better performance,
|
|
45 |
# we use GCC here.
|
|
46 |
#
|
|
47 |
%build
|
|
48 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
49 |
export CFLAGS="%optflags"
|
|
50 |
export LDFLAGS="%_ldflags"
|
|
51 |
%ifarch i386
|
|
52 |
export CC=gcc
|
9586
|
53 |
export CFLAGS="-O2 -march=i586 -Xlinker -i -fno-omit-frame-pointer -fPIC -DPIC"
|
9397
|
54 |
%endif
|
|
55 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
56 |
%liboil.build -d %name-%version
|
|
57 |
|
|
58 |
%install
|
|
59 |
%liboil.install -d %name-%version
|
|
60 |
|
|
61 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
62 |
|
|
63 |
%clean
|
|
64 |
rm -rf $RPM_BUILD_ROOT
|
|
65 |
|
|
66 |
%files
|
|
67 |
%defattr (-, root, bin)
|
|
68 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
69 |
%{_bindir}/*
|
|
70 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
71 |
%{_libdir}/lib*.so*
|
|
72 |
|
|
73 |
%files devel
|
|
74 |
%defattr (-, root, bin)
|
|
75 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
76 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
77 |
%{_includedir}/*
|
|
78 |
%{_datadir}/gtk-doc/html/*
|
|
79 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
80 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
81 |
%{_libdir}/pkgconfig/*
|
|
82 |
|
|
83 |
%changelog
|
11937
|
84 |
* Thu Mar 27 2008 - [email protected]
|
|
85 |
- Add SUNW_Copyright.
|
9586
|
86 |
* Mon Mar 19 2007 - [email protected]
|
|
87 |
- Fixed -fno-omit-frame-pointer flag
|
9568
|
88 |
* Thu Mar 15 2007 - [email protected]
|
|
89 |
- Add Requires SUNWgccruntime after check-deps.pl run.
|
|
90 |
* Mon Feb 12 2007 - [email protected]
|
9397
|
91 |
- Fix building with gcc based on Laca's comments.
|
9568
|
92 |
* Wed Jan 31 2007 - [email protected]
|
9397
|
93 |
- Build with gcc so that on x86 we compile hardware acceleration GCC asm code.
|
9568
|
94 |
* Wed Jun 14 2007 - [email protected]
|
9397
|
95 |
- Add new bindir files included in 0.3.9.
|
|
96 |
* Sun Jun 11 2006 - [email protected]
|
|
97 |
- change group from other to bin/sys
|
|
98 |
* Thu May 11 2006 - [email protected]
|
|
99 |
- Change build dependency on SUNWgnome-base-libs-share. That pkg is obsolete
|
|
100 |
with files now in the base package.
|
|
101 |
* Thu Mar 23 2006 - [email protected]
|
|
102 |
- Updated Package Summary
|
|
103 |
* Fri Mar 17 2006 - [email protected]
|
|
104 |
- Updated Package Summary
|
|
105 |
* Fri Feb 17 2006 - [email protected]
|
|
106 |
- Update Build/Requires after running check-deps.pl script.
|
|
107 |
* Wed Oct 26 2005 - [email protected]
|
|
108 |
- Created.
|