source: spec/trunk/SPECS/glib2.spec@ 1567

Last change on this file since 1567 was 1463, checked in by Silvan Scherrer, 7 years ago

spec: glib2: Release version 2.33.12-3.

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