author | gman |
Thu, 30 Sep 2010 21:37:28 +0000 | |
branch | gnome-2-30 |
changeset 20130 | c7dfc176dcbd |
parent 18338 | d47911796855 |
child 18208 | 31584e2ddc7d |
child 20193 | 73cee3bdda8a |
permissions | -rw-r--r-- |
16339 | 1 |
# |
2 |
# spec file for package gobject-introspection |
|
3 |
# |
|
17859 | 4 |
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
16339 | 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 |
17881 | 9 |
|
10 |
%define OSR LFI#105446 (gnome Exec. summary):n/a |
|
11 |
||
16339 | 12 |
# |
13 |
%{?!pythonver:%define pythonver 2.6} |
|
14 |
||
15 |
Name: gobject-introspection |
|
18010 | 16 |
License: LGPL v2+ (giscanner), GPL v2+ (tools), some MIT (giscanner) |
16339 | 17 |
Group: Libraries |
18153 | 18 |
Version: 0.6.14 |
16339 | 19 |
Release: 1 |
20 |
Distribution: Java Desktop System |
|
17864 | 21 |
Vendor: Gnome Community |
16339 | 22 |
Summary: Introspection for GObject libraries |
23 |
URL: http://live.gnome.org/GObjectIntrospection |
|
24 |
Source: http://download.gnome.org/sources/%{name}/0.6/%{name}-%{version}.tar.bz2 |
|
17821 | 25 |
# We only deliver one set of the Python files, so it is necessary to modify |
26 |
# /usr/bin/amd64/g-ir-scanner to point to the right python files. |
|
27 |
# date:2010-04-09 owner:yippi type:feature |
|
28 |
Patch1: gobject-introspection-01-amd64.diff |
|
18338
d47911796855
Add this patch to disalbe building tests/scanner to workaround core dump
davelam
parents:
18153
diff
changeset
|
29 |
# Add this patch to disalbe building tests/scanner to workaround core dump |
d47911796855
Add this patch to disalbe building tests/scanner to workaround core dump
davelam
parents:
18153
diff
changeset
|
30 |
# date:2010-06-30 owner:davelam type:bug |
d47911796855
Add this patch to disalbe building tests/scanner to workaround core dump
davelam
parents:
18153
diff
changeset
|
31 |
Patch2: gobject-introspection-02-test-scanner.diff |
16339 | 32 |
|
33 |
BuildRequires: autoconf >= 2.59 |
|
34 |
BuildRequires: automake >= 1:1.8 |
|
35 |
BuildRequires: bison |
|
36 |
BuildRequires: glib2-devel >= 1:2.16.0 |
|
37 |
BuildRequires: libffi-devel |
|
38 |
BuildRequires: libtool |
|
39 |
BuildRequires: pkgconfig |
|
40 |
BuildRequires: python >= 1:2.5 |
|
41 |
BuildRequires: python-devel >= 1:2.5 |
|
42 |
||
43 |
%description |
|
44 |
Tools for introspecting GObject-based frameworks. |
|
45 |
||
46 |
%package devel |
|
47 |
Summary: Header files for gobject-introspection |
|
48 |
Group: Development/Libraries |
|
49 |
Requires: %{name}-libs = %{version}-%{release} |
|
50 |
Requires: glib2-devel >= 2.16.0 |
|
51 |
||
52 |
%description devel |
|
53 |
Header files for gobject-introspection. |
|
54 |
||
55 |
%package static |
|
56 |
Summary: Static gobject-introspection library |
|
57 |
Group: Development/Libraries |
|
58 |
Requires: %{name}-devel = %{version}-%{release} |
|
59 |
||
60 |
%description static |
|
61 |
Static gobject-introspection library. |
|
62 |
||
63 |
%prep |
|
64 |
%setup -q |
|
17821 | 65 |
%patch1 -p1 |
18338
d47911796855
Add this patch to disalbe building tests/scanner to workaround core dump
davelam
parents:
18153
diff
changeset
|
66 |
%patch2 -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 |
|
17514 | 83 |
#substitute python to 2.6, CR6924142 |
84 |
pyfiles=" |
|
85 |
giscanner/shlibs.py |
|
86 |
giscanner/scannermain.py |
|
87 |
" |
|
88 |
||
89 |
for i in $pyfiles |
|
90 |
do |
|
91 |
sed -e s,/usr/bin/env\ python,$PYTHON, $i > $i.new |
|
92 |
mv $i.new $i |
|
93 |
done |
|
94 |
||
16339 | 95 |
libtoolize --copy --force |
96 |
aclocal $ACLOCAL_FLAGS -I m4 |
|
97 |
autoheader |
|
98 |
automake -a -c -f |
|
99 |
autoconf |
|
100 |
||
16424 | 101 |
./configure --prefix=%{_prefix} \ |
102 |
--bindir=%{_bindir} \ |
|
103 |
--libdir=%{_libdir} \ |
|
104 |
--includedir=%{_includedir} \ |
|
105 |
--sysconfdir=%{_sysconfdir} \ |
|
18338
d47911796855
Add this patch to disalbe building tests/scanner to workaround core dump
davelam
parents:
18153
diff
changeset
|
106 |
--mandir=%{_mandir} \ |
d47911796855
Add this patch to disalbe building tests/scanner to workaround core dump
davelam
parents:
18153
diff
changeset
|
107 |
--disable-tests |
16339 | 108 |
|
17869 | 109 |
# disable parallel builds as it's broken for 0.6.10 |
110 |
#gmake -j $CPU |
|
111 |
gmake |
|
16339 | 112 |
|
113 |
%install |
|
17450 | 114 |
gmake install DESTDIR=$RPM_BUILD_ROOT |
16339 | 115 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
116 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
117 |
||
17514 | 118 |
find $RPM_BUILD_ROOT -type f -name "*.pyc" -exec rm -f {} ';' |
119 |
find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';' |
|
120 |
||
16339 | 121 |
%clean |
122 |
rm -rf $RPM_BUILD_ROOT |
|
123 |
||
124 |
%post libs -p /sbin/ldconfig |
|
125 |
%postun libs -p /sbin/ldconfig |
|
126 |
||
127 |
%files |
|
128 |
%defattr(-,root,root) |
|
129 |
%doc AUTHORS ChangeLog README |
|
130 |
%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so.1.0.0 |
|
131 |
%attr(755,root,root) %ghost %{_libdir}/libgirepository-everything-1.0.so.1 |
|
132 |
%attr(755,root,root) %{_libdir}/libgirepository-1.0.so.0.0.0 |
|
133 |
%attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.0 |
|
134 |
%dir %{_libdir}/girepository-1.0 |
|
135 |
%{_libdir}/girepository-1.0/*.typelib |
|
136 |
||
137 |
%defattr(-,root,root) |
|
138 |
%attr(755,root,root) %{_bindir}/g-ir-compiler |
|
139 |
%attr(755,root,root) %{_bindir}/g-ir-generate |
|
140 |
%attr(755,root,root) %{_bindir}/g-ir-scanner |
|
141 |
%{_mandir}/man1/g-ir-compiler.1* |
|
142 |
%{_mandir}/man1/g-ir-generate.1* |
|
143 |
%{_mandir}/man1/g-ir-scanner.1* |
|
144 |
%attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so |
|
145 |
%attr(755,root,root) %{_libdir}/libgirepository-1.0.so |
|
146 |
%{_libdir}/pkgconfig/gobject-introspection-1.0.pc |
|
147 |
%{_includedir}/gobject-introspection-1.0 |
|
148 |
%{_libdir}/libgirepository-1.0.la |
|
149 |
%{_libdir}/libgirepository-everything-1.0.la |
|
150 |
%{_datadir}/aclocal/introspection.m4 |
|
151 |
%dir %{_datadir}/gir-1.0 |
|
152 |
%{_datadir}/gir-1.0/*.gir |
|
153 |
||
154 |
%files static |
|
155 |
%defattr(-,root,root) |
|
156 |
%{_libdir}/libgirepository-1.0.a |
|
157 |
%{_libdir}/libgirepository-everything-1.0.a |
|
158 |
||
159 |
%changelog |
|
18153 | 160 |
* Mon Jun 21 2010 - [email protected] |
161 |
- Bump to 0.6.14. |
|
18053 | 162 |
* Fri May 28 2010 - [email protected] |
18055 | 163 |
- Bump to 0.6.12. I found a clutter patch to fix the build problem so it |
164 |
builds okay with the latest gobject-introspection. |
|
165 |
* Fri May 28 2010 - [email protected] |
|
18053 | 166 |
- Unbump to 0.6.10. Turns out that the new version causes clutter to not |
167 |
compile. I noticed 0.6.12 came out and tried that version, but it also fails |
|
168 |
to build clutter. |
|
18010 | 169 |
* Fri May 21 2010 - [email protected] |
170 |
- Bump to 0.6.11. |
|
17859 | 171 |
* Mon Apr 19 2010 - [email protected] |
18010 | 172 |
- Bump to 0.6.10. |
17821 | 173 |
* Fri Apr 09 2010 - [email protected] |
174 |
- Add patch gobject-introspection-01-amd64.diff. |
|
17728 | 175 |
* Fri Mar 19 2010 - [email protected] |
18010 | 176 |
- Bump to 0.6.9. |
17665 | 177 |
* Thu Mar 11 2010 - [email protected] |
18010 | 178 |
- Bump to 0.6.8. |
17665 | 179 |
- Remove upstreamed patches: 01-ginvoke.diff, 02-glib-compilation.dif |
18010 | 180 |
03-ginfo.diff, 04-big-ending.diff. |
17514 | 181 |
* Mon Feb 08 2010 - [email protected] |
182 |
- Use python2.6 to scannermain.py and shlibs.py, fixes CR #6924142. |
|
183 |
- Remove .pyc and .pyo files. |
|
17450 | 184 |
* Tue Jan 26 2010 - [email protected] |
185 |
- Use gmake instead of make, fixes doo bug #14155. |
|
17281 | 186 |
* Fri Jan 08 2010 - [email protected] |
18010 | 187 |
- Add patch ginfo.diff and big-ending.diff to fix bugzilla #606180. |
17240 | 188 |
* Wed Dec 23 2009 - [email protected] |
18010 | 189 |
- Bump to 0.6.7. |
17240 | 190 |
- Add patch -glib-compilation.dif to fix bugzilla #605108. |
17165 | 191 |
* Fri Dec 11 2009 - [email protected] |
192 |
- Bump to 0.6.6. Remove upstream patch 64bit.diff. |
|
16481 | 193 |
* Sat Sep 05 2009 - [email protected] |
194 |
- Bump to 0.6.5. Remove upstream patches. |
|
16424 | 195 |
* Mon Aug 31 2009 - [email protected] |
196 |
- Add patch -64bit to fix 64 bit issue. Bugzilla #593639. |
|
16411 | 197 |
* Sat Aug 29 2009 - [email protected] |
17209 | 198 |
- Add patch -LD.diff to fix build issue with CBE 1.6.x. |
16339 | 199 |
* Mon Aug 24 2009 - [email protected] |
200 |
- Initial version. |