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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 119226 - (hide annotations) (download)
Wed Jul 6 06:25:03 2011 UTC (12 years, 8 months ago) by wally
File size: 4585 byte(s)
- new version 1.29.0
- use .tar.xz source
- clean .spec a bit

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

  ViewVC Help
Powered by ViewVC 1.1.30