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