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