File curl-win32.spec of Package curl-win32
#
# spec file for package curl (Version 7.18.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: curl-win32
BuildRequires: cross-mingw-binutils cross-mingw-gcc cross-mingw-runtime cross-mingw-w32api
#BuildRequires: libcares-devel libidn-devel openldap2-devel openssl-devel zlib-devel
%{expand:%(sed -n -e '/Version:/p;/^%package/q' < %_sourcedir/curl.spec)}
Release: 1
License: BSD 3-Clause; X11/MIT
Group: Productivity/Networking/Web/Utilities
Summary: A Tool for Transferring Data from URLs
Url: http://curl.haxx.se/
Source: curl-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source99: curl.spec
%description
Curl is a client to get documents and files from or send documents to a
server using any of the supported protocols (HTTP, HTTPS, FTP, GOPHER,
DICT, TELNET, LDAP, or FILE). The command is designed to work without
user interaction or any kind of interactivity.
%prep
%setup -q -n curl-%version
%build
#autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DWINVER=0x501"
export CXXFLAGS="$CFLAGS"
./configure \
--host=i386-mingw32msvc \
--prefix=/opt/cross/i386-mingw32msvc \
--enable-ipv6 \
%if 0
--enable-ares \
%endif
--enable-hidden-symbols \
--disable-static
make %{?jobs:-j %jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
# no need for man pages here
rm -r $RPM_BUILD_ROOT/opt/cross/i386-mingw32msvc/share/man
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README RELEASE-NOTES
/opt/cross/i386-mingw32msvc