]>
Commit | Line | Data |
---|---|---|
eb4f3d1d | 1 | Summary: Introspection for GObject libraries |
2 | Name: gobject-introspection | |
4880de89 | 3 | Version: 0.6.5 |
57496f42 | 4 | Release: 1 |
d03649a9 | 5 | License: LGPL v2+ (giscanner) and GPL v2+ (tools) |
eb4f3d1d | 6 | Group: Libraries |
7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/0.6/%{name}-%{version}.tar.bz2 | |
4880de89 | 8 | # Source0-md5: c946cddf10f02a3aea483967ab6de605 |
eb4f3d1d | 9 | Patch0: %{name}-libtool.patch |
10 | URL: http://live.gnome.org/GObjectIntrospection | |
11 | BuildRequires: autoconf >= 2.59 | |
12 | BuildRequires: automake >= 1:1.8 | |
d03649a9 MB |
13 | BuildRequires: bison |
14 | BuildRequires: glib2-devel >= 1:2.16.0 | |
eb4f3d1d | 15 | BuildRequires: libffi-devel |
16 | BuildRequires: libtool | |
17 | BuildRequires: pkgconfig | |
d03649a9 MB |
18 | BuildRequires: python >= 1:2.5 |
19 | BuildRequires: python-devel >= 1:2.5 | |
7fc4c9c0 | 20 | Obsoletes: gobject-introspection-libs < %{version}-%{release} |
e1278b9d | 21 | Suggests: gir-repository |
eb4f3d1d | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Tools for introspecting GObject-based frameworks. | |
26 | ||
eb4f3d1d | 27 | %package devel |
28 | Summary: Header files for gobject-introspection library | |
29 | Group: Development/Libraries | |
7fc4c9c0 | 30 | Requires: %{name} = %{version}-%{release} |
d03649a9 | 31 | Requires: glib2-devel >= 2.16.0 |
eb4f3d1d | 32 | |
33 | %description devel | |
34 | Header files for gobject-introspection library. | |
35 | ||
36 | %package static | |
37 | Summary: Static gobject-introspection library | |
38 | Group: Development/Libraries | |
39 | Requires: %{name}-devel = %{version}-%{release} | |
40 | ||
41 | %description static | |
42 | Static gobject-introspection library. | |
43 | ||
44 | %prep | |
45 | %setup -q | |
46 | %patch0 -p1 | |
47 | ||
48 | %build | |
49 | %{__libtoolize} | |
50 | %{__aclocal} -I m4 | |
51 | %{__autoconf} | |
52 | %{__autoheader} | |
53 | %{__automake} | |
54 | %configure | |
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
de1d23c8 PZ |
60 | install -d $RPM_BUILD_ROOT%{py_sitedir} |
61 | ||
eb4f3d1d | 62 | %{__make} install \ |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
de1d23c8 PZ |
65 | mv $RPM_BUILD_ROOT%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT%{py_sitedir}/ |
66 | ||
d03649a9 MB |
67 | rm $RPM_BUILD_ROOT%{py_sitedir}/giscanner/*.{a,la} |
68 | ||
69 | %py_postclean | |
70 | ||
eb4f3d1d | 71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
7fc4c9c0 PZ |
74 | %post -p /sbin/ldconfig |
75 | %postun -p /sbin/ldconfig | |
eb4f3d1d | 76 | |
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS ChangeLog README | |
d03649a9 MB |
80 | %attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so.1.0.0 |
81 | %attr(755,root,root) %ghost %{_libdir}/libgirepository-everything-1.0.so.1 | |
82 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so.0.0.0 | |
83 | %attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.0 | |
d03649a9 MB |
84 | %dir %{_libdir}/girepository-1.0 |
85 | %{_libdir}/girepository-1.0/*.typelib | |
eb4f3d1d | 86 | |
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
cd5f239a PZ |
89 | %attr(755,root,root) %{_bindir}/g-ir-compiler |
90 | %attr(755,root,root) %{_bindir}/g-ir-generate | |
91 | %attr(755,root,root) %{_bindir}/g-ir-scanner | |
7fc4c9c0 PZ |
92 | %{_mandir}/man1/g-ir-compiler.1* |
93 | %{_mandir}/man1/g-ir-generate.1* | |
94 | %{_mandir}/man1/g-ir-scanner.1* | |
d03649a9 MB |
95 | %attr(755,root,root) %{_libdir}/libgirepository-everything-1.0.so |
96 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so | |
eb4f3d1d | 97 | %{_pkgconfigdir}/gobject-introspection-1.0.pc |
0f07f715 | 98 | %{_pkgconfigdir}/gobject-introspection-no-export-1.0.pc |
eb4f3d1d | 99 | %{_includedir}/gobject-introspection-1.0 |
d03649a9 MB |
100 | %{_libdir}/libgirepository-1.0.la |
101 | %{_libdir}/libgirepository-everything-1.0.la | |
de1d23c8 | 102 | %{_datadir}/aclocal/introspection.m4 |
cd5f239a PZ |
103 | %dir %{_datadir}/gir-1.0 |
104 | %{_datadir}/gir-1.0/*.gir | |
7fc4c9c0 PZ |
105 | %dir %{py_sitedir}/giscanner |
106 | %{py_sitedir}/giscanner/*.py[co] | |
107 | %{py_sitedir}/giscanner/_giscanner.so | |
eb4f3d1d | 108 | |
109 | %files static | |
110 | %defattr(644,root,root,755) | |
d03649a9 MB |
111 | %{_libdir}/libgirepository-1.0.a |
112 | %{_libdir}/libgirepository-everything-1.0.a |