1 |
%define name gobject-introspection |
2 |
%define version 1.29.16 |
3 |
%define git 0 |
4 |
%define rel 1 |
5 |
|
6 |
%if %git |
7 |
%define release %mkrel -c %{git} %{rel} |
8 |
%else |
9 |
%define release %mkrel %{rel} |
10 |
%endif |
11 |
|
12 |
%define api 1.0 |
13 |
%define major 1 |
14 |
%define libname %mklibname girepository %{api} %{major} |
15 |
%define develname %mklibname -d girepository |
16 |
|
17 |
%define url_ver %(echo %{version} | cut -d. -f1,2) |
18 |
|
19 |
Summary: GObject Introspection |
20 |
Name: %{name} |
21 |
Version: %{version} |
22 |
Release: %{release} |
23 |
|
24 |
%if %{git} |
25 |
Source0: %{name}-%{git}.tar.xz |
26 |
%else |
27 |
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
28 |
%endif |
29 |
|
30 |
Source1: glib-2.0.c |
31 |
Patch0: gobject-introspection-fix-link.patch |
32 |
License: GPLv2+ and LGPLv2+ |
33 |
Group: Development/C |
34 |
Url: http://www.gnome.org |
35 |
BuildRequires: glib2-devel >= 2.25.8 |
36 |
BuildRequires: ffi5-devel |
37 |
BuildRequires: python-devel |
38 |
BuildRequires: freetype2-devel |
39 |
BuildRequires: cairo-devel |
40 |
BuildRequires: fontconfig-devel |
41 |
BuildRequires: GL-devel |
42 |
BuildRequires: libxft-devel |
43 |
BuildRequires: flex |
44 |
BuildRequires: bison |
45 |
BuildRequires: gnome-common |
46 |
BuildRequires: libtool |
47 |
Conflicts: %{mklibname girepository 1.0 0} < 0.6.10-5mdv |
48 |
Conflicts: gir-repository < 0.6.5-12.20100622.3mdv |
49 |
|
50 |
%description |
51 |
The goal of the project is to describe the APIs and collect them in |
52 |
a uniform, machine readable format. |
53 |
|
54 |
%package -n %{libname} |
55 |
Group: System/Libraries |
56 |
Summary: GObject Introspection shared library |
57 |
Conflicts: %{name} < 0.6.8-2mdv |
58 |
Requires: %{name} >= %{version} |
59 |
|
60 |
%description -n %{libname} |
61 |
The goal of the project is to describe the APIs and collect them in |
62 |
a uniform, machine readable format. |
63 |
|
64 |
|
65 |
%package -n %{develname} |
66 |
Group: Development/C |
67 |
Summary: GObject Introspection development libraries |
68 |
Requires: %{libname} = %{version}-%{release} |
69 |
Provides: libgirepository-devel = %{version}-%{release} |
70 |
Provides: %{name}-devel = %{version}-%{release} |
71 |
#gw /usr/bin/libtool is called in giscanner |
72 |
Requires: libtool |
73 |
|
74 |
%description -n %{develname} |
75 |
The goal of the project is to describe the APIs and collect them in |
76 |
a uniform, machine readable format. |
77 |
|
78 |
%prep |
79 |
%if %{git} |
80 |
%setup -q -n %{name} |
81 |
%else |
82 |
%setup -q |
83 |
%endif |
84 |
|
85 |
%apply_patches |
86 |
|
87 |
# From Ubuntu: |
88 |
# Roll back to gir/glib-2.0 as of before upstream commit 6d30588c1. |
89 |
# Later commits have a GVariant which current pygobject does not |
90 |
# deal with. This is fixed in the invoke-rewrite branch of |
91 |
# pygobject, so until this lands we need the older annotations. |
92 |
pushd gir |
93 |
rm -rf glib-2.0.c |
94 |
cp %{SOURCE1} . |
95 |
popd |
96 |
|
97 |
%build |
98 |
|
99 |
%if %{git} |
100 |
./autogen.sh -V |
101 |
%else |
102 |
autoreconf -fi |
103 |
%endif |
104 |
|
105 |
%configure2_5x \ |
106 |
--disable-static |
107 |
|
108 |
%make |
109 |
|
110 |
%install |
111 |
rm -rf %{buildroot} |
112 |
%makeinstall_std |
113 |
|
114 |
# don't ship .la |
115 |
#find %{buildroot} -name '*.la' -exec rm -f {} \; |
116 |
|
117 |
%check |
118 |
make check |
119 |
|
120 |
%clean |
121 |
rm -rf %{buildroot} |
122 |
|
123 |
%files |
124 |
%defattr(-,root,root) |
125 |
%doc README NEWS TODO AUTHORS |
126 |
%dir %{_libdir}/girepository-%{api} |
127 |
%{_libdir}/girepository-%{api}/DBus-1.0.typelib |
128 |
%{_libdir}/girepository-%{api}/DBusGLib-1.0.typelib |
129 |
%{_libdir}/girepository-%{api}/GIRepository-2.0.typelib |
130 |
%{_libdir}/girepository-%{api}/GL-1.0.typelib |
131 |
%{_libdir}/girepository-%{api}/GLib-2.0.typelib |
132 |
%{_libdir}/girepository-%{api}/GModule-2.0.typelib |
133 |
%{_libdir}/girepository-%{api}/GObject-2.0.typelib |
134 |
%{_libdir}/girepository-%{api}/Gio-2.0.typelib |
135 |
%{_libdir}/girepository-%{api}/cairo-1.0.typelib |
136 |
%{_libdir}/girepository-%{api}/fontconfig-2.0.typelib |
137 |
%{_libdir}/girepository-%{api}/freetype2-2.0.typelib |
138 |
%{_libdir}/girepository-%{api}/libxml2-2.0.typelib |
139 |
%{_libdir}/girepository-%{api}/xfixes-4.0.typelib |
140 |
%{_libdir}/girepository-%{api}/xft-2.0.typelib |
141 |
%{_libdir}/girepository-%{api}/xlib-2.0.typelib |
142 |
%{_libdir}/girepository-%{api}/xrandr-1.3.typelib |
143 |
|
144 |
%files -n %{libname} |
145 |
%defattr(-,root,root) |
146 |
%{_libdir}/libgirepository-%{api}.so.%{major}* |
147 |
|
148 |
%files -n %{develname} |
149 |
%defattr(-,root,root) |
150 |
%doc ChangeLog |
151 |
%{_libdir}/libgirepository-%{api}.so |
152 |
%{_libdir}/pkgconfig/gobject-introspection-%{api}.pc |
153 |
%{_libdir}/pkgconfig/gobject-introspection-no-export-%{api}.pc |
154 |
%{_includedir}/%{name}-%{api} |
155 |
%{_datadir}/aclocal/*.m4 |
156 |
%{_datadir}/%{name}-%{api} |
157 |
%{_bindir}/g-ir-* |
158 |
%{_libdir}/%{name} |
159 |
%{_datadir}/gtk-doc/html/gi |
160 |
%dir %{_datadir}/gir-%{api} |
161 |
%{_datadir}/gir-%{api}/DBus-1.0.gir |
162 |
%{_datadir}/gir-%{api}/DBusGLib-1.0.gir |
163 |
%{_datadir}/gir-%{api}/GIRepository-2.0.gir |
164 |
%{_datadir}/gir-%{api}/GL-1.0.gir |
165 |
%{_datadir}/gir-%{api}/GLib-2.0.gir |
166 |
%{_datadir}/gir-%{api}/GModule-2.0.gir |
167 |
%{_datadir}/gir-%{api}/GObject-2.0.gir |
168 |
%{_datadir}/gir-%{api}/Gio-2.0.gir |
169 |
%{_datadir}/gir-%{api}/cairo-1.0.gir |
170 |
%{_datadir}/gir-%{api}/fontconfig-2.0.gir |
171 |
%{_datadir}/gir-%{api}/freetype2-2.0.gir |
172 |
%{_datadir}/gir-%{api}/libxml2-2.0.gir |
173 |
%{_datadir}/gir-%{api}/xfixes-4.0.gir |
174 |
%{_datadir}/gir-%{api}/xft-2.0.gir |
175 |
%{_datadir}/gir-%{api}/xlib-2.0.gir |
176 |
%{_datadir}/gir-%{api}/xrandr-1.3.gir |
177 |
%{_mandir}/man1/* |
178 |
%{_libdir}/*.la |