source: spec/trunk/SPECS/curl.spec@ 451

Last change on this file since 451 was 447, checked in by dmik, 11 years ago

spec: curl: Release 7.37.0-1.

File size: 5.5 KB
Line 
1Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
2Name: curl
3Version: 7.37.0
4Release: 1%{?dist}
5License: MIT
6Group: Applications/Internet
7#Source: http://curl.haxx.se/download/%{name}-%{version}.tar.gz
8
9Provides: webclient
10URL: http://curl.haxx.se/
11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
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
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
28BuildRequires: openssl-devel
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
55Requires: openssl
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
78%prep
79%if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
80%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
87
88# Convert docs to UTF-8
89# NOTE: we do this _before_ applying of all patches, which are already UTF-8
90#for f in CHANGES README; do
91# iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8
92# mv -f ${f}.utf8 ${f}
93#done
94
95# make sure configure is updated to properly support OS/2
96buildconf
97
98#autoreconf
99# replace hard wired port numbers in the test suite
100#sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
101
102%build
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"
111%configure \
112 --disable-ipv6 \
113 --disable-ldaps \
114 --enable-manual \
115 --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
116 --with-gssapi=%{_prefix}/kerberos \
117 --without-libidn \
118 --without-libssh2 \
119 --with-ssl --without-nss \
120 --enable-shared --disable-static
121
122# uncomment to turn off optimizations
123# find -name Makefile | xargs sed -i 's/-O2/-O0/'
124# Remove bogus rpath
125#sed -i \
126# -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
127# -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
128
129make %{?_smp_mflags}
130
131#%check
132#LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
133#export LD_LIBRARY_PATH
134#cd tests
135#make %{?_smp_mflags}
136# use different port range for 32bit and 64bit build, thus make it possible
137# to run both in parallel on the same machine
138#./runtests.pl -a -b%{?__isa_bits}90 -p -v
139
140%install
141rm -rf $RPM_BUILD_ROOT
142
143make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
144
145rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
146
147install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
148install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
149
150#%define _curlbuild_h curlbuild-32.h
151#mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
152# $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
153#install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h
154
155%clean
156rm -rf $RPM_BUILD_ROOT
157
158%files
159%defattr(-,root,root,-)
160%doc CHANGES README* COPYING
161%doc docs/BUGS docs/FAQ docs/FEATURES
162%doc docs/MANUAL docs/RESOURCES
163%doc docs/TheArtOfHttpScripting docs/TODO
164%{_bindir}/curl.exe
165%{_mandir}/man1/curl.1*
166
167%files -n libcurl
168%defattr(-,root,root,-)
169%{_libdir}/curl7.dll
170
171%files -n libcurl-devel
172%defattr(-,root,root,-)
173%doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS
174%doc docs/CONTRIBUTE docs/libcurl/ABI
175%{_bindir}/curl-config*
176%{_includedir}/curl
177%{_libdir}/*.a
178%{_libdir}/pkgconfig/*.pc
179%{_mandir}/man1/curl-config.1*
180%{_mandir}/man3/*
181%{_datadir}/aclocal/libcurl.m4
182
183%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
188* Mon Jan 16 2012 yd
189- rebuild with libc 0.6.4 runtime.
Note: See TracBrowser for help on using the repository browser.