1%define name curl
2%define version @VERSION@
3%define release 1
4%define prefix /usr
5
6%define builddir $RPM_BUILD_DIR/%{name}-%{version}
7
8Summary: get a file from an FTP or HTTP server.
9Name: %{name}
10Version: %{version}
11Release: %{release}
12Copyright: MPL
13Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
14Packager: Loic Dachary <loic@senga.org>
15Group: Utilities/Console
16Source: %{name}-%{version}.tar.gz
17URL: http://curl.haxx.se/
18BuildRoot: /tmp/%{name}-%{version}-root
19
20%description
21curl is a client to get documents/files from servers, using any of the
22supported protocols. The command is designed to work without user
23interaction or any kind of interactivity.
24
25curl offers a busload of useful tricks like proxy support, user
26authentication, ftp upload, HTTP post, file transfer resume and more.
27
28Note: this version is compiled without SSL (https:) support.
29
30%package	devel
31Summary:	The includes, libs, and man pages to develop with libcurl
32Group:		Development/Libraries
33
34%description devel
35libcurl is the core engine of curl; this packages contains all the libs,
36headers, and manual pages to develop applications using libcurl.
37
38%prep
39rm -rf %{builddir}
40
41%setup
42
43%build
44%configure --without-ssl --prefix=%{prefix}
45make
46
47%install
48rm -rf $RPM_BUILD_ROOT
49make DESTDIR=$RPM_BUILD_ROOT install-strip
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53rm -rf %{builddir}
54
55%post
56/sbin/ldconfig
57
58%postun
59/sbin/ldconfig
60
61%files
62%defattr(-,root,root)
63%attr(0755,root,root) %{_bindir}/curl
64%attr(0644,root,root) %{_mandir}/man1/*
65%{prefix}/lib/libcurl.so*
66%doc CHANGES LEGAL MITX.txt MPL-1.1.txt README docs/BUGS
67%doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/INSTALL docs/INTERNALS
68%doc docs/LIBCURL docs/MANUAL docs/README* docs/RESOURCES docs/TODO
69%doc docs/TheArtOfHttpScripting
70
71%files devel
72%defattr(-,root,root)
73%attr(0644,root,root) %{_mandir}/man3/*
74%attr(0644,root,root) %{_includedir}/curl/*
75%{prefix}/lib/libcurl.a
76%{prefix}/lib/libcurl.la
77%doc docs/examples/*
78
79%changelog
80* Sun Jan  7 2001 Loic Dachary  <loic@senga.org>
81
82        - use _mandir instead of prefix to locate man pages because
83	  _mandir is not always prefix/man/man?.
84
85