Changeset 500
- Timestamp:
- Jan 24, 2015, 3:30:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/gettext.spec
r168 r500 1 #define svn_url F:/rd/ports/gettext/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/gettext/trunk 3 %define svn_rev 981 4 1 5 %bcond_with jar 2 6 %bcond_with java … … 7 11 Name: gettext 8 12 Version: 0.18.1.1 9 Release: 3%{?dist}13 Release: 5%{?dist} 10 14 License: GPLv3+ and LGPLv2+ 11 15 Group: Development/Tools 12 16 URL: http://www.gnu.org/software/gettext/ 13 Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz 14 15 Patch0: gettext-os2.diff 16 17 #BuildRequires: autoconf >= 2.62 18 #BuildRequires: automake 19 #BuildRequires: libtool, bison, gcc-c++ 17 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 18 Source1: gettext-legacy-os2.zip 19 20 BuildRequires: autoconf >= 2.62 21 BuildRequires: automake 22 BuildRequires: libtool, bison 20 23 %if %{with java} 21 24 # libintl.jar requires gcj >= 4.3 to build … … 40 43 41 44 Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 42 43 #Requires(post): info44 #Requires(preun): info45 45 46 46 Requires: gettext-libs = %{version}-%{release} … … 66 66 Requires: %{name} = %{version}-%{release} 67 67 Requires: %{name}-libs = %{version}-%{release} 68 #Requires(post): info69 #Requires(preun): info70 68 # for autopoint 71 69 #Requires: git … … 113 111 114 112 113 %package legacy 114 Summary: The old gettext library. 115 116 %description legacy 117 The old gettext library. 118 119 120 %package debug 121 Summary: HLL debug data for exception handling support. 122 123 %description debug 124 HLL debug data for exception handling support. 125 126 115 127 %prep 128 %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} 116 129 %setup -q 117 %patch0 -p1 118 130 %else 131 %setup -n "%{name}-%{version}" -Tc -a 1 132 echo %{svn_rev} 133 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 134 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 135 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 136 %endif 119 137 120 138 %build … … 126 144 %endif 127 145 128 export CONFIG_SHELL="/bin/sh" ; \129 146 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \ 130 export LIBS="-lurpo" ; \ 147 export LIBS="-lurpo -lmmap" ; \ 148 149 autogen.sh --skip-gnulib --quick 150 131 151 %configure \ 132 152 --without-included-gettext --enable-nls \ … … 136 156 --disable-git \ 137 157 --disable-rpath \ 138 --enable-shared --disable-static \ 139 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 158 --enable-shared --disable-static 140 159 141 160 cd gettext-tools/gnulib-lib … … 153 172 aclocaldir=%{_datadir}/aclocal EXAMPLESFILES="" 154 173 174 rm -f ${RPM_BUILD_ROOT}%{_datadir}/gettext/archive.git.tar.gz 175 155 176 # OS/2 specific files 156 177 rm -f ${RPM_BUILD_ROOT}%{_libdir}/charset.alias 157 cp gettext-runtime/intl/kintl.dll ${RPM_BUILD_ROOT}%{_libdir} 158 cp gettext-tools/gnulib-lib/gtxtl.dll ${RPM_BUILD_ROOT}%{_libdir} 159 cp gettext-tools/libgettextpo/gtxtp.dll ${RPM_BUILD_ROOT}%{_libdir} 160 cp gettext-tools/src/gtxts.dll ${RPM_BUILD_ROOT}%{_libdir} 178 cp -p kintl.dll %{buildroot}%{_libdir} 161 179 162 180 … … 313 331 %files libs 314 332 %defattr(-,root,root,-) 315 %{_libdir}/kintl.dll 316 %{_libdir}/gtxtl.dll 317 %{_libdir}/gtxtp.dll 318 %{_libdir}/gtxts.dll 333 %{_libdir}/*.dll 334 %exclude %{_libdir}/kintl.dll 319 335 %if %{with jar} 320 336 %{_datadir}/%{name}/libintl.jar … … 331 347 #%{_emacs_sitelispdir}/%{name}/*.el 332 348 349 %files legacy 350 %defattr(-,root,root) 351 %{_libdir}/kintl.dll 352 353 %files debug 354 %defattr(-,root,root) 355 %{_bindir}/*.dbg 356 %{_libdir}/*.dbg 357 333 358 %changelog 359 * Sat Jan 24 2015 yd 360 - r981, ignore pthreads rwlock(), they are only stubs. 361 362 * Wed Jan 14 2015 yd 363 - r963, rebuilt with new libtool, which gave new dll names 364 - added legacy package. 365 - added debug package with symbolic info for exceptq.
Note:
See TracChangeset
for help on using the changeset viewer.