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