public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/popt] pmatilai-v6: Spec cleanup + modernization
Date: Mon, 23 Nov 2026 09:56:16 GMT	[thread overview]
Message-ID: <179542777642.1.1225939607495830239.rpms-popt-729c31bed7f5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/popt
            Branch : pmatilai-v6
            Commit : 729c31bed7f56905c3f98453af8794800ef4afbf
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2018-10-11T14:37:28+03:00
            Stats  : +10/-31 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/popt/c/729c31bed7f56905c3f98453af8794800ef4afbf?branch=pmatilai-v6

            Log:
            Spec cleanup + modernization

- Use modern build helper macros
- Drop support for pre-usrmove versions (Fedora < 17 and RHEL < 7)
- Erm, dont nuke build-root at beginning of %%install

---
diff --git a/popt.spec b/popt.spec
index f189e92..2193893 100644
--- a/popt.spec
+++ b/popt.spec
@@ -1,7 +1,7 @@
 Summary:	C library for parsing command line parameters
 Name:		popt
 Version:	1.16
-Release:	15%{?dist}
+Release:	16%{?dist}
 License:	MIT
 Group:		System Environment/Libraries
 URL:		http://www.rpm5.org/
@@ -44,38 +44,16 @@ The popt-static package includes static libraries of the popt library.
 Install it if you need to link statically with libpopt.
 
 %prep
-%setup -q
-%patch0 -p1 -b .pkgconfig
-%patch1 -p1 -b .execfail
-%patch2 -p1 -b .man-page
-%patch3 -p1 -b .help
-%patch4 -p1 -b .nextarg-memleak
-%patch5 -p1 -b .glob-error
+%autosetup
 
 %build
-%if 0%{?fedora} < 17 && 0%{?rhel} < 7
-%configure --libdir=/%{_lib}
-%else
 %configure
-%endif
-make %{?_smp_mflags}
+%make_build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
-
-%if 0%{?fedora} < 17 && 0%{?rhel} < 7
-# Move libpopt.{so,a} to %{_libdir}
-rm -f $RPM_BUILD_ROOT/%{_lib}/libpopt.{la,so}
-pushd $RPM_BUILD_ROOT/%{_lib}
-mkdir -p $RPM_BUILD_ROOT%{_libdir}
-ln -sf ../../%{_lib}/$(ls libpopt.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/libpopt.so
-popd
-mv -f $RPM_BUILD_ROOT/%{_lib}/libpopt.a $RPM_BUILD_ROOT%{_libdir}/libpopt.a
-mv -f $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}/pkgconfig
-%else
+%make_install
+
 rm -f $RPM_BUILD_ROOT/%{_libdir}/libpopt.la
-%endif
 
 # Multiple popt configurations are possible
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/popt.d
@@ -91,11 +69,7 @@ make check
 %license COPYING
 %doc CHANGES
 %{_sysconfdir}/popt.d
-%if 0%{?fedora} < 17 && 0%{?rhel} < 7
-/%{_lib}/libpopt.so.*
-%else
 %{_libdir}/libpopt.so.*
-%endif
 
 %files devel
 %doc README
@@ -108,6 +82,11 @@ make check
 %{_libdir}/libpopt.a
 
 %changelog
+* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 1.16-16
+- Use modern build helper macros
+- Drop support for pre-usrmove versions (Fedora < 17 and RHEL < 7)
+- Erm, dont nuke build-root at beginning of %%install
+
 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.16-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_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=179542777642.1.1225939607495830239.rpms-popt-729c31bed7f5@fedoraproject.org \
    --to=pmatilai@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