1 | #define svn_url F:/rd/ports/glib/trunk
|
---|
2 | %define svn_url http://svn.netlabs.org/repos/ports/glib/trunk
|
---|
3 | %define svn_rev 1643
|
---|
4 |
|
---|
5 | Name: glib2
|
---|
6 | %define _name glib
|
---|
7 | Version: 2.33.12
|
---|
8 | Release: 2%{?dist}
|
---|
9 | License: LGPLv2.1+
|
---|
10 | Summary: A Library with Convenient Functions Written in C
|
---|
11 | Url: http://www.gtk.org/
|
---|
12 | Group: Development/Libraries/C and C++
|
---|
13 | Vendor: bww bitwise works GmbH
|
---|
14 |
|
---|
15 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
16 | Source1: glib2-legacy.zip
|
---|
17 |
|
---|
18 | BuildRequires: gcc make subversion zip
|
---|
19 |
|
---|
20 | BuildRequires: autoconf automake
|
---|
21 | BuildRequires: libtool > 2.4.5
|
---|
22 |
|
---|
23 | #BuildRequires: fam-devel
|
---|
24 | #BuildRequires: fdupes
|
---|
25 | #BuildRequires: gcc-c++
|
---|
26 | #BuildRequires: pcre-devel
|
---|
27 | BuildRequires: pkgconfig
|
---|
28 | #BuildRequires: translation-update-upstream
|
---|
29 | BuildRequires: zlib-devel
|
---|
30 | BuildRequires: libffi-devel gettext-devel bind-devel
|
---|
31 | # For temporary %%posttrans script only.
|
---|
32 | #PreReq: coreutils
|
---|
33 | #PreReq: /bin/sed
|
---|
34 | #Requires: %{name}-branding
|
---|
35 | #Requires: %{name}-lang = %{version}
|
---|
36 | #
|
---|
37 | Provides: glib2-doc = 2.19.6
|
---|
38 | Obsoletes: glib2-doc < 2.19.6
|
---|
39 |
|
---|
40 | # YD this must be added to force dll install
|
---|
41 | Requires: libglib-2_0-0 = %{version}
|
---|
42 | Requires: libgmodule-2_0-0 = %{version}
|
---|
43 | Requires: libgthread-2_0-0 = %{version}
|
---|
44 | Requires: libgobject-2_0-0 = %{version}
|
---|
45 |
|
---|
46 | %description
|
---|
47 | This library provides convenient functions, such as lists and hashes,
|
---|
48 | to a C programmer and is used by Gtk+ and GNOME.
|
---|
49 |
|
---|
50 | #%package branding-upstream
|
---|
51 | #License: LGPLv2.1+
|
---|
52 | #Summary: Definition of GNOME Default Applications
|
---|
53 | #Group: Development/Libraries/C and C++
|
---|
54 | #Provides: %{name}-branding = %{version}
|
---|
55 | #Conflicts: otherproviders(%{name}-branding)
|
---|
56 | #Supplements: packageand(%{name}:branding-upstream)
|
---|
57 | #BRAND: The /etc/gnome_defaults.conf allows to define arbitrary
|
---|
58 | #BRAND: applications as preferred defaults.
|
---|
59 | # NOTE: gnome_defaults is not an upstream feature, but a SuSE
|
---|
60 | # enhancement, but to conform branding conventions, the package is named
|
---|
61 | # as glib2-branding-upstream.
|
---|
62 |
|
---|
63 | #%description branding-upstream
|
---|
64 | #This branding-style package sets default applications in GNOME in
|
---|
65 | #openSUSE.
|
---|
66 |
|
---|
67 | This is a dumb package, which provides only upstream GNOME packages as
|
---|
68 | preferred defaults. You most probably don't want this package. You
|
---|
69 | probably want to install distribution default glib2-branding and prefer
|
---|
70 | distribution wise GNOME defaults.
|
---|
71 |
|
---|
72 | %package devel
|
---|
73 | #'
|
---|
74 | License: GPLv2+
|
---|
75 | Requires: %{name} = %{version} pkgconfig
|
---|
76 | # glibc-devel
|
---|
77 | # Now require the subpackages too
|
---|
78 | Requires: libglib-2_0-0 = %{version}
|
---|
79 | Requires: libgmodule-2_0-0 = %{version}
|
---|
80 | #Requires: libgio-2_0-0 = %{version}
|
---|
81 | Requires: libgthread-2_0-0 = %{version}
|
---|
82 | Requires: libgobject-2_0-0 = %{version}
|
---|
83 | Summary: Include files and libraries mandatory for development
|
---|
84 | Group: Development/Libraries/C and C++
|
---|
85 |
|
---|
86 | %description devel
|
---|
87 | This package contains all necessary include files, libraries,
|
---|
88 | configuration files and development tools (with manual pages) needed to
|
---|
89 | compile and link applications using the glib library.
|
---|
90 |
|
---|
91 | The glib library provides convenient functions, such as lists and
|
---|
92 | hashes, to a C programmer and is used by Gtk+ and GNOME.
|
---|
93 |
|
---|
94 | %package -n libglib-2_0-0
|
---|
95 | License: LGPLv2.1+
|
---|
96 | Summary: A Library with Convenient Functions Written in C
|
---|
97 | Group: Development/Libraries/C and C++
|
---|
98 | #Recommends: %{name}-lang = %{version}
|
---|
99 |
|
---|
100 | %description -n libglib-2_0-0
|
---|
101 | This library provides convenient functions, such as lists and hashes,
|
---|
102 | to a C programmer and is used by Gtk+ and GNOME.
|
---|
103 |
|
---|
104 | %package -n libgmodule-2_0-0
|
---|
105 | License: LGPLv2.1+
|
---|
106 | Summary: A Library with Convenient Functions Written in C
|
---|
107 | Group: Development/Libraries/C and C++
|
---|
108 |
|
---|
109 | %description -n libgmodule-2_0-0
|
---|
110 | This library provides convenient functions, such as lists and hashes,
|
---|
111 | to a C programmer and is used by Gtk+ and GNOME.
|
---|
112 |
|
---|
113 | %package -n libgio-2_0-0
|
---|
114 | License: LGPLv2.1+
|
---|
115 | Summary: A Library with Convenient Functions Written in C
|
---|
116 | Group: Development/Libraries/C and C++
|
---|
117 | # Temporarily disable this, pending further discussion
|
---|
118 | # Recommends: gvfs
|
---|
119 |
|
---|
120 | %description -n libgio-2_0-0
|
---|
121 | This library provides convenient functions, such as lists and hashes,
|
---|
122 | to a C programmer and is used by Gtk+ and GNOME.
|
---|
123 |
|
---|
124 | #%package -n libgio-fam
|
---|
125 | #License: LGPLv2.1+
|
---|
126 | #Summary: A Library with Convenient Functions Written in C
|
---|
127 | #Group: Development/Libraries/C and C++
|
---|
128 | # we need gio-querymodules in %post/%postun
|
---|
129 | #Requires(post): %{name}
|
---|
130 | #Requires(postun): %{name}
|
---|
131 | #Supplements: packageand(libgio-2_0-0:fam)
|
---|
132 |
|
---|
133 | #%description -n libgio-fam
|
---|
134 | #This library provides convenient functions, such as lists and hashes,
|
---|
135 | #to a C programmer and is used by Gtk+ and GNOME.
|
---|
136 |
|
---|
137 | %package -n libgthread-2_0-0
|
---|
138 | License: LGPLv2.1+
|
---|
139 | Summary: A Library with Convenient Functions Written in C
|
---|
140 | Group: Development/Libraries/C and C++
|
---|
141 | Requires: %{name} = %{version}
|
---|
142 |
|
---|
143 | %description -n libgthread-2_0-0
|
---|
144 | This library provides convenient functions, such as lists and hashes,
|
---|
145 | to a C programmer and is used by Gtk+ and GNOME.
|
---|
146 |
|
---|
147 | %package -n libgobject-2_0-0
|
---|
148 | License: LGPLv2.1+
|
---|
149 | Summary: A Library with Convenient Functions Written in C
|
---|
150 | Group: Development/Libraries/C and C++
|
---|
151 |
|
---|
152 | %description -n libgobject-2_0-0
|
---|
153 | This library provides convenient functions, such as lists and hashes,
|
---|
154 | to a C programmer and is used by Gtk+ and GNOME.
|
---|
155 |
|
---|
156 | %package legacy
|
---|
157 | Summary: The 2.25 glib2 library.
|
---|
158 |
|
---|
159 | %description legacy
|
---|
160 | The 2.25 glib2 library.
|
---|
161 |
|
---|
162 | %debug_package
|
---|
163 |
|
---|
164 | # @todo (dmik) We don't support this macro, put language files into the main package
|
---|
165 | #%lang_package
|
---|
166 |
|
---|
167 | %prep
|
---|
168 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
169 | %setup -q
|
---|
170 | %else
|
---|
171 | %setup -n "%{name}-%{version}" -Tc -a 1
|
---|
172 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
173 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
174 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
175 | %endif
|
---|
176 |
|
---|
177 | cat > gtk-doc.make <<EOF
|
---|
178 | EXTRA_DIST =
|
---|
179 | CLEANFILES =
|
---|
180 | EOF
|
---|
181 | touch README INSTALL
|
---|
182 |
|
---|
183 | autoreconf -fi
|
---|
184 |
|
---|
185 | %build
|
---|
186 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
187 | export CFLAGS="%optflags -I/@unixroot/usr/include/bind9"
|
---|
188 | export LIBS="-lurpo -lmmap -lpthread -llwres"
|
---|
189 | %configure \
|
---|
190 | --disable-modular-tests \
|
---|
191 | --enable-shared --disable-static
|
---|
192 |
|
---|
193 | make OPT="$CFLAGS" %{?_smp_mflags}
|
---|
194 |
|
---|
195 | %check
|
---|
196 | # make check does not work on x86_64. See http://bugzilla.gnome.org/show_bug.cgi?id=554969
|
---|
197 | # %{__make} %{?jobs:-j%jobs} check
|
---|
198 |
|
---|
199 | %install
|
---|
200 | %makeinstall
|
---|
201 | #%if 0%{?suse_version} <= 1120
|
---|
202 | #%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
---|
203 | #%endif
|
---|
204 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
---|
205 | cp AUTHORS $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
---|
206 | cp COPYING $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
---|
207 | cp README $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
---|
208 | cp NEWS $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
---|
209 | cp ChangeLog $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
---|
210 |
|
---|
211 | rm $RPM_BUILD_ROOT%{_libdir}/charset.alias
|
---|
212 |
|
---|
213 | #install -D -m0644 glib2.sh $RPM_BUILD_ROOT/etc/profile.d/zzz-glib2.sh
|
---|
214 | #install -D -m0644 glib2.csh $RPM_BUILD_ROOT/etc/profile.d/zzz-glib2.csh
|
---|
215 | #install -D -m0755 SuSEconfig.glib2 $RPM_BUILD_ROOT/sbin/conf.d/SuSEconfig.glib2
|
---|
216 | #install -D -m0644 gnome_defaults.conf $RPM_BUILD_ROOT%{_sysconfdir}/gnome_defaults.conf
|
---|
217 | # default apps magic
|
---|
218 | #mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/gio-2.0 $RPM_BUILD_ROOT%{_datadir}/applications
|
---|
219 | #touch $RPM_BUILD_ROOT%{_localstatedir}/cache/gio-2.0/defaults.list
|
---|
220 | #ln -s %{_localstatedir}/cache/gio-2.0/defaults.list $RPM_BUILD_ROOT%{_datadir}/applications/defaults.list
|
---|
221 | # fix some permission issue, but only if needed
|
---|
222 | #test ! -x $RPM_BUILD_ROOT/%{_bindir}/gtester-report
|
---|
223 | #chmod +x $RPM_BUILD_ROOT/%{_bindir}/gtester-report
|
---|
224 | # gio-querymodules magic
|
---|
225 | #%if "%{_lib}" == "lib64"
|
---|
226 | #mv $RPM_BUILD_ROOT%{_bindir}/gio-querymodules $RPM_BUILD_ROOT%{_bindir}/gio-querymodules-64
|
---|
227 | #%endif
|
---|
228 | #touch $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
|
---|
229 | # remove files we don't care about
|
---|
230 | #rm $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.*a
|
---|
231 | # We do not need the la files for 11.1 and newer
|
---|
232 | #%if %suse_version > 1100
|
---|
233 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
---|
234 | #%endif
|
---|
235 |
|
---|
236 | # copy legacy files
|
---|
237 | cp -p gio2.dll %{buildroot}%{_libdir}
|
---|
238 | cp -p glib2.dll %{buildroot}%{_libdir}
|
---|
239 | cp -p gmod2.dll %{buildroot}%{_libdir}
|
---|
240 | cp -p gobj2.dll %{buildroot}%{_libdir}
|
---|
241 | cp -p gthr2.dll %{buildroot}%{_libdir}
|
---|
242 |
|
---|
243 | %find_lang %{_name}20
|
---|
244 | #%fdupes $RPM_BUILD_ROOT
|
---|
245 |
|
---|
246 |
|
---|
247 | %clean
|
---|
248 | rm -rf $RPM_BUILD_ROOT
|
---|
249 |
|
---|
250 |
|
---|
251 | %files -f %{_name}20.lang
|
---|
252 | %defattr(-,root,root)
|
---|
253 | %doc AUTHORS COPYING README NEWS ChangeLog
|
---|
254 | #/etc/profile.d/zzz-glib2.*
|
---|
255 | #/sbin/conf.d/SuSEconfig.glib2
|
---|
256 | %{_bindir}/gio-querymodules*
|
---|
257 | %{_datadir}/bash-completion/completions/*
|
---|
258 |
|
---|
259 | #%files branding-upstream
|
---|
260 | #%defattr(-,root,root)
|
---|
261 | #%config (noreplace) %{_sysconfdir}/gnome_defaults.conf
|
---|
262 |
|
---|
263 | %files -n libglib-2_0-0
|
---|
264 | %defattr(-, root, root)
|
---|
265 | %{_libdir}/glib*.dll
|
---|
266 | %exclude %{_libdir}/*2.dll
|
---|
267 |
|
---|
268 | %files -n libgmodule-2_0-0
|
---|
269 | %defattr(-, root, root)
|
---|
270 | %{_libdir}/gmod*.dll
|
---|
271 | %exclude %{_libdir}/*2.dll
|
---|
272 |
|
---|
273 | %files -n libgobject-2_0-0
|
---|
274 | %defattr(-, root, root)
|
---|
275 | %{_libdir}/gobj*.dll
|
---|
276 | %exclude %{_libdir}/*2.dll
|
---|
277 |
|
---|
278 | %files -n libgthread-2_0-0
|
---|
279 | %defattr(-, root, root)
|
---|
280 | %{_libdir}/gthr*.dll
|
---|
281 | %exclude %{_libdir}/*2.dll
|
---|
282 |
|
---|
283 | %files -n libgio-2_0-0
|
---|
284 | %defattr(-, root, root)
|
---|
285 | %{_libdir}/gio*.dll
|
---|
286 | %exclude %{_libdir}/*2.dll
|
---|
287 | #%dir %{_libdir}/gio
|
---|
288 | #%dir %{_libdir}/gio/modules
|
---|
289 | #%ghost %{_libdir}/gio/modules/giomodule.cache
|
---|
290 | ##%{_datadir}/applications/defaults.list
|
---|
291 | #%dir %{_localstatedir}/cache/gio-2.0
|
---|
292 | #%ghost %{_localstatedir}/cache/gio-2.0/defaults.list
|
---|
293 |
|
---|
294 | #%files -n libgio-fam
|
---|
295 | #%defattr(-,root,root)
|
---|
296 | #%{_libdir}/gio/modules/libgiofam.so
|
---|
297 |
|
---|
298 | %files devel
|
---|
299 | %defattr(-,root,root)
|
---|
300 | %{_bindir}/glib-*
|
---|
301 | %{_bindir}/gobject-*
|
---|
302 | %{_bindir}/gtester*
|
---|
303 | %{_bindir}/gresource*
|
---|
304 | %{_bindir}/gsettings*
|
---|
305 | %{_bindir}/gdbus*
|
---|
306 | #%doc %{_mandir}/man?/glib-*.*
|
---|
307 | #%doc %{_mandir}/man?/gobject-*.*
|
---|
308 | #%doc %{_mandir}/man?/gtester*.*
|
---|
309 | %{_datadir}/aclocal/*.m4
|
---|
310 | %{_datadir}/glib-2.0
|
---|
311 | %{_includedir}/glib-2.0
|
---|
312 | %{_includedir}/gio-unix-2.0
|
---|
313 | %{_libdir}/*.a
|
---|
314 | %{_libdir}/glib-2.0
|
---|
315 | %{_libdir}/pkgconfig/*.pc
|
---|
316 | %{_libdir}/gdbus-2.0/*
|
---|
317 | #%{_datadir}/gtk-doc/html/gio
|
---|
318 | #%{_datadir}/gtk-doc/html/glib
|
---|
319 | #%{_datadir}/gtk-doc/html/gobject
|
---|
320 | #%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py
|
---|
321 | %{_datadir}/gdb/auto-load/*
|
---|
322 | # Own these directories to not depend on gtk-doc while building:
|
---|
323 | #%dir %{_datadir}/gtk-doc
|
---|
324 | #%dir %{_datadir}/gtk-doc/html
|
---|
325 | # Own these directories to not depend on gdb
|
---|
326 | %dir %{_datadir}/gdb
|
---|
327 | %dir %{_datadir}/gdb/auto-load
|
---|
328 | #%dir %{_datadir}/gdb/auto-load/%{_prefix}
|
---|
329 | #%dir %{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}
|
---|
330 |
|
---|
331 | %files legacy
|
---|
332 | %defattr(-,root,root)
|
---|
333 | %{_libdir}/*2.dll
|
---|
334 |
|
---|
335 | %changelog
|
---|
336 | * Tue Jul 05 2016 yd <yd@os2power.com> 2.33.12-2
|
---|
337 | - r1643, use gettext code to embed codepage aliases. ticket#14.
|
---|
338 |
|
---|
339 | * Sat Jun 18 2016 yd <yd@os2power.com> 2.33.12-1
|
---|
340 | - r1605, use ISO8859-1 as default mapping, added _EURO locales.
|
---|
341 | - add legacy package for 2.25 compatibility.
|
---|
342 | - build public version.
|
---|
343 |
|
---|
344 | * Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 2.25.15-5
|
---|
345 | - Remove .la files from distribution.
|
---|
346 | - Build with gcc-4.9.2 against libc-0.6.6.
|
---|
347 | - Switch to downloading sources from SVN.
|
---|
348 |
|
---|
349 | * Wed Jul 18 2012 yd
|
---|
350 | - include Dmitry's changes for OpenJDK build.
|
---|