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