source: spec/trunk/SPECS/curl.spec

Last change on this file was 455, checked in by Yuri Dario, 11 years ago

spec: curl, added debug package with symbolic info for exceptq.

File size: 5.8 KB
RevLine 
[33]1Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
2Name: curl
[447]3Version: 7.37.0
[455]4Release: 2%{?dist}
[33]5License: MIT
6Group: Applications/Internet
[447]7#Source: http://curl.haxx.se/download/%{name}-%{version}.tar.gz
[33]8
9Provides: webclient
10URL: http://curl.haxx.se/
11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
[447]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
[33]20#BuildRequires: groff
21#BuildRequires: krb5-devel
22#BuildRequires: libidn-devel
23#BuildRequires: libssh2-devel >= 1.2
24#BuildRequires: nss-devel
25#BuildRequires: openldap-devel
26#BuildRequires: openssh-clients
27#BuildRequires: openssh-server
[38]28BuildRequires: openssl-devel
[33]29BuildRequires: pkgconfig
30#BuildRequires: stunnel
31
32# valgrind is not available on s390(x)
33%ifnarch s390 s390x
34#BuildRequires: valgrind
35%endif
36
37BuildRequires: zlib-devel
38Requires: libcurl = %{version}-%{release}
39
40# TODO: mention also IMAP(S), POP3(S), SMTP(S) and RTSP protocols
41%description
42cURL is a tool for getting files from HTTP, FTP, FILE, LDAP, LDAPS,
43DICT, TELNET and TFTP servers, using any of the supported protocols.
44cURL is designed to work without user interaction or any kind of
45interactivity. cURL offers many useful capabilities, like proxy support,
46user authentication, FTP upload, HTTP post, and file transfer resume.
47
48%package -n libcurl
49Summary: A library for getting files from web servers
50Group: Development/Libraries
51
52# libssh2 ABI has been changed since libssh2-1.0
53# this forces update of libssh2 before update of libcurl
54#Requires: libssh2 >= 1.2
[38]55Requires: openssl
[33]56
57%description -n libcurl
58This package provides a way for applications to use FTP, HTTP, Gopher and
59other servers for getting files.
60
61%package -n libcurl-devel
62Summary: Files needed for building applications with libcurl
63Group: Development/Libraries
64#Requires: automake
65Requires: libcurl = %{version}-%{release}
66#Requires: libidn-devel
67Requires: pkgconfig
68
69Provides: curl-devel = %{version}-%{release}
70Obsoletes: curl-devel < %{version}-%{release}
71
72%description -n libcurl-devel
73cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and
74Dict servers, using any of the supported protocols. The libcurl-devel
75package includes files needed for developing applications which can
76use cURL's capabilities internally.
77
[455]78%package debug
79Summary: HLL debug data for exception handling support.
80
81%description debug
82HLL debug data for exception handling support.
83
[33]84%prep
[447]85%if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
[33]86%setup -q
[447]87%else
88%setup -n "%{name}-%{version}" -Tc
89svn export -r %{svn_rev} %{svn_url} . --force
90rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
91(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
92%endif
[33]93
94# Convert docs to UTF-8
95# NOTE: we do this _before_ applying of all patches, which are already UTF-8
96#for f in CHANGES README; do
97# iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8
98# mv -f ${f}.utf8 ${f}
99#done
100
[447]101# make sure configure is updated to properly support OS/2
102buildconf
[33]103
104#autoreconf
105# replace hard wired port numbers in the test suite
106#sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
107
108%build
[447]109
110# curl m4 extensions override the nice autoconf PATH_SEPARATOR check with a very
111# stupid method designed to always fail on Windows and OS/2
112export PATH_SEPARATOR=';'
113
114export CFLAGS="-Zomf $RPM_OPT_FLAGS"
115export LDFLAGS="-Zomf -Zhigh-mem -Zargs-wild -Zargs-resp -Zbin-files"
116export LIBS="-lurpo"
[33]117%configure \
118 --disable-ipv6 \
119 --disable-ldaps \
120 --enable-manual \
121 --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
122 --with-gssapi=%{_prefix}/kerberos \
123 --without-libidn \
124 --without-libssh2 \
[38]125 --with-ssl --without-nss \
[447]126 --enable-shared --disable-static
[33]127
128# uncomment to turn off optimizations
129# find -name Makefile | xargs sed -i 's/-O2/-O0/'
130# Remove bogus rpath
131#sed -i \
132# -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
133# -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
134
135make %{?_smp_mflags}
136
137#%check
138#LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
139#export LD_LIBRARY_PATH
140#cd tests
141#make %{?_smp_mflags}
142# use different port range for 32bit and 64bit build, thus make it possible
143# to run both in parallel on the same machine
144#./runtests.pl -a -b%{?__isa_bits}90 -p -v
145
146%install
147rm -rf $RPM_BUILD_ROOT
148
149make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
150
151rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
152
153install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
154install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
155
156#%define _curlbuild_h curlbuild-32.h
157#mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
158# $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
159#install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h
160
161%clean
162rm -rf $RPM_BUILD_ROOT
163
164%files
165%defattr(-,root,root,-)
166%doc CHANGES README* COPYING
167%doc docs/BUGS docs/FAQ docs/FEATURES
168%doc docs/MANUAL docs/RESOURCES
169%doc docs/TheArtOfHttpScripting docs/TODO
170%{_bindir}/curl.exe
171%{_mandir}/man1/curl.1*
172
173%files -n libcurl
174%defattr(-,root,root,-)
175%{_libdir}/curl7.dll
176
177%files -n libcurl-devel
178%defattr(-,root,root,-)
179%doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS
180%doc docs/CONTRIBUTE docs/libcurl/ABI
181%{_bindir}/curl-config*
182%{_includedir}/curl
183%{_libdir}/*.a
184%{_libdir}/pkgconfig/*.pc
185%{_mandir}/man1/curl-config.1*
186%{_mandir}/man3/*
187%{_datadir}/aclocal/libcurl.m4
188
[455]189%files debug
190%defattr(-,root,root)
191%{_bindir}/*.dbg
192%{_libdir}/*.dbg
193
[33]194%changelog
[455]195* Thu Sep 04 2014 yd
196- added debug package with symbolic info for exceptq.
197
[447]198* Tue Sep 2 2014 Dmitriy Kuminov <coding@dmik.org> 7.37.0-1
199- Update to version 7.37.0.
200- Use proper sleep function on OS/2.
201
[282]202* Mon Jan 16 2012 yd
203- rebuild with libc 0.6.4 runtime.
Note: See TracBrowser for help on using the repository browser.