16339
|
1 |
#
|
|
2 |
# spec file for package SUNWgobject-introspection
|
|
3 |
#
|
|
4 |
# includes module(s): gobject-introspection
|
|
5 |
#
|
18574
|
6 |
# Copyright 2010 Sun Microsystems, Inc.
|
16339
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
16434
|
10 |
%define owner yippi
|
16339
|
11 |
#
|
|
12 |
# Note that there are some issues that you need to address to avoid build
|
|
13 |
# issues when building this module:
|
|
14 |
#
|
|
15 |
# 1) For some reason SUNWPython26.spec has a problem with ctypes that causes
|
|
16 |
# gobject-introspection to fail to build. Uninstalling and rebuilding this
|
|
17 |
# package from spec-files seems to fix this problem. Need to figure this
|
|
18 |
# out and get it fixed in the SUNWPython26 package.
|
|
19 |
#
|
|
20 |
|
|
21 |
%include Solaris.inc
|
|
22 |
|
|
23 |
%define pythonver 2.6
|
16424
|
24 |
|
|
25 |
%ifarch amd64 sparcv9
|
|
26 |
%include arch64.inc
|
|
27 |
%use gi_64 = gobject-introspection.spec
|
|
28 |
%endif
|
|
29 |
|
|
30 |
%include base.inc
|
16339
|
31 |
%use gi = gobject-introspection.spec
|
|
32 |
|
|
33 |
Name: SUNWgobject-introspection
|
|
34 |
Summary: gobject-introspection - GObject introspection support
|
|
35 |
Version: %{gi.version}
|
|
36 |
SUNW_Copyright: %{name}.copyright
|
|
37 |
SUNW_BaseDir: %{_basedir}
|
|
38 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
39 |
|
|
40 |
BuildRequires: SUNWPython26-devel
|
|
41 |
BuildRequires: SUNWglib2-devel
|
|
42 |
BuildRequires: SUNWlibffi
|
|
43 |
Requires: SUNWglib2
|
|
44 |
Requires: SUNWlibffi
|
|
45 |
Requires: SUNWPython26
|
|
46 |
%include default-depend.inc
|
|
47 |
|
|
48 |
%package devel
|
|
49 |
Summary: %{summary} - development files
|
|
50 |
SUNW_BaseDir: %{_basedir}
|
|
51 |
%include default-depend.inc
|
|
52 |
|
|
53 |
%prep
|
|
54 |
rm -rf %name-%version
|
16424
|
55 |
mkdir -p %name-%version
|
|
56 |
|
|
57 |
%ifarch amd64 sparcv9
|
|
58 |
mkdir %name-%version/%{_arch64}
|
|
59 |
%gi_64.prep -d %name-%version/%{_arch64}
|
|
60 |
%endif
|
|
61 |
|
|
62 |
mkdir %name-%version/%{base_arch}
|
|
63 |
%gi.prep -d %name-%version/%{base_arch}
|
16339
|
64 |
|
|
65 |
%build
|
16424
|
66 |
|
|
67 |
%ifarch amd64 sparcv9
|
|
68 |
export CFLAGS="%optflags64"
|
|
69 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
70 |
export LDFLAGS="$FLAG64"
|
|
71 |
export PKG_CONFIG_PATH="%_pkg_config_path64"
|
|
72 |
%gi_64.build -d %name-%version/%{_arch64}
|
|
73 |
%endif
|
|
74 |
|
16339
|
75 |
export CFLAGS="%optflags"
|
|
76 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
77 |
export LDFLAGS="%_ldflags"
|
16424
|
78 |
export PKG_CONFIG_PATH="%_pkg_config_path"
|
|
79 |
%gi.build -d %name-%version/%{base_arch}
|
16339
|
80 |
|
|
81 |
%install
|
|
82 |
rm -rf $RPM_BUILD_ROOT
|
16424
|
83 |
|
|
84 |
%ifarch amd64 sparcv9
|
|
85 |
%gi_64.install -d %name-%version/%{_arch64}
|
|
86 |
%endif
|
|
87 |
|
|
88 |
%gi.install -d %name-%version/%{base_arch}
|
16339
|
89 |
|
|
90 |
%clean
|
|
91 |
rm -rf $RPM_BUILD_ROOT
|
|
92 |
|
|
93 |
%files
|
|
94 |
%defattr (-, root, bin)
|
|
95 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
96 |
%{_bindir}/*
|
|
97 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
98 |
%{_libdir}/*.so*
|
|
99 |
%{_libdir}/girepository-1.0/*
|
|
100 |
%{_libdir}/gobject-introspection/*
|
16424
|
101 |
%ifarch amd64 sparcv9
|
|
102 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
103 |
%{_libdir}/%{_arch64}/*.so*
|
|
104 |
%{_libdir}/%{_arch64}/girepository-1.0/*
|
|
105 |
%{_libdir}/%{_arch64}/gobject-introspection/*
|
|
106 |
%endif
|
16339
|
107 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
108 |
%{_datadir}/gir-1.0
|
18532
|
109 |
%{_datadir}/gobject-introspection-1.0/*
|
16339
|
110 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
111 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
112 |
%{_mandir}/*/*
|
16424
|
113 |
%doc -d %{base_arch}/gobject-introspection-%{version} AUTHORS README COPYING
|
|
114 |
%doc(bzip2) -d %{base_arch}/gobject-introspection-%{version} COPYING.GPL COPYING.LGPL NEWS
|
16339
|
115 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
116 |
|
|
117 |
%files devel
|
|
118 |
%defattr (-, root, bin)
|
|
119 |
%dir %attr (0755, root, bin) %dir %{_libdir}
|
|
120 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
121 |
%{_libdir}/pkgconfig/*
|
16424
|
122 |
%ifarch amd64 sparcv9
|
|
123 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
124 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
125 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
|
126 |
%endif
|
16339
|
127 |
%dir %attr (0755, root, bin) %dir %{_includedir}
|
|
128 |
%{_includedir}/*
|
|
129 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
130 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
131 |
%{_datadir}/aclocal/*
|
|
132 |
|
|
133 |
%changelog
|
18532
|
134 |
* Fri Dec 18 2009 - [email protected]
|
|
135 |
- Fix packaging for 0.6.7.
|
16424
|
136 |
* Mon Aug 31 2009 - [email protected]
|
|
137 |
- Enable 64 bit
|
16339
|
138 |
* Mon Aug 24 2009 - [email protected]
|
|
139 |
- Move from SFE, spilit base part to base-specs/gobject-introspection
|
|
140 |
* Wed Aug 05 2009 - Halton Huo <[email protected]>
|
|
141 |
- Use 0.6.3 tarball release
|
|
142 |
- Add crash-compiler.diff to fix #587823
|
|
143 |
* Fri Jul 03 2009 - Brian Cameron <[email protected]
|
|
144 |
- Remove upstream patch gobject-introspection-01-union.diff,
|
|
145 |
renumber rest.
|
|
146 |
* Sat Apr 04 2009 - Brian Cameron <[email protected]>
|
|
147 |
- Created.
|