/[packages]/cauldron/gobject-introspection/current/SPECS/gobject-introspection.spec
ViewVC logotype

Contents of /cauldron/gobject-introspection/current/SPECS/gobject-introspection.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30