Ignore:
Timestamp:
Sep 2, 2014, 12:24:47 PM (11 years ago)
Author:
dmik
Message:

spec: curl: Release 7.37.0-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/curl.spec

    r282 r447  
    11Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
    22Name: curl
    3 Version: 7.21.1
    4 Release: 4%{?dist}
     3Version: 7.37.0
     4Release: 1%{?dist}
    55License: MIT
    66Group: Applications/Internet
    7 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.gz
    8 
    9 Patch0: curl-os2.diff
     7#Source: http://curl.haxx.se/download/%{name}-%{version}.tar.gz
    108
    119Provides: webclient
     
    1311BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1412
    15 #BuildRequires: automake
     13%define svn_url     http://svn.netlabs.org/repos/ports/curl/trunk
     14%define svn_rev     831
     15
     16Source: %{name}-%{version}-r%{svn_rev}.zip
     17
     18BuildRequires: gcc make subversion zip automake libtool
     19
    1620#BuildRequires: groff
    1721#BuildRequires: krb5-devel
     
    7377
    7478%prep
     79%if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
    7580%setup -q
     81%else
     82%setup -n "%{name}-%{version}" -Tc
     83svn export -r %{svn_rev} %{svn_url} . --force
     84rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
     85(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
     86%endif
    7687
    7788# Convert docs to UTF-8
     
    8293#done
    8394
    84 %patch0 -p1 -b .os2~
     95# make sure configure is updated to properly support OS/2
     96buildconf
    8597
    8698#autoreconf
     
    89101
    90102%build
    91 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
    92 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
    93 export LIBS="-lurpo -lmmap -lpthread" ; \
     103
     104# curl m4 extensions override the nice autoconf PATH_SEPARATOR check with a very
     105# stupid method designed to always fail on Windows and OS/2
     106export PATH_SEPARATOR=';'
     107
     108export CFLAGS="-Zomf $RPM_OPT_FLAGS"
     109export LDFLAGS="-Zomf -Zhigh-mem -Zargs-wild -Zargs-resp -Zbin-files"
     110export LIBS="-lurpo"
    94111%configure \
    95112    --disable-ipv6 \
     
    101118    --without-libssh2 \
    102119    --with-ssl --without-nss \
    103     --enable-shared --disable-static \
    104     "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     120    --enable-shared --disable-static
    105121
    106122# uncomment to turn off optimizations
     
    132148install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
    133149
    134 install -m 755 lib/curl7.dll $RPM_BUILD_ROOT/%{_libdir}
    135 #install -m 755 lib/.libs/curl.lib $RPM_BUILD_ROOT/%{_libdir}
    136 install -m 755 lib/.libs/curl_s.a $RPM_BUILD_ROOT/%{_libdir}
    137 
    138150#%define _curlbuild_h curlbuild-32.h
    139151#mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
     
    143155%clean
    144156rm -rf $RPM_BUILD_ROOT
    145 
    146 #%post -n libcurl -p /sbin/ldconfig
    147 
    148 #%postun -n libcurl -p /sbin/ldconfig
    149157
    150158%files
     
    168176%{_includedir}/curl
    169177%{_libdir}/*.a
    170 #%{_libdir}/*.lib
    171178%{_libdir}/pkgconfig/*.pc
    172179%{_mandir}/man1/curl-config.1*
     
    175182
    176183%changelog
     184* Tue Sep 2 2014 Dmitriy Kuminov <coding@dmik.org> 7.37.0-1
     185- Update to version 7.37.0.
     186- Use proper sleep function on OS/2.
     187
    177188* Mon Jan 16 2012 yd
    178189- rebuild with libc 0.6.4 runtime.
Note: See TracChangeset for help on using the changeset viewer.