public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: make curl-devel multilib-ready (bug #488922)
Date: Mon, 02 Nov 2026 14:26:09 GMT	[thread overview]
Message-ID: <179362956943.1.3543450833070555115.rpms-curl-e03f2a3193b4@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.21.0-9
Commit : e03f2a3193b496339e4516dec7fc317836a4acc0
Author : Kamil Dudka <kdudka@fedoraproject.org>
Date   : 2009-03-11T09:04:01+00:00
Stats  : +30/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/e03f2a3193b496339e4516dec7fc317836a4acc0?branch=curl-v8.21.0-9

Log:
make curl-devel multilib-ready (bug #488922)

---
diff --git a/curl.spec b/curl.spec
index 63a242e..d56b06b 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,7 +1,7 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 7.19.4
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2
@@ -34,7 +34,10 @@ Summary: Files needed for building applications with libcurl
 Group: Development/Libraries
 Requires: libcurl = %{version}-%{release}
 Requires: libidn-devel, pkgconfig, automake
+
+# redundant
 Requires: libssh2-devel
+
 Provides: curl-devel = %{version}-%{release}
 Obsoletes: curl-devel < %{version}-%{release}
 
@@ -81,6 +84,29 @@ rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
 install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
 install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
 
+# Make curl-devel multilib-ready (bug #488922)
+# solution taken from python.spec
+%define _curlbuild32_h curlbuild-32.h
+%define _curlbuild64_h curlbuild-64.h
+
+%ifarch ppc64 s390x x86_64 ia64 alpha sparc64
+%define _curlbuild_h %{_curlbuild64_h}
+%else
+%define _curlbuild_h %{_curlbuild32_h}
+%endif
+mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
+   $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
+cat > $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h << EOF
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "%{_curlbuild32_h}"
+#elif __WORDSIZE == 64
+#include "%{_curlbuild64_h}"
+#else
+#error "Unknown word size"
+#endif
+EOF
 
 # don't need curl's copy of the certs; use openssl's
 find ${RPM_BUILD_ROOT} -name ca-bundle.crt -exec rm -f '{}' \;
@@ -117,6 +143,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %changelog
+* Wed Mar 11 2009 Kamil Dudka <kdudka@redhat.com> 7.19.4-3
+- make curl-devel multilib-ready (bug #488922)
+
 * Fri Mar 06 2009 Jindrich Novy <jnovy@redhat.com> 7.19.4-2
 - drop .easy-leak patch, causes problems in pycurl (#488791)
 - fix libcurl-devel dependencies (#488895)

                 reply	other threads:[~2026-11-02 14:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179362956943.1.3543450833070555115.rpms-curl-e03f2a3193b4@fedoraproject.org \
    --to=kdudka@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox