| 1 |
|
|---|
| 2 |
|
|---|
| 3 | Name: glib2
|
|---|
| 4 | %define _name glib
|
|---|
| 5 | Version: 2.25.15
|
|---|
| 6 | Release: 1
|
|---|
| 7 | License: LGPLv2.1+
|
|---|
| 8 | Summary: A Library with Convenient Functions Written in C
|
|---|
| 9 | Url: http://www.gtk.org/
|
|---|
| 10 | Group: Development/Libraries/C and C++
|
|---|
| 11 | Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{_name}/2.14/%{_name}-%{version}.tar.gz
|
|---|
| 12 |
|
|---|
| 13 | Patch0: %{_name}-%{version}-os2.diff
|
|---|
| 14 |
|
|---|
| 15 | #BuildRequires: fam-devel
|
|---|
| 16 | #BuildRequires: fdupes
|
|---|
| 17 | #BuildRequires: gcc-c++
|
|---|
| 18 | #BuildRequires: pcre-devel
|
|---|
| 19 | BuildRequires: pkgconfig
|
|---|
| 20 | #BuildRequires: translation-update-upstream
|
|---|
| 21 | BuildRequires: 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 | #
|
|---|
| 28 | Provides: glib2-doc = 2.19.6
|
|---|
| 29 | Obsoletes: glib2-doc < 2.19.6
|
|---|
| 30 | # YD this must be added to force dll install
|
|---|
| 31 | Requires: libglib-2_0-0 = %{version}
|
|---|
| 32 | Requires: libgmodule-2_0-0 = %{version}
|
|---|
| 33 | Requires: libgthread-2_0-0 = %{version}
|
|---|
| 34 | Requires: libgobject-2_0-0 = %{version}
|
|---|
| 35 |
|
|---|
| 36 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|---|
| 37 |
|
|---|
| 38 | %description
|
|---|
| 39 | This library provides convenient functions, such as lists and hashes,
|
|---|
| 40 | to 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 |
|
|---|
| 59 | This is a dumb package, which provides only upstream GNOME packages as
|
|---|
| 60 | preferred defaults. You most probably don't want this package. You
|
|---|
| 61 | probably want to install distribution default glib2-branding and prefer
|
|---|
| 62 | distribution wise GNOME defaults.
|
|---|
| 63 |
|
|---|
| 64 | %package devel
|
|---|
| 65 | #'
|
|---|
| 66 | License: GPLv2+
|
|---|
| 67 | Requires: %{name} = %{version} pkgconfig
|
|---|
| 68 | # glibc-devel
|
|---|
| 69 | # Now require the subpackages too
|
|---|
| 70 | Requires: libglib-2_0-0 = %{version}
|
|---|
| 71 | Requires: libgmodule-2_0-0 = %{version}
|
|---|
| 72 | #Requires: libgio-2_0-0 = %{version}
|
|---|
| 73 | Requires: libgthread-2_0-0 = %{version}
|
|---|
| 74 | Requires: libgobject-2_0-0 = %{version}
|
|---|
| 75 | Summary: Include files and libraries mandatory for development
|
|---|
| 76 | Group: Development/Libraries/C and C++
|
|---|
| 77 |
|
|---|
| 78 | %description devel
|
|---|
| 79 | This package contains all necessary include files, libraries,
|
|---|
| 80 | configuration files and development tools (with manual pages) needed to
|
|---|
| 81 | compile and link applications using the glib library.
|
|---|
| 82 |
|
|---|
| 83 | The glib library provides convenient functions, such as lists and
|
|---|
| 84 | hashes, to a C programmer and is used by Gtk+ and GNOME.
|
|---|
| 85 |
|
|---|
| 86 | %package -n libglib-2_0-0
|
|---|
| 87 | License: LGPLv2.1+
|
|---|
| 88 | Summary: A Library with Convenient Functions Written in C
|
|---|
| 89 | Group: Development/Libraries/C and C++
|
|---|
| 90 | #Recommends: %{name}-lang = %{version}
|
|---|
| 91 |
|
|---|
| 92 | %description -n libglib-2_0-0
|
|---|
| 93 | This library provides convenient functions, such as lists and hashes,
|
|---|
| 94 | to a C programmer and is used by Gtk+ and GNOME.
|
|---|
| 95 |
|
|---|
| 96 | %package -n libgmodule-2_0-0
|
|---|
| 97 | License: LGPLv2.1+
|
|---|
| 98 | Summary: A Library with Convenient Functions Written in C
|
|---|
| 99 | Group: Development/Libraries/C and C++
|
|---|
| 100 |
|
|---|
| 101 | %description -n libgmodule-2_0-0
|
|---|
| 102 | This library provides convenient functions, such as lists and hashes,
|
|---|
| 103 | to 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
|
|---|
| 131 | License: LGPLv2.1+
|
|---|
| 132 | Summary: A Library with Convenient Functions Written in C
|
|---|
| 133 | Group: Development/Libraries/C and C++
|
|---|
| 134 | Requires: %{name} = %{version}
|
|---|
| 135 |
|
|---|
| 136 | %description -n libgthread-2_0-0
|
|---|
| 137 | This library provides convenient functions, such as lists and hashes,
|
|---|
| 138 | to a C programmer and is used by Gtk+ and GNOME.
|
|---|
| 139 |
|
|---|
| 140 | %package -n libgobject-2_0-0
|
|---|
| 141 | License: LGPLv2.1+
|
|---|
| 142 | Summary: A Library with Convenient Functions Written in C
|
|---|
| 143 | Group: Development/Libraries/C and C++
|
|---|
| 144 |
|
|---|
| 145 | %description -n libgobject-2_0-0
|
|---|
| 146 | This library provides convenient functions, such as lists and hashes,
|
|---|
| 147 | to 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
|
|---|
| 157 | CONFIG_SHELL=/bin/sh
|
|---|
| 158 | export CONFIG_SHELL
|
|---|
| 159 | LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 160 | export LDFLAGS
|
|---|
| 161 | LIBS="-lurpo -lmmap -lpthread"
|
|---|
| 162 | export LIBS
|
|---|
| 163 | %configure \
|
|---|
| 164 | --enable-shared --disable-static \
|
|---|
| 165 | "--cache-file=%{_topdir}/cache/%{name}.cache"
|
|---|
| 166 |
|
|---|
| 167 | make 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
|
|---|
| 178 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
|---|
| 179 | cp AUTHORS $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
|---|
| 180 | cp COPYING $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
|---|
| 181 | cp README $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
|---|
| 182 | cp NEWS $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
|---|
| 183 | cp ChangeLog $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
|
|---|
| 184 |
|
|---|
| 185 | cp glib/*.dll $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 186 | cp glib/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 187 | cp gmodule/*.dll $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 188 | cp gmodule/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 189 | cp gthread/*.dll $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 190 | cp gthread/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 191 | cp gobject/*.dll $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 192 | cp gobject/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}
|
|---|
| 193 |
|
|---|
| 194 | rm $RPM_BUILD_ROOT%{_libdir}/charset.alias
|
|---|
| 195 | rm $RPM_BUILD_ROOT%{_mandir}/man1/gdbus.1
|
|---|
| 196 | rm $RPM_BUILD_ROOT%{_mandir}/man1/gio-querymodules.1
|
|---|
| 197 | rm $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
|
|---|
| 226 | rm -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 | # Own these directories to not depend on gtk-doc while building:
|
|---|
| 294 | %dir %{_datadir}/gtk-doc
|
|---|
| 295 | %dir %{_datadir}/gtk-doc/html
|
|---|
| 296 | # Own these directories to not depend on gdb
|
|---|
| 297 | %dir %{_datadir}/gdb
|
|---|
| 298 | %dir %{_datadir}/gdb/auto-load
|
|---|
| 299 | %dir %{_datadir}/gdb/auto-load/%{_prefix}
|
|---|
| 300 | %dir %{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}
|
|---|
| 301 |
|
|---|
| 302 | %changelog
|
|---|