-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathcfbuild-libcurl.spec
More file actions
95 lines (72 loc) · 1.69 KB
/
cfbuild-libcurl.spec
File metadata and controls
95 lines (72 loc) · 1.69 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
%define curl_version 8.18.0
Summary: CFEngine Build Automation -- libcurl
Name: cfbuild-libcurl
Version: %{version}
Release: 1
Source: curl-%{curl_version}.tar.gz
License: MIT
Group: Other
Url: https://cfengine.com
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}-buildroot
AutoReqProv: no
%define prefix %{buildprefix}
%prep
mkdir -p %{_builddir}
%setup -q -n curl-%{curl_version}
%if "%{_system_ssl}" == "1"
%define ssl_prefix /usr
%else
%define ssl_prefix %{prefix}
%endif
./configure \
--with-sysroot=%{prefix} \
--with-ssl=%{ssl_prefix} \
--with-zlib=%{prefix} \
--disable-ldap \
--disable-ldaps \
--disable-ntlm \
--without-gnutls \
--without-gssapi \
--without-libpsl \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
--without-winidn \
--prefix=%{prefix} \
CPPFLAGS="-I%{prefix}/include -DAF_LOCAL=AF_UNIX" \
LD_LIBRARY_PATH="%{prefix}/lib" \
LD_RUN_PATH="%{prefix}/lib"
%build
make
%install
rm -rf ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
rm -rf ${RPM_BUILD_ROOT}%{prefix}/share
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libcurl.a
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libcurl.la
%clean
rm -rf $RPM_BUILD_ROOT
%package devel
Summary: CFEngine Build Automation -- libcurl -- development files
Group: Other
AutoReqProv: no
%description
CFEngine Build Automation -- libcurl
%description devel
CFEngine Build Automation -- libcurl
%files
%defattr(-,root,root)
%dir %prefix/bin
%prefix/bin/curl
%prefix/bin/wcurl
%dir %prefix/lib
%prefix/lib/*.so*
%files devel
%defattr(-,root,root)
%dir %prefix/bin
%prefix/bin/curl-config
%prefix/include
%dir %prefix/lib
%prefix/lib/*.so
%prefix/lib/pkgconfig
%changelog