-
Notifications
You must be signed in to change notification settings - Fork 183
/
curl.spec
51 lines (42 loc) · 1.28 KB
/
curl.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
### RPM external curl 7.79.0
Source: http://curl.haxx.se/download/%{n}-%{realversion}.tar.gz
Requires: zlib
%prep
%setup -n %{n}-%{realversion}
%build
%ifos darwin
KERBEROS_ROOT=/usr/heimdal
%else
KERBEROS_ROOT=/usr
%endif
./configure \
--prefix=%{i} \
--disable-silent-rules \
--disable-static \
--without-libidn \
--without-zstd \
--disable-ldap \
--with-zlib=${ZLIB_ROOT} \
--without-nss \
--without-libssh2 \
--with-gssapi=${KERBEROS_ROOT} \
--with-openssl
make %{makeprocesses}
%install
make install
# Trick to get our version of curl pick up our version of its associated shared
# library (which is different from the one coming from the system!).
%ifos darwin
install_name_tool -id %{i}/lib/libcurl-cms.dylib -change %{i}/lib/libcurl.4.dylib %{i}/lib/libcurl-cms.dylib %{i}/lib/libcurl.4.dylib
install_name_tool -change %{i}/lib/libcurl.4.dylib %{i}/lib/libcurl-cms.dylib %{i}/bin/curl
ln -s libcurl.4.dylib %{i}/lib/libcurl-cms.dylib
%endif
# Remove pkg-config to avoid rpm-generated dependency on /usr/bin/pkg-config
# which we neither need nor use at this time.
rm -rf %{i}/lib/pkgconfig
# Strip libraries, we are not going to debug them.
%define strip_files %{i}/lib
# Read documentation online.
%define drop_files %{i}/share
%post
%{relocateConfig}bin/curl-config