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

Last change on this file since 168 was 168, checked in by Yuri Dario, 14 years ago

spec: massive rebuild due to new rpm lx parser updates (see changeset:167).

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