Changeset 669


Ignore:
Timestamp:
Feb 24, 2016, 1:16:31 AM (9 years ago)
Author:
valerius
Message:

spec: libidl: Added generation of both OMF and a.out libs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified spec/trunk/SPECS/libidl.spec

    r659 r669  
    2424Url:            http://www.gnome.org
    2525Version:        0.8.14
    26 Release:        1%{?dist}
     26Release:        2%{?dist}
    2727#Release:        42.20
    2828# NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf)
     
    7272different CORBA implementations.
    7373
     74%debug_package
     75
    7476%prep
    7577%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}
     
    8284%endif
    8385
    84 autoreconf -fi
    85 
    8686%build
    8787export \
    88         PATH=`echo $PATH | tr '\\\' '/'` \
    89         EXEEXT=".exe" IMPLIBPREF="" IMPLIBSUFF="_dll.lib" \
    90         LDFLAGS="-Zomf -Zhigh-mem -lurpo -lmmap -lpthread -lintl" CFLAGS="-Zomf -D__OS2__ -D__EMX__" \
    91         PATH_SEPARATOR=";" PATHSEP=";" AWK=gawk SED=sed GREP=grep \
    92         LD=gcc AR=emxomfar STRIP=strip RANLIB=echo \
    93         ECHO=echo PKG_CONFIG=pkg-config CC=gcc \
    94         LEX=flex YACC="bison -y" HAVE_YACC=yes \
    95         EMXOMFLD_TYPE="wlink" EMXOMFLD_LINKER="wl.exe"
     88        LDFLAGS="-Zhigh-mem -lintl" CFLAGS="-D__OS2__ -D__EMX__" RANLIB=echo
     89
     90autoreconf -fiv
    9691
    9792%configure \
    98         --prefix=%{_prefix} \
    99         --enable-shared \
    100         --enable-static
     93        --prefix=%{_prefix} \
     94        --enable-shared \
     95        --enable-static
    10196
    102 # --with-pic
     97# Work around ASH bug: change RANLIB="echo\n" to RANLIB="echo" in libtool
     98sed -e ':a;N;$!ba;s/RANLIB\=\"echo\n/RANLIB="echo/g' \
     99        <%{_builddir}/%{?buildsubdir}/libtool \
     100        >%{_builddir}/%{?buildsubdir}/libtool2
     101rm -rf %{_builddir}/%{?buildsubdir}/libtool
     102mv -f %{_builddir}/%{?buildsubdir}/libtool2 %{_builddir}/%{?buildsubdir}/libtool
    103103
    104104%{__make} %{?jobs:-j%jobs}
     
    111111rm -f %{buildroot}%{_datadir}/info/dir
    112112# rm -f %{buildroot}%{_libdir}/*.lib
    113 # emxomf -o %{buildroot}%{_libdir}/IDL-2.lib %{buildroot}%{_libdir}/IDL-2.a
    114 # emximp -o %{buildroot}%{_libdir}/IDL-2_dll.lib %{buildroot}%{_libdir}/IDL-20.dll
    115 # emximp -o %{buildroot}%{_libdir}/IDL-20_dll.lib %{buildroot}%{_libdir}/IDL-20.dll
     113emxomf -o %{buildroot}%{_libdir}/IDL-2.lib %{buildroot}%{_libdir}/IDL-2.a
     114emximp -o %{buildroot}%{_libdir}/IDL-2_dll.lib %{buildroot}%{_libdir}/idl20.dll
     115emximp -o %{buildroot}%{_libdir}/IDL-20_dll.lib %{buildroot}%{_libdir}/idl20.dll
     116# change shell path in libIDL-config-2
     117sed -e 's-\#\! \/bin\/sh-#! /@unixroot/usr/bin/sh-g' \
     118        <%{buildroot}%{_bindir}/libIDL-config-2 \
     119        >%{buildroot}%{_bindir}/libIDL-config-1
     120rm -rf %{buildroot}%{_bindir}/libIDL-config-2
     121mv -f %{buildroot}%{_bindir}/libIDL-config-1 %{buildroot}%{_bindir}/libIDL-config-2
    116122
    117123%clean
     
    124130%post devel
    125131### @todo Replace with ``%%info_post %%{_name}2.info`` when its available.
    126 if [ -f %{_infodir}/%{_name}2.info ]; then 
     132if [ -f %{_infodir}/%{_name}2.info ]; then
    127133    %{_sbindir}/install-info.exe %{_infodir}/%{_name}2.info %{_infodir}/dir
    128134fi
     
    130136%postun devel
    131137### @todo Replace with ``%%info_postun %%{_name}2.info`` when its available.
    132 if [ $1 -eq 0 ]; then 
    133     if [ -f %{_infodir}/%{_name}2.info ]; then 
     138if [ $1 -eq 0 ]; then
     139    if [ -f %{_infodir}/%{_name}2.info ]; then
    134140        %{_sbindir}/install-info.exe --delete %{_infodir}/%{_name}2.info %{_infodir}/dir
    135     fi 
     141    fi
    136142fi
    137143
     
    149155%doc %{_infodir}/%{_name}2.info
    150156%{_libdir}/pkgconfig/*.pc
    151 %{_libdir}/idl*.dbg
     157%{_libdir}/IDL-2.a
     158%{_libdir}/IDL-2_dll.a
     159%{_libdir}/IDL-20_dll.a
    152160%{_libdir}/IDL-2.lib
    153161%{_libdir}/IDL-2_dll.lib
     
    155163
    156164%changelog
     165* Thu Feb 18 2016 Valery Sedletski - <_valerius@mail.ru> 0.8.14-2
     166- changed libs format to both a.out and OMF
     167- added debug package
     168- added OS/2 DLL shortname
     169
    157170* Thu Dec 03 2015 Valery Sedletski - <_valerius@mail.ru> Initial OS/2 build
    158171- Initial OS/2 port
Note: See TracChangeset for help on using the changeset viewer.