mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
P R Schaffner updated this to work for 7.11.0
This commit is contained in:
parent
220caed248
commit
08e286ed68
@ -1,22 +1,23 @@
|
|||||||
%define name curl-ssl
|
%define name curl-ssl
|
||||||
%define tarball curl
|
%define tarball curl
|
||||||
%define version @VERSION@
|
%define version 7.11.0
|
||||||
%define release 1
|
%define release 1
|
||||||
%define prefix /usr
|
|
||||||
|
|
||||||
%define builddir $RPM_BUILD_DIR/%{tarball}-%{version}
|
%define curlroot %{_builddir}/%{tarball}-%{version}
|
||||||
|
|
||||||
Summary: get a file from a FTP, GOPHER or HTTP server.
|
Summary: get a file from a FTP, GOPHER or HTTP server.
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Copyright: MPL
|
Copyright: MIT/X derivate
|
||||||
Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
|
Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
|
||||||
Packager: Loic Dachary <loic@senga.org>
|
Packager: Troy Engel <tengel@sonic.net>
|
||||||
Group: Utilities/Console
|
Group: Utilities/Console
|
||||||
Source: %{tarball}-%{version}.tar.gz
|
Source: %{tarball}-%{version}.tar.gz
|
||||||
URL: http://curl.haxx.se/
|
URL: http://curl.haxx.se/
|
||||||
BuildRoot: /tmp/%{tarball}-%{version}-root
|
Provides: curl
|
||||||
|
Obsoletes: curl
|
||||||
|
BuildRoot: %{_tmppath}/%{tarball}-%{version}-root
|
||||||
Requires: openssl >= 0.9.5
|
Requires: openssl >= 0.9.5
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -31,27 +32,29 @@ authentication, ftp upload, HTTP post, file transfer resume and more.
|
|||||||
Summary: The includes, libs, and man pages to develop with libcurl
|
Summary: The includes, libs, and man pages to develop with libcurl
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: openssl-devel >= 0.9.5
|
Requires: openssl-devel >= 0.9.5
|
||||||
|
Provides: curl-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
libcurl is the core engine of curl; this packages contains all the libs,
|
libcurl is the core engine of curl; this packages contains all the libs,
|
||||||
headers, and manual pages to develop applications using libcurl.
|
headers, and manual pages to develop applications using libcurl.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
rm -rf %{builddir}
|
|
||||||
|
|
||||||
%setup -n %{tarball}-%{version}
|
%setup -q -n %{tarball}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --prefix=%{prefix} --with-ssl
|
cd %{curlroot} && (if [ -f configure.in ]; then mv -f configure.in configure.in.rpm; fi)
|
||||||
|
%configure
|
||||||
|
cd %{curlroot} && (if [ -f configure.in.rpm ]; then mv -f configure.in.rpm configure.in; fi)
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install-strip
|
make DESTDIR=%{buildroot} install-strip
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
||||||
rm -rf %{builddir}
|
[ "%{curlroot}" != "/" ] && rm -rf %{curlroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -62,17 +65,20 @@ rm -rf %{builddir}
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(0755,root,root) %{_bindir}/curl
|
%attr(0755,root,root) %{_bindir}/curl
|
||||||
%attr(0644,root,root) %{_mandir}/man1/*
|
%attr(0644,root,root) %{_mandir}/man1/curl.1*
|
||||||
%{_libdir}/libcurl.so*
|
%{_libdir}/libcurl.so*
|
||||||
%doc CHANGES LEGAL MITX.txt MPL-1.1.txt README docs/BUGS
|
%{_datadir}/curl/curl-ca-bundle.crt
|
||||||
%doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/INSTALL docs/INTERNALS
|
%doc CHANGES COPYING README testcurl.sh docs/BUGS docs/SSLCERTS
|
||||||
%doc docs/LIBCURL docs/MANUAL docs/README* docs/RESOURCES docs/TODO
|
%doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/HISTORY docs/INSTALL
|
||||||
%doc docs/TheArtOfHttpScripting
|
%doc docs/KNOWN_BUGS docs/MANUAL docs/RESOURCES docs/THANKS
|
||||||
|
%doc docs/TODO docs/VERSIONS docs/TheArtOfHttpScripting tests
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%attr(0755,root,root) %{_bindir}/curl-config
|
||||||
|
%attr(0644,root,root) %{_mandir}/man1/curl-config.1*
|
||||||
%attr(0644,root,root) %{_mandir}/man3/*
|
%attr(0644,root,root) %{_mandir}/man3/*
|
||||||
%attr(0644,root,root) %{_includedir}/curl/*
|
%attr(0644,root,root) %{_includedir}/curl/*
|
||||||
%{_libdir}/libcurl.a
|
%{_libdir}/libcurl.a
|
||||||
%{_libdir}/libcurl.la
|
%{_libdir}/libcurl.la
|
||||||
%doc docs/examples/*
|
%doc docs/BINDINGS docs/INTERNALS docs/examples/* docs/libcurl-the-guide
|
||||||
|
Loading…
Reference in New Issue
Block a user