~ubuntu-branches/ubuntu/gutsy/curl/gutsy

« back to all changes in this revision

Viewing changes to packages/AIX/RPM/curl.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20060629150424-be178abcwks1n519
Tags: upstream-7.15.4
ImportĀ upstreamĀ versionĀ 7.15.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Use --define 'nossl 1' on the command line to disable SSL detection
 
2
%{!?nossl:%define SSL 1}
 
3
%{?nossl:%define SSL 0}
 
4
 
 
5
%define name curl
 
6
%define version @VERSION@
 
7
%define release 1%{!?nossl:ssl}
 
8
 
 
9
%define curlroot %{_builddir}/%{name}-%{version}
 
10
 
 
11
Summary: get a file from a FTP or HTTP server.
 
12
Name: %{name}
 
13
Version: %{version}
 
14
Release: %{release}
 
15
License: MIT/X derivate
 
16
Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
 
17
Group: Applications/Internet
 
18
Source: %{name}-%{version}.tar.bz2
 
19
URL: http://curl.haxx.se/
 
20
Provides: curl
 
21
BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
22
Prefix: %{_prefix}
 
23
 
 
24
%description
 
25
curl is a client to get documents/files from servers, using any of the
 
26
supported protocols.  The command is designed to work without user
 
27
interaction or any kind of interactivity.
 
28
 
 
29
curl offers many useful tricks like proxy support, user authentication,
 
30
ftp upload, HTTP post, file transfer resume and more.
 
31
 
 
32
%if %{SSL} == 1
 
33
Note: this version is compiled with SSL support.
 
34
%else
 
35
Note: this version is compiled without SSL support.
 
36
%endif
 
37
 
 
38
%package        devel
 
39
Summary:        Development files for the curl libary
 
40
Group:          Development/Libraries
 
41
%if %{SSL} == 1 
 
42
Requires: openssl >= 0.9.5 
 
43
%endif 
 
44
Requires:       curl = %{version}
 
45
Provides:       curl-devel
 
46
 
 
47
%description devel
 
48
libcurl is the core engine of curl; this packages contains all the 
 
49
libs, headers, and manual pages to develop applications using libcurl.
 
50
 
 
51
%define DEFCC xlc
 
52
 
 
53
%prep
 
54
rm -rf %{curlroot}
 
55
%setup -q
 
56
 
 
57
%build
 
58
 
 
59
# Use the default compiler for this platform - gcc otherwise
 
60
if [[ -z "$CC" ]]
 
61
then
 
62
    if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then
 
63
       export CC=%{DEFCC}
 
64
    else 
 
65
       export CC=gcc
 
66
    fi
 
67
fi
 
68
 
 
69
cd %{curlroot} && (if [ -f configure.in ]; then mv -f configure.in configure.in.
 
70
rpm; fi)
 
71
 
 
72
./configure --prefix=%{prefix} \
 
73
%if %{SSL} == 1
 
74
        --with-ssl
 
75
%else
 
76
        --without-ssl
 
77
%endif
 
78
 
 
79
make
 
80
 
 
81
%install
 
82
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
 
83
make DESTDIR=%{buildroot} install-strip
 
84
 
 
85
( cd $RPM_BUILD_ROOT   # same as %{buildroot}
 
86
 
 
87
 for dir in bin include
 
88
 do
 
89
    mkdir -p usr/$dir
 
90
    cd usr/$dir
 
91
    ln -sf ../..%{prefix}/$dir/* .
 
92
    cd -
 
93
 done
 
94
 
 
95
 mkdir -p usr/lib
 
96
 cd usr/lib
 
97
 ln -sf ../..%{prefix}/lib/* .
 
98
 cd -
 
99
)
 
100
 
 
101
%clean
 
102
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
 
103
 
 
104
%files
 
105
%defattr(-,root,root)
 
106
%attr(0755,root,root) %{_bindir}/curl
 
107
%attr(0644,root,root) %{_mandir}/man1/curl.1*
 
108
%{_libdir}/libcurl.a
 
109
%if %{SSL} == 1
 
110
%{_datadir}/curl/curl-ca-bundle.crt
 
111
%endif
 
112
%doc CHANGES COPYING README RELEASE-NOTES 
 
113
%doc docs/BUGS docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/HISTORY
 
114
%doc docs/INSTALL docs/KNOWN_BUGS 
 
115
%doc docs/MANUAL docs/RESOURCES docs/THANKS docs/VERSIONS docs/TODO
 
116
%doc docs/TheArtOfHttpScripting
 
117
%if %{SSL} == 1
 
118
%doc docs/SSLCERTS
 
119
%endif
 
120
/usr/bin/curl
 
121
/usr/lib/libcurl.a
 
122
 
 
123
%files devel
 
124
%defattr(-,root,root)
 
125
%attr(0755,root,root) %{_bindir}/curl-config
 
126
%attr(0644,root,root) %{_mandir}/man1/curl-config.1*
 
127
%attr(0644,root,root) %{_mandir}/man3/*
 
128
%attr(0644,root,root) %{_includedir}/curl/*
 
129
%{_libdir}/libcurl.la
 
130
%doc docs/BINDINGS docs/INTERNALS docs/LICENSE-MIXING
 
131
/usr/bin/curl-config
 
132
/usr/include/curl