16339
|
1 |
#
|
|
2 |
# spec file for package gobject-introspection
|
|
3 |
#
|
|
4 |
# Copyright 2009 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner yippi
|
16339
|
9 |
#
|
|
10 |
%{?!pythonver:%define pythonver 2.6}
|
|
11 |
|
|
12 |
Name: gobject-introspection
|
|
13 |
License: LGPL v2+ (giscanner) and GPL v2+ (tools)
|
|
14 |
Group: Libraries
|
|
15 |
Version: 0.6.4
|
|
16 |
Release: 1
|
|
17 |
Distribution: Java Desktop System
|
|
18 |
Vendor: Sun Microsystems, Inc.
|
|
19 |
Summary: Introspection for GObject libraries
|
|
20 |
URL: http://live.gnome.org/GObjectIntrospection
|
|
21 |
Source: http://download.gnome.org/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
|
16411
|
22 |
#owner:halton date:2009-08-25 type:bug bugzilla:592968 status:upstreamed
|
16339
|
23 |
Patch1: gobject-introspection-01-libtool.diff
|
16411
|
24 |
# This patch is only need with CBE 1.6.x.
|
|
25 |
# CBE 1.6.x set LD, while CBE 1.7 does not.
|
|
26 |
# When LD is set, the dumper will crash
|
16420
|
27 |
#owner:halton date:2009-08-29 type:bug bugzilla:593599
|
16411
|
28 |
Patch2: gobject-introspection-02-LD.diff
|
16424
|
29 |
#owner:halton date:2009-08-31 type:bug bugzilla:593639
|
|
30 |
Patch3: gobject-introspection-03-64bit.diff
|
16339
|
31 |
|
|
32 |
BuildRequires: autoconf >= 2.59
|
|
33 |
BuildRequires: automake >= 1:1.8
|
|
34 |
BuildRequires: bison
|
|
35 |
BuildRequires: glib2-devel >= 1:2.16.0
|
|
36 |
BuildRequires: libffi-devel
|
|
37 |
BuildRequires: libtool
|
|
38 |
BuildRequires: pkgconfig
|
|
39 |
BuildRequires: python >= 1:2.5
|
|
40 |
BuildRequires: python-devel >= 1:2.5
|
|
41 |
|
|
42 |
%description
|
|
43 |
Tools for introspecting GObject-based frameworks.
|
|
44 |
|
|
45 |
%package devel
|
|
46 |
Summary: Header files for gobject-introspection
|
|
47 |
Group: Development/Libraries
|
|
48 |
Requires: %{name}-libs = %{version}-%{release}
|
|
49 |
Requires: glib2-devel >= 2.16.0
|
|
50 |
|
|
51 |
%description devel
|
|
52 |
Header files for gobject-introspection.
|
|
53 |
|
|
54 |
%package static
|
|
55 |
Summary: Static gobject-introspection library
|
|
56 |
Group: Development/Libraries
|
|
57 |
Requires: %{name}-devel = %{version}-%{release}
|
|
58 |
|
|
59 |
%description static
|
|
60 |
Static gobject-introspection library.
|
|
61 |
|
|
62 |
%prep
|
|
63 |
%setup -q
|
|
64 |
%patch1 -p1
|
16411
|
65 |
%patch2 -p1
|
16424
|
66 |
%patch3 -p1
|
16339
|
67 |
|
|
68 |
#FIXME: When #590802 fixed in next release, remove following lines
|
|
69 |
rm -f m4/lt~obsolete.m4
|
|
70 |
rm -f m4/ltoptions.m4
|
|
71 |
rm -f m4/libtool.m4
|
|
72 |
rm -f m4/ltsugar.m4
|
|
73 |
rm -f m4/ltversion.m4
|
|
74 |
|
|
75 |
%build
|
|
76 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
77 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
78 |
CPUS=1
|
|
79 |
fi
|
|
80 |
|
16424
|
81 |
export PYTHON=%{_bindir}/python%{pythonver}
|
16339
|
82 |
|
|
83 |
libtoolize --copy --force
|
|
84 |
aclocal $ACLOCAL_FLAGS -I m4
|
|
85 |
autoheader
|
|
86 |
automake -a -c -f
|
|
87 |
autoconf
|
|
88 |
|
16424
|
89 |
./configure --prefix=%{_prefix} \
|
|
90 |
--bindir=%{_bindir} \
|
|
91 |
--libdir=%{_libdir} \
|
|
92 |
--includedir=%{_includedir} \
|
|
93 |
--sysconfdir=%{_sysconfdir} \
|
16339
|
94 |
--mandir=%{_mandir}
|
|
95 |
|
16424
|
96 |
make -j $CPU
|
16339
|
97 |
|
|
98 |
%install
|
|
99 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
100 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
101 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
102 |
|
|
103 |
%clean
|
|
104 |
rm -rf $RPM_BUILD_ROOT
|
|
105 |
|
|
106 |
%post libs -p /sbin/ldconfig
|
|
107 |
%postun libs -p /sbin/ldconfig
|
|
108 |
|
|
109 |
%files
|
|
110 |
%defattr(-,root,root)
|
|
111 |
%doc AUTHORS ChangeLog README
|
|
112 |
%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so.1.0.0
|
|
113 |
%attr(755,root,root) %ghost %{_libdir}/libgirepository-everything-1.0.so.1
|
|
114 |
%attr(755,root,root) %{_libdir}/libgirepository-1.0.so.0.0.0
|
|
115 |
%attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.0
|
|
116 |
%dir %{_libdir}/girepository-1.0
|
|
117 |
%{_libdir}/girepository-1.0/*.typelib
|
|
118 |
|
|
119 |
%defattr(-,root,root)
|
|
120 |
%attr(755,root,root) %{_bindir}/g-ir-compiler
|
|
121 |
%attr(755,root,root) %{_bindir}/g-ir-generate
|
|
122 |
%attr(755,root,root) %{_bindir}/g-ir-scanner
|
|
123 |
%{_mandir}/man1/g-ir-compiler.1*
|
|
124 |
%{_mandir}/man1/g-ir-generate.1*
|
|
125 |
%{_mandir}/man1/g-ir-scanner.1*
|
|
126 |
%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so
|
|
127 |
%attr(755,root,root) %{_libdir}/libgirepository-1.0.so
|
|
128 |
%{_libdir}/pkgconfig/gobject-introspection-1.0.pc
|
|
129 |
%{_includedir}/gobject-introspection-1.0
|
|
130 |
%{_libdir}/libgirepository-1.0.la
|
|
131 |
%{_libdir}/libgirepository-everything-1.0.la
|
|
132 |
%{_datadir}/aclocal/introspection.m4
|
|
133 |
%dir %{_datadir}/gir-1.0
|
|
134 |
%{_datadir}/gir-1.0/*.gir
|
|
135 |
|
|
136 |
%files static
|
|
137 |
%defattr(-,root,root)
|
|
138 |
%{_libdir}/libgirepository-1.0.a
|
|
139 |
%{_libdir}/libgirepository-everything-1.0.a
|
|
140 |
|
|
141 |
%changelog
|
16424
|
142 |
* Mon Aug 31 2009 - [email protected]
|
|
143 |
- Add patch -64bit to fix 64 bit issue. Bugzilla #593639.
|
16411
|
144 |
* Sat Aug 29 2009 - [email protected]
|
|
145 |
- Add patch -LD.diff to fix build issue with CBE 1.6.x
|
16339
|
146 |
* Mon Aug 24 2009 - [email protected]
|
|
147 |
- Initial version.
|