]>
Commit | Line | Data |
---|---|---|
63b31c30 | 1 | # TODO: |
2 | # - requires gobject-introspection-devel to build - fix it | |
eb4f3d1d | 3 | Summary: Introspection for GObject libraries |
cb9f2302 | 4 | Summary(pl.UTF-8): Obserwacja bibliotek GObject |
eb4f3d1d | 5 | Name: gobject-introspection |
531b0cb0 | 6 | Version: 1.30.0 |
310a7ca6 | 7 | Release: 1 |
d03649a9 | 8 | License: LGPL v2+ (giscanner) and GPL v2+ (tools) |
eb4f3d1d | 9 | Group: Libraries |
531b0cb0 AF |
10 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.30/%{name}-%{version}.tar.xz |
11 | # Source0-md5: 4e5f8d02890aa1f2459b9890e0a45486 | |
eb4f3d1d | 12 | Patch0: %{name}-libtool.patch |
13 | URL: http://live.gnome.org/GObjectIntrospection | |
531b0cb0 AF |
14 | BuildRequires: autoconf >= 2.63 |
15 | BuildRequires: automake >= 1:1.11 | |
d03649a9 | 16 | BuildRequires: bison |
531b0cb0 | 17 | BuildRequires: cairo-gobject-devel |
b78f8f11 | 18 | BuildRequires: flex |
531b0cb0 | 19 | BuildRequires: glib2-devel >= 1:2.29.7 |
b78f8f11 | 20 | BuildRequires: glibc-misc |
04f8c6fe | 21 | BuildRequires: gtk-doc >= 1.12 |
eb4f3d1d | 22 | BuildRequires: libffi-devel |
23 | BuildRequires: libtool | |
24 | BuildRequires: pkgconfig | |
d03649a9 MB |
25 | BuildRequires: python >= 1:2.5 |
26 | BuildRequires: python-devel >= 1:2.5 | |
b78f8f11 | 27 | BuildRequires: python-modules |
28 | BuildRequires: rpm-pythonprov | |
531b0cb0 AF |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
63b31c30 | 31 | BuildRequires: zlib-devel |
531b0cb0 | 32 | Requires: glib2 >= 1:2.29.7 |
7fc4c9c0 | 33 | Obsoletes: gobject-introspection-libs < %{version}-%{release} |
eb4f3d1d | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | Tools for introspecting GObject-based frameworks. | |
38 | ||
cb9f2302 JB |
39 | %description -l pl.UTF-8 |
40 | Narzędzia do obserwacji szkieletów opartych na bibliotece GObject. | |
41 | ||
eb4f3d1d | 42 | %package devel |
43 | Summary: Header files for gobject-introspection library | |
cb9f2302 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gobject-introspection |
eb4f3d1d | 45 | Group: Development/Libraries |
7fc4c9c0 | 46 | Requires: %{name} = %{version}-%{release} |
531b0cb0 | 47 | Requires: glib2-devel >= 1:2.29.7 |
abb75853 | 48 | Requires: libffi-devel |
b78f8f11 | 49 | Requires: python-modules |
eb4f3d1d | 50 | |
51 | %description devel | |
52 | Header files for gobject-introspection library. | |
53 | ||
cb9f2302 JB |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki gobject-introspection. | |
56 | ||
eb4f3d1d | 57 | %package static |
58 | Summary: Static gobject-introspection library | |
cb9f2302 | 59 | Summary(pl.UTF-8): Statyczna biblioteka gobject-introspection |
eb4f3d1d | 60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static gobject-introspection library. | |
65 | ||
cb9f2302 JB |
66 | %description static -l pl.UTF-8 |
67 | Statyczna biblioteka gobject-introspection. | |
68 | ||
cdd85f97 PZ |
69 | %package apidocs |
70 | Summary: gobject-introspection API documentation | |
71 | Summary(pl.UTF-8): Dokumentacja API gobject-introspection | |
72 | Group: Documentation | |
73 | Requires: gtk-doc-common | |
74 | ||
75 | %description apidocs | |
76 | gobject-introspection API documentation. | |
77 | ||
78 | %description apidocs -l pl.UTF-8 | |
79 | Dokumentacja API gobject-introspection. | |
80 | ||
eb4f3d1d | 81 | %prep |
82 | %setup -q | |
83 | %patch0 -p1 | |
84 | ||
85 | %build | |
86 | %{__libtoolize} | |
87 | %{__aclocal} -I m4 | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
bc513ae5 | 91 | %configure \ |
cdd85f97 | 92 | --disable-silent-rules \ |
04f8c6fe | 93 | --enable-gtk-doc \ |
cdd85f97 | 94 | --with-html-dir=%{_gtkdocdir} |
eb4f3d1d | 95 | %{__make} |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
de1d23c8 PZ |
99 | install -d $RPM_BUILD_ROOT%{py_sitedir} |
100 | ||
eb4f3d1d | 101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
04f8c6fe | 104 | mv $RPM_BUILD_ROOT%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT%{py_sitedir} |
de1d23c8 | 105 | |
04f8c6fe | 106 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/giscanner/*.{a,la} |
d03649a9 MB |
107 | |
108 | %py_postclean | |
109 | ||
eb4f3d1d | 110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
7fc4c9c0 PZ |
113 | %post -p /sbin/ldconfig |
114 | %postun -p /sbin/ldconfig | |
eb4f3d1d | 115 | |
116 | %files | |
117 | %defattr(644,root,root,755) | |
647651c4 | 118 | %doc AUTHORS CONTRIBUTORS NEWS README TODO |
0bee94df | 119 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so.*.*.* |
cdd85f97 | 120 | %attr(755,root,root) %ghost %{_libdir}/libgirepository-1.0.so.1 |
d03649a9 | 121 | %dir %{_libdir}/girepository-1.0 |
647651c4 JB |
122 | %{_libdir}/girepository-1.0/DBus-1.0.typelib |
123 | %{_libdir}/girepository-1.0/DBusGLib-1.0.typelib | |
124 | %{_libdir}/girepository-1.0/GIRepository-2.0.typelib | |
125 | %{_libdir}/girepository-1.0/GL-1.0.typelib | |
126 | %{_libdir}/girepository-1.0/GLib-2.0.typelib | |
127 | %{_libdir}/girepository-1.0/GModule-2.0.typelib | |
128 | %{_libdir}/girepository-1.0/GObject-2.0.typelib | |
129 | %{_libdir}/girepository-1.0/Gio-2.0.typelib | |
130 | %{_libdir}/girepository-1.0/cairo-1.0.typelib | |
131 | %{_libdir}/girepository-1.0/fontconfig-2.0.typelib | |
132 | %{_libdir}/girepository-1.0/freetype2-2.0.typelib | |
133 | %{_libdir}/girepository-1.0/libxml2-2.0.typelib | |
134 | %{_libdir}/girepository-1.0/xfixes-4.0.typelib | |
135 | %{_libdir}/girepository-1.0/xft-2.0.typelib | |
136 | %{_libdir}/girepository-1.0/xlib-2.0.typelib | |
137 | %{_libdir}/girepository-1.0/xrandr-1.3.typelib | |
eb4f3d1d | 138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
dc48bd4c | 141 | %attr(755,root,root) %{_bindir}/g-ir-annotation-tool |
cd5f239a | 142 | %attr(755,root,root) %{_bindir}/g-ir-compiler |
531b0cb0 | 143 | %attr(755,root,root) %{_bindir}/g-ir-doc-tool |
cd5f239a PZ |
144 | %attr(755,root,root) %{_bindir}/g-ir-generate |
145 | %attr(755,root,root) %{_bindir}/g-ir-scanner | |
7fc4c9c0 PZ |
146 | %{_mandir}/man1/g-ir-compiler.1* |
147 | %{_mandir}/man1/g-ir-generate.1* | |
148 | %{_mandir}/man1/g-ir-scanner.1* | |
d03649a9 | 149 | %attr(755,root,root) %{_libdir}/libgirepository-1.0.so |
d03649a9 | 150 | %{_libdir}/libgirepository-1.0.la |
cb9f2302 JB |
151 | %{_includedir}/gobject-introspection-1.0 |
152 | %{_pkgconfigdir}/gobject-introspection-1.0.pc | |
153 | %{_pkgconfigdir}/gobject-introspection-no-export-1.0.pc | |
154 | %{_aclocaldir}/introspection.m4 | |
cd5f239a | 155 | %dir %{_datadir}/gir-1.0 |
647651c4 JB |
156 | %{_datadir}/gir-1.0/DBus-1.0.gir |
157 | %{_datadir}/gir-1.0/DBusGLib-1.0.gir | |
158 | %{_datadir}/gir-1.0/GIRepository-2.0.gir | |
159 | %{_datadir}/gir-1.0/GL-1.0.gir | |
160 | %{_datadir}/gir-1.0/GLib-2.0.gir | |
161 | %{_datadir}/gir-1.0/GModule-2.0.gir | |
162 | %{_datadir}/gir-1.0/GObject-2.0.gir | |
163 | %{_datadir}/gir-1.0/Gio-2.0.gir | |
164 | %{_datadir}/gir-1.0/cairo-1.0.gir | |
165 | %{_datadir}/gir-1.0/fontconfig-2.0.gir | |
166 | %{_datadir}/gir-1.0/freetype2-2.0.gir | |
167 | %{_datadir}/gir-1.0/libxml2-2.0.gir | |
168 | %{_datadir}/gir-1.0/xfixes-4.0.gir | |
169 | %{_datadir}/gir-1.0/xft-2.0.gir | |
170 | %{_datadir}/gir-1.0/xlib-2.0.gir | |
171 | %{_datadir}/gir-1.0/xrandr-1.3.gir | |
abb75853 | 172 | %{_datadir}/gobject-introspection-1.0 |
7fc4c9c0 PZ |
173 | %dir %{py_sitedir}/giscanner |
174 | %{py_sitedir}/giscanner/*.py[co] | |
cb9f2302 | 175 | %attr(755,root,root) %{py_sitedir}/giscanner/_giscanner.so |
eb4f3d1d | 176 | |
177 | %files static | |
178 | %defattr(644,root,root,755) | |
d03649a9 | 179 | %{_libdir}/libgirepository-1.0.a |
cdd85f97 PZ |
180 | |
181 | %files apidocs | |
182 | %defattr(644,root,root,755) | |
183 | %{_gtkdocdir}/gi |