Changeset 500


Ignore:
Timestamp:
Jan 24, 2015, 3:30:53 PM (11 years ago)
Author:
Yuri Dario
Message:

spec: gettext, ignore pthreads rwlock(), they are only stubs.

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
    15%bcond_with jar
    26%bcond_with java
     
    711Name: gettext
    812Version: 0.18.1.1
    9 Release: 3%{?dist}
     13Release: 5%{?dist}
    1014License: GPLv3+ and LGPLv2+
    1115Group: Development/Tools
    1216URL: 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++
     17Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
     18Source1: gettext-legacy-os2.zip
     19
     20BuildRequires: autoconf >= 2.62
     21BuildRequires: automake
     22BuildRequires: libtool, bison
    2023%if %{with java}
    2124# libintl.jar requires gcj >= 4.3 to build
     
    4043
    4144Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
    42 
    43 #Requires(post): info
    44 #Requires(preun): info
    4545
    4646Requires: gettext-libs = %{version}-%{release}
     
    6666Requires: %{name} = %{version}-%{release}
    6767Requires: %{name}-libs = %{version}-%{release}
    68 #Requires(post): info
    69 #Requires(preun): info
    7068# for autopoint
    7169#Requires: git
     
    113111
    114112
     113%package legacy
     114Summary: The old gettext library.
     115
     116%description legacy
     117The old gettext library.
     118
     119
     120%package debug
     121Summary: HLL debug data for exception handling support.
     122
     123%description debug
     124HLL debug data for exception handling support.
     125
     126
    115127%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}
    116129%setup -q
    117 %patch0 -p1
    118 
     130%else
     131%setup -n "%{name}-%{version}" -Tc -a 1
     132echo %{svn_rev}
     133svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     134rm -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
    119137
    120138%build
     
    126144%endif
    127145
    128 export CONFIG_SHELL="/bin/sh" ; \
    129146export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
    130 export LIBS="-lurpo" ; \
     147export LIBS="-lurpo -lmmap" ; \
     148
     149autogen.sh --skip-gnulib --quick
     150
    131151%configure \
    132152    --without-included-gettext --enable-nls \
     
    136156    --disable-git \
    137157    --disable-rpath \
    138     --enable-shared --disable-static \
    139     "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     158    --enable-shared --disable-static
    140159
    141160cd gettext-tools/gnulib-lib
     
    153172    aclocaldir=%{_datadir}/aclocal EXAMPLESFILES=""
    154173
     174rm -f ${RPM_BUILD_ROOT}%{_datadir}/gettext/archive.git.tar.gz
     175
    155176# OS/2 specific files
    156177rm -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}
     178cp -p kintl.dll %{buildroot}%{_libdir}
    161179
    162180
     
    313331%files libs
    314332%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
    319335%if %{with jar}
    320336%{_datadir}/%{name}/libintl.jar
     
    331347#%{_emacs_sitelispdir}/%{name}/*.el
    332348
     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
    333358%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.