Changeset 805 for spec/trunk/SPECS/glib2.spec
- Timestamp:
- Jun 17, 2016, 10:41:47 PM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/glib2.spec (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/glib2.spec
r645 r805 1 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 1604 2 4 3 5 Name: glib2 4 6 %define _name glib 5 Version: 2. 25.156 Release: 5%{?dist}7 Version: 2.33.12 8 Release: 1%{?dist} 7 9 License: LGPLv2.1+ 8 10 Summary: A Library with Convenient Functions Written in C … … 10 12 Group: Development/Libraries/C and C++ 11 13 12 %define svn_url http://svn.netlabs.org/repos/ports/glib/trunk13 %define svn_rev 50814 15 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 15 Source1: glib2-legacy.zip 16 16 17 17 BuildRequires: gcc make subversion zip 18 18 19 # @todo (dmik) later (see below about autogen.sh usage) 20 #BuildRequires: autoconf automake 21 ## @todo (dmik) We need this for the moment, see #93 22 #BuildRequires: libtool = 2.4.2 19 BuildRequires: autoconf automake 20 BuildRequires: libtool > 2.4.5 23 21 24 22 #BuildRequires: fam-devel … … 38 36 Provides: glib2-doc = 2.19.6 39 37 Obsoletes: glib2-doc < 2.19.6 38 40 39 # YD this must be added to force dll install 41 40 Requires: libglib-2_0-0 = %{version} … … 43 42 Requires: libgthread-2_0-0 = %{version} 44 43 Requires: libgobject-2_0-0 = %{version} 45 46 BuildRoot: %{_tmppath}/%{name}-%{version}-build47 44 48 45 %description … … 113 110 to a C programmer and is used by Gtk+ and GNOME. 114 111 115 #%package -n libgio-2_0-0 116 #License: LGPLv2.1+ 117 #Summary: A Library with Convenient Functions Written in C 118 #Group: Development/Libraries/C and C++ 119 # 112 %package -n libgio-2_0-0 113 License: LGPLv2.1+ 114 Summary: A Library with Convenient Functions Written in C 115 Group: Development/Libraries/C and C++ 120 116 # Temporarily disable this, pending further discussion 121 117 # Recommends: gvfs 122 118 123 #%description -n libgio-2_0-0124 #This library provides convenient functions, such as lists and hashes,125 #to a C programmer and is used by Gtk+ and GNOME.119 %description -n libgio-2_0-0 120 This library provides convenient functions, such as lists and hashes, 121 to a C programmer and is used by Gtk+ and GNOME. 126 122 127 123 #%package -n libgio-fam … … 157 153 to a C programmer and is used by Gtk+ and GNOME. 158 154 155 %package legacy 156 Summary: The 2.25 glib2 library. 157 158 %description legacy 159 The 2.25 glib2 library. 160 161 %debug_package 162 159 163 # @todo (dmik) We don't support this macro, put language files into the main package 160 164 #%lang_package … … 164 168 %setup -q 165 169 %else 166 %setup -n "%{name}-%{version}" -Tc 170 %setup -n "%{name}-%{version}" -Tc -a 1 167 171 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 168 172 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" … … 170 174 %endif 171 175 172 # pick up m4 fix necessary for configure to work (remove when switched to that rev) 173 svn export %{svn_url}/m4macros/glib-gettext.m4@892 m4macros/glib-gettext.m4 --force 174 # fix emxexp exports (r904), also to be removed 175 sed -e 's/:space:/[:space:]/g' configure.ac -i 176 177 # @todo (dmik) we can't use autogen.sh ATM because a newer trunk revison (2.33 with fixes) is necesary for that, 178 # also there are some problems with libtool (see #93) so we also can't use autoreconf -fvi (because we need the 179 # fixed ltmain.sh from SVN), and even when it finally works it will rename glib2.dll to glib200.dll so some 180 # -legacy package is necessary... 181 autoconf 182 ## Generate configure and friends 183 #export NOCONFIGURE=1 184 #autogen.sh 176 cat > gtk-doc.make <<EOF 177 EXTRA_DIST = 178 CLEANFILES = 179 EOF 180 touch README INSTALL 181 182 autoreconf -fi 185 183 186 184 %build 187 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"188 185 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 189 export LIBS="-lurpo -lmmap -lpthread" 186 export CFLAGS="%optflags -I/@unixroot/usr/include/bind9" 187 export LIBS="-lurpo -lmmap -lpthread -llwres" 190 188 %configure \ 189 --disable-modular-tests \ 191 190 --enable-shared --disable-static 192 193 # YD fix extra CRLF after pass_all and execute it again (libtool hack breaks sed substitutions)194 sed -i "s/pass_all/pass_all\'\n_os2_dummy_var=\'/" config.status195 config.status196 191 197 192 make OPT="$CFLAGS" %{?_smp_mflags} … … 212 207 cp NEWS $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} 213 208 cp ChangeLog $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} 214 215 cp glib/.libs/*.dll $RPM_BUILD_ROOT%{_libdir}216 cp glib/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}217 cp gmodule/.libs/*.dll $RPM_BUILD_ROOT%{_libdir}218 cp gmodule/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}219 cp gthread/.libs/*.dll $RPM_BUILD_ROOT%{_libdir}220 cp gthread/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}221 cp gobject/.libs/*.dll $RPM_BUILD_ROOT%{_libdir}222 cp gobject/.libs/*.lib $RPM_BUILD_ROOT%{_libdir}223 224 rm $RPM_BUILD_ROOT%{_libdir}/charset.alias225 rm $RPM_BUILD_ROOT%{_mandir}/man1/gdbus.1226 rm $RPM_BUILD_ROOT%{_mandir}/man1/gio-querymodules.1227 rm $RPM_BUILD_ROOT%{_mandir}/man1/gsettings.1228 209 229 210 #install -D -m0644 glib2.sh $RPM_BUILD_ROOT/etc/profile.d/zzz-glib2.sh … … 249 230 rm $RPM_BUILD_ROOT%{_libdir}/*.la 250 231 #%endif 232 233 # copy legacy files 234 cp -p gio2.dll %{buildroot}%{_libdir} 235 cp -p glib2.dll %{buildroot}%{_libdir} 236 cp -p gmod2.dll %{buildroot}%{_libdir} 237 cp -p gobj2.dll %{buildroot}%{_libdir} 238 cp -p gthr2.dll %{buildroot}%{_libdir} 239 251 240 %find_lang %{_name}20 252 241 #%fdupes $RPM_BUILD_ROOT … … 262 251 #/etc/profile.d/zzz-glib2.* 263 252 #/sbin/conf.d/SuSEconfig.glib2 264 #%{_bindir}/gio-querymodules* 253 %{_bindir}/gio-querymodules* 254 %{_libdir}/charset.alias 255 %{_datadir}/bash-completion/completions/* 265 256 266 257 #%files branding-upstream … … 271 262 %defattr(-, root, root) 272 263 %{_libdir}/glib*.dll 264 %exclude %{_libdir}/*2.dll 273 265 274 266 %files -n libgmodule-2_0-0 275 267 %defattr(-, root, root) 276 268 %{_libdir}/gmod*.dll 269 %exclude %{_libdir}/*2.dll 277 270 278 271 %files -n libgobject-2_0-0 279 272 %defattr(-, root, root) 280 273 %{_libdir}/gobj*.dll 274 %exclude %{_libdir}/*2.dll 281 275 282 276 %files -n libgthread-2_0-0 283 277 %defattr(-, root, root) 284 278 %{_libdir}/gthr*.dll 285 286 #%files -n libgio-2_0-0 287 #%defattr(-, root, root) 288 #%{_libdir}/libgio*.so.* 279 %exclude %{_libdir}/*2.dll 280 281 %files -n libgio-2_0-0 282 %defattr(-, root, root) 283 %{_libdir}/gio*.dll 284 %exclude %{_libdir}/*2.dll 289 285 #%dir %{_libdir}/gio 290 286 #%dir %{_libdir}/gio/modules … … 298 294 #%{_libdir}/gio/modules/libgiofam.so 299 295 300 # @todo (dmik) We don't support this macro, put language files into the main package301 #%files lang -f %{_name}20.lang302 303 296 %files devel 304 297 %defattr(-,root,root) … … 306 299 %{_bindir}/gobject-* 307 300 %{_bindir}/gtester* 308 %doc %{_mandir}/man?/glib-*.* 309 %doc %{_mandir}/man?/gobject-*.* 310 %doc %{_mandir}/man?/gtester*.* 301 %{_bindir}/gresource* 302 %{_bindir}/gsettings* 303 %{_bindir}/gdbus* 304 #%doc %{_mandir}/man?/glib-*.* 305 #%doc %{_mandir}/man?/gobject-*.* 306 #%doc %{_mandir}/man?/gtester*.* 311 307 %{_datadir}/aclocal/*.m4 312 308 %{_datadir}/glib-2.0 313 309 %{_includedir}/glib-2.0 314 #%{_includedir}/gio-unix-2.0310 %{_includedir}/gio-unix-2.0 315 311 %{_libdir}/*.a 316 %{_libdir}/*.lib317 312 %{_libdir}/glib-2.0 318 313 %{_libdir}/pkgconfig/*.pc 319 %{_datadir}/gtk-doc/html/gio 320 %{_datadir}/gtk-doc/html/glib 321 %{_datadir}/gtk-doc/html/gobject 314 %{_libdir}/gdbus-2.0/* 315 #%{_datadir}/gtk-doc/html/gio 316 #%{_datadir}/gtk-doc/html/glib 317 #%{_datadir}/gtk-doc/html/gobject 322 318 #%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py 323 319 %{_datadir}/gdb/auto-load/* 324 320 # Own these directories to not depend on gtk-doc while building: 325 %dir %{_datadir}/gtk-doc326 %dir %{_datadir}/gtk-doc/html321 #%dir %{_datadir}/gtk-doc 322 #%dir %{_datadir}/gtk-doc/html 327 323 # Own these directories to not depend on gdb 328 324 %dir %{_datadir}/gdb … … 331 327 #%dir %{_datadir}/gdb/auto-load/%{_prefix}/%{_lib} 332 328 329 %files legacy 330 %defattr(-,root,root) 331 %{_libdir}/*2.dll 332 333 333 %changelog 334 * Fri Jun 17 2016 yd <yd@os2power.com> 2.33.12-1 335 - build public version. 336 - add legacy package for 2.25 compatibility. 337 334 338 * Wed Jan 27 2016 Dmitriy Kuminov <coding@dmik.org> 2.25.15-5 335 339 - Remove .la files from distribution.
Note:
See TracChangeset
for help on using the changeset viewer.
