public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: use multilib-rpm-config to install arch-dependent header files
Date: Tue, 03 Nov 2026 12:36:07 GMT	[thread overview]
Message-ID: <179370936703.1.4794686100195977290.rpms-curl-83e65ab057ac@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : 83e65ab057ac1629f38180c34fcf398e33251526
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2016-06-17T17:49:49+02:00
Stats  : +6/-20 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/83e65ab057ac1629f38180c34fcf398e33251526?branch=curl-v8.23.0-3

Log:
use multilib-rpm-config to install arch-dependent header files

---
diff --git a/curl.spec b/curl.spec
index 1f73213..e02730e 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,11 +1,10 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
 Version: 7.49.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
-Source2: curlbuild.h
 
 # fix SIGSEGV of the curl tool while parsing URL with too many globs (#1340757)
 Patch7:   0007-curl-7.49.1-urlglob.patch
@@ -32,6 +31,7 @@ BuildRequires: libmetalink-devel
 BuildRequires: libnghttp2-devel
 BuildRequires: libpsl-devel
 BuildRequires: libssh2-devel
+BuildRequires: multilib-rpm-config
 BuildRequires: nss-devel
 BuildRequires: openldap-devel
 BuildRequires: openssh-clients
@@ -190,15 +190,7 @@ install -d $RPM_BUILD_ROOT%{_datadir}/aclocal
 install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
 
 # Make libcurl-devel multilib-ready (bug #488922)
-%if 0%{?__isa_bits} == 64
-%global _curlbuild_h curlbuild-64.h
-%else
-%global _curlbuild_h curlbuild-32.h
-%endif
-mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
-   $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
-
-install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h
+%multilib_fix_c_header --file %{_includedir}/curl/curlbuild.h
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -233,6 +225,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %changelog
+* Fri Jun 17 2016 Kamil Dudka <kdudka@redhat.com> 7.49.1-3
+- use multilib-rpm-config to install arch-dependent header files
+
 * Fri Jun 03 2016 Kamil Dudka <kdudka@redhat.com> 7.49.1-2
 - fix SIGSEGV of the curl tool while parsing URL with too many globs (#1340757)
 

diff --git a/curlbuild.h b/curlbuild.h
deleted file mode 100644
index b488626..0000000
--- a/curlbuild.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <bits/wordsize.h>
-
-#if __WORDSIZE == 32
-#include "curlbuild-32.h"
-#elif __WORDSIZE == 64
-#include "curlbuild-64.h"
-#else
-#error "Unknown word size"
-#endif

                 reply	other threads:[~2026-11-03 12:36 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=179370936703.1.4794686100195977290.rpms-curl-83e65ab057ac@fedoraproject.org \
    --to=kdudka@redhat.com \
    --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