Don't need autotools for rpm build
- Drop buildreq automake - Drop dependency on automake for devel package from F-14, where %{_datadir}/aclocal is included in the filesystem package - Drop dependency on pkgconfig for devel package from F-11, where pkgconfig dependencies are auto-generated
This commit is contained in:
parent
7599b5056b
commit
204dcb1cd0
27
curl.spec
27
curl.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
|
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
|
||||||
Name: curl
|
Name: curl
|
||||||
Version: 7.21.1
|
Version: 7.21.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
|
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
|
||||||
@ -41,7 +41,6 @@ Patch106: 0106-curl-7.21.0-libssh2-valgrind.patch
|
|||||||
Provides: webclient
|
Provides: webclient
|
||||||
URL: http://curl.haxx.se/
|
URL: http://curl.haxx.se/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: groff
|
BuildRequires: groff
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
BuildRequires: libidn-devel
|
BuildRequires: libidn-devel
|
||||||
@ -84,9 +83,17 @@ resume, http proxy tunneling and more.
|
|||||||
%package -n libcurl-devel
|
%package -n libcurl-devel
|
||||||
Summary: Files needed for building applications with libcurl
|
Summary: Files needed for building applications with libcurl
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: automake
|
|
||||||
Requires: libcurl = %{version}-%{release}
|
Requires: libcurl = %{version}-%{release}
|
||||||
|
|
||||||
|
# From Fedora 14, %%{_datadir}/aclocal is included in the filesystem package
|
||||||
|
%if 0%{?fedora} < 14
|
||||||
|
Requires: %{_datadir}/aclocal
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# From Fedora 11, RHEL-6, pkgconfig dependency is auto-detected
|
||||||
|
%if 0%{?fedora} < 11 && 0%{?rhel} < 6
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
Provides: curl-devel = %{version}-%{release}
|
Provides: curl-devel = %{version}-%{release}
|
||||||
Obsoletes: curl-devel < %{version}-%{release}
|
Obsoletes: curl-devel < %{version}-%{release}
|
||||||
@ -123,8 +130,6 @@ done
|
|||||||
%patch105 -p1
|
%patch105 -p1
|
||||||
rm -f tests/data/test1112
|
rm -f tests/data/test1112
|
||||||
|
|
||||||
autoreconf
|
|
||||||
|
|
||||||
# replace hard wired port numbers in the test suite
|
# replace hard wired port numbers in the test suite
|
||||||
sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
|
sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
|
||||||
|
|
||||||
@ -184,8 +189,8 @@ make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
|
|||||||
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
|
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
|
install -d $RPM_BUILD_ROOT%{_datadir}/aclocal
|
||||||
install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
|
install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
|
||||||
|
|
||||||
# Make libcurl-devel multilib-ready (bug #488922)
|
# Make libcurl-devel multilib-ready (bug #488922)
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
@ -231,6 +236,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/aclocal/libcurl.m4
|
%{_datadir}/aclocal/libcurl.m4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 24 2010 Paul Howarth <paul@city-fan.org> 7.21.1-3
|
||||||
|
- fix up patches so there's no need to run autotools in the rpm build
|
||||||
|
- drop buildreq automake
|
||||||
|
- drop dependency on automake for devel package from F-14, where
|
||||||
|
%%{_datadir}/aclocal is included in the filesystem package
|
||||||
|
- drop dependency on pkgconfig for devel package from F-11, where
|
||||||
|
pkgconfig dependencies are auto-generated
|
||||||
|
|
||||||
* Mon Aug 23 2010 Kamil Dudka <kdudka@redhat.com> 7.21.1-2
|
* Mon Aug 23 2010 Kamil Dudka <kdudka@redhat.com> 7.21.1-2
|
||||||
- re-enable test575 on s390(x), already fixed (upstream commit d63bdba)
|
- re-enable test575 on s390(x), already fixed (upstream commit d63bdba)
|
||||||
- modify system headers to work around gcc bug (#617757)
|
- modify system headers to work around gcc bug (#617757)
|
||||||
|
Loading…
Reference in New Issue
Block a user