Changeset 3f81399 in rtems


Ignore:
Timestamp:
Jul 17, 2009, 2:34:09 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
72f6cb06
Parents:
9c4db573
Message:

Update.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/mingw32/i686/i686-pc-mingw32-mpfr.spec

    r9c4db573 r3f81399  
    44#
    55
    6 %if "%{_prefix}" != "/usr"
    7 %define _prefix                 @_prefix@
    8 %define _exec_prefix            %{_prefix}
    9 %define _bindir                 %{_exec_prefix}/bin
    10 %define _sbindir                %{_exec_prefix}/sbin
    11 %define _libexecdir             %{_exec_prefix}/libexec
    12 %define _datarootdir            %{_prefix}/share
    13 %define _datadir                %{_datarootdir}
    14 %define _sysconfdir             %{_prefix}/etc
    15 %define _sharedstatedir         %{_prefix}/com
    16 %define _localstatedir          %{_prefix}/var
    17 %define _includedir             %{_prefix}/include
    18 %define _libdir                 %{_exec_prefix}/%{_lib}
    19 %define _mandir                 %{_datarootdir}/man
    20 %define _infodir                %{_datarootdir}/info
    21 %define _localedir              %{_datarootdir}/locale
    22 %endif
    236
    247%ifos cygwin cygwin32 mingw mingw32
     
    4326
    4427%if "%{_build}" != "%{_host}"
    45 %define _host_rpmprefix @rpmprefix@%{_host}-
     28%define _host_rpmprefix %{_host}-
    4629%else
    4730%define _host_rpmprefix %{nil}
    4831%endif
    4932
    50 %define gmp_version 4.2.4
    51 %define gmp_rpmvers %{expand:%(echo 4.2.4 | tr - _)}
     33%define mpfr_version 2.3.1
     34%define mpfr_rpmvers %{expand:%(echo 2.3.1 | tr - _)}
    5235%define debug_package %{nil}
    5336
    54 Name:         @rpmprefix@i686-pc-mingw32-gmp
     37Name:         i686-pc-mingw32-mpfr
    5538Release:      0.20090717.1%{?dist}
    5639License:      GPL
     
    6043BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    6144
    62 Version:        %gmp_rpmvers
    63 Summary:        MinGW gmp Libraries
     45Version:        %mpfr_rpmvers
     46Summary:        MinGW MPFR Libraries
    6447
    65 Source0:        ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
     48Source0:        http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2
    6649
    67 Provides:       @rpmprefix@i686-pc-mingw32-gmp-devel = %{version}-%{release}
     50Provides:       i686-pc-mingw32-mpfr-devel = %{version}-%{release}
    6851
    6952%define _mingw32_target          i686-pc-mingw32
    70 
     53%if 0%{?fedora} >= 9
    7154# Fedora ships a mingw toolchain installed to /usr
    7255%define _mingw32_sysroot /usr/%{_mingw32_target}/sys-root
     56%else
     57%define _mingw32_sysroot %{_prefix}/i686-pc-mingw32/sys-root
     58%endif
    7359
    74 BuildRequires:  m4
    75 BuildRequires:  @rpmprefix@i686-pc-mingw32-gcc
     60BuildRequires:  i686-pc-mingw32-gcc
     61BuildRequires:  i686-pc-mingw32-gmp-devel
    7662
    7763%description
    78 MinGW gmp libraries.
     64MinGW MPFR libraries.
    7965
    8066%prep
     
    9076  cd build
    9177
    92   ../gmp-%{gmp_version}/configure \
     78  ../mpfr-%{mpfr_version}/configure \
    9379    --prefix=%{_mingw32_sysroot}/mingw \
    9480    --bindir=%{_bindir} \
     
    128114  chmod a+x $b
    129115  ;;
    130 %if "%{_prefix}" != "/usr"
    131 # Fix up brp-compress to handle %%_prefix != /usr
    132 */brp-compress*)
    133   b=$(basename $a)
    134   sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
    135   chmod a+x $b
    136   ;;
    137 %endif
    138116esac
    139117done
    140118
    141119sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
    142 %if "%{_prefix}" != "/usr"
    143   -e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
    144 %endif
    145120< os_install_post~ > os_install_post
    146121%define __os_install_post . ./os_install_post
    147122
    148123
    149 cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
     124cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
    150125#!/bin/sh
    151126grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-mingw32/(lib|include|sys-root)' \
    152127  | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-mingw32/' | %__find_provides
    153128EOF
    154 chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
    155 %define __find_provides %{_builddir}/%{name}-%{gmp_rpmvers}/find-provides
     129chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
     130%define __find_provides %{_builddir}/%{name}-%{mpfr_rpmvers}/find-provides
    156131
    157 cat << EOF > %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
     132cat << EOF > %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
    158133#!/bin/sh
    159134grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/i686-pc-mingw32/(lib|include|sys-root)' \
    160135  | grep -v '^${RPM_BUILD_ROOT}%{gcclib}/i686-pc-mingw32/' | %__find_requires
    161136EOF
    162 chmod +x %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
    163 %define __find_requires %{_builddir}/%{name}-%{gmp_rpmvers}/find-requires
     137chmod +x %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
     138%define __find_requires %{_builddir}/%{name}-%{mpfr_rpmvers}/find-requires
    164139
    165140%ifnarch noarch
     
    194169%{_mingw32_sysroot}/mingw
    195170%exclude %{_mingw32_sysroot}/mingw/share/info/dir
     171
Note: See TracChangeset for help on using the changeset viewer.