public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Robert Scheck <robert@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/popt] pmatilai-v6: Conditionalize static subpackage during build-time
Date: Mon, 23 Nov 2026 09:56:25 GMT	[thread overview]
Message-ID: <179542778500.1.14186697299367933246.rpms-popt-cc9c1c577d0b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/popt
Branch : pmatilai-v6
Commit : cc9c1c577d0bb85f3aba6242ef2c7991af538163
Author : Robert Scheck <robert@fedoraproject.org>
Date   : 2021-03-06T09:23:56+01:00
Stats  : +10/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/popt/c/cc9c1c577d0bb85f3aba6242ef2c7991af538163?branch=pmatilai-v6

Log:
Conditionalize static subpackage during build-time

---
diff --git a/popt.spec b/popt.spec
index 85b9c70..75faae3 100644
--- a/popt.spec
+++ b/popt.spec
@@ -5,13 +5,13 @@
 Summary:        C library for parsing command line parameters
 Name:           popt
 Version:        %{ver}%{?snap:~%{snap}}
-Release:        3%{?dist}
+Release:        4%{?dist}
 License:        MIT
 URL:            https://github.com/rpm-software-management/popt/
 Source0:        http://ftp.rpm.org/popt/releases/popt-1.x/%{name}-%{srcver}.tar.gz
-BuildRequires: make
 BuildRequires:  gcc
 BuildRequires:  gettext
+BuildRequires:  make
 
 %description
 Popt is a C library for parsing command line parameters. Popt was
@@ -32,6 +32,7 @@ The popt-devel package includes header files and libraries necessary
 for developing programs which use the popt C library. It contains the
 API documentation of the popt library, too.
 
+%if 0%{!?_without_static:1}
 %package static
 Summary:        Static library for parsing command line parameters
 Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
@@ -39,12 +40,13 @@ Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
 %description static
 The popt-static package includes static libraries of the popt library.
 Install it if you need to link statically with libpopt.
+%endif
 
 %prep
 %autosetup -n %{name}-%{srcver}
 
 %build
-%configure
+%configure %{?_without_static:--disable-static}
 %make_build
 
 %install
@@ -76,10 +78,15 @@ make check
 %{_includedir}/popt.h
 %{_mandir}/man3/popt.3*
 
+%if 0%{!?_without_static:1}
 %files static
 %{_libdir}/libpopt.a
+%endif
 
 %changelog
+* Sat Mar 06 2021 Robert Scheck <robert@fedoraproject.org> 1.18-4
+- Conditionalize static subpackage during build-time
+
 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.18-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
 

                 reply	other threads:[~2026-11-23  9:56 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=179542778500.1.14186697299367933246.rpms-popt-cc9c1c577d0b@fedoraproject.org \
    --to=robert@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