public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/pcsc-perl] rawhide: Modernize the spec file
Date: Wed, 25 Nov 2026 12:16:11 GMT [thread overview]
Message-ID: <179560897194.1.353223213003290240.rpms-pcsc-perl-1bb5e136155b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pcsc-perl
Branch : rawhide
Commit : 1bb5e136155be139ea0d712d81498bd21433a1d4
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-11-25T13:15:14+01:00
Stats : +31/-45 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/pcsc-perl/c/1bb5e136155be139ea0d712d81498bd21433a1d4?branch=rawhide
Log:
Modernize the spec file
---
diff --git a/pcsc-perl-1.4.14.tar.bz2.asc b/pcsc-perl-1.4.14.tar.bz2.asc
deleted file mode 100644
index cee3e41..0000000
--- a/pcsc-perl-1.4.14.tar.bz2.asc
+++ /dev/null
@@ -1,17 +0,0 @@
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1
-
-iQIcBAABCAAGBQJWTfd4AAoJEHihtN/o+cV+aakP/A+eL/1LkC/krBroBZRmlOrw
-89XHlR7mQtJT7Q3/cDRX1jyxwm4LEGxTtVf5VdadeHheAWFryJpcF9Ui8999rIyz
-3DggC/XZuDFG1J+HBTmpHILR+c+CcLBd6RHv9KK2YF5hpcrRa+DfeahtvNiTEDwR
-Lz0Vfw72pE0PYvXKX8Jugn0M92C1U6OWY6ofAWHrjv4iiTWmnk7Hh0bsRaUhXZ8l
-m2Z7CYEtvQ4rm3LZzYQla2FCzlUo8JQ8i+VX42FaUNpAGku+rQPr3oXuylUUHi/B
-LjRYt343NYzq145mn1iAwXgoWVJlI8z56eLCoo5i9lgbEuF13NYUoLapQM8n8Puc
-z5esmR0C/kgAwU4yUmUdRSeBZFrC9IVfgkSxTv8/aix+OF+LU5SMa6tMAHQ9E+JP
-S/KuRLrPsoszGIiSdegE/XY66OaxuOnVzv/K8Mjjs2R0BUSp1FUodM6MhvD/FVaY
-8vunrnMybL5ctjRFfpV1QPBFfNENEmujbaxcKPhMq2Jah81eDTNScd471UkaYI0i
-fHDEnHMrKBgvZooUEKCoLZBJsrHY9nifbvsa5ZZeCXfNsG+wfvfJidh7gvda+1nb
-VfFJ3g1XJ6vmjtMzqC4iLrC3k5IqH+SawF17zqWVXqx9AmkfWHIa6i0mTPZ/hBEO
-zUWPoliu7YhB6yc7V0hO
-=NBNV
------END PGP SIGNATURE-----
diff --git a/pcsc-perl.spec b/pcsc-perl.spec
index 3bafeb1..0b87718 100644
--- a/pcsc-perl.spec
+++ b/pcsc-perl.spec
@@ -1,35 +1,39 @@
-%define pcscver 1.3.0
-%define pcsclib libpcsclite.so.1
+%global upstream_name Chipcard-PCSC
+%define pcsc_soname libpcsclite.so.1
%if 0%{?__isa_bits} == 64
%define mark64 ()(64bit)
%endif
-%global upstream_name Chipcard-PCSC
-
Name: pcsc-perl
Version: 1.4.16
Release: %autorelease
Summary: Perl interface to the PC/SC smart card library
-
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: https://pcsc-perl.apdu.fr/
Source0: %{url}%{upstream_name}-v%{version}.tar.gz
Source1: %{url}%{upstream_name}-v%{version}.tar.gz.asc
-
-BuildRequires: gcc
+# <https://ludovic-rousseau.pages-perso.free.fr/gpg_key_E8F9C57E.txt> contains
+# SHA-1 signatures.
+# A resigned F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E key from a keyserver is
+# rejected by Sequoia with "No binding signature at time
+# 2023-11-21T20:36:51Z".
BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: gcc
BuildRequires: glibc-common
BuildRequires: grep
BuildRequires: make
-BuildRequires: pcsc-lite-devel >= %{pcscver}
-BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
+BuildRequires: perl-interpreter
BuildRequires: perl(Config)
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
-Requires: %{pcsclib}%{?mark64}
+BuildRequires: pkgconf-pkg-config
+BuildRequires: pkgconfig(libpcsclite) >= 1.3.0
+# No tests are performed
+Requires: pcsc-lite-libs%{?_isa} >= 1.3.0
+Requires: %{pcsc_soname}%{?mark64}
Provides: perl-pcsc = %{version}-%{release}
%description
@@ -41,33 +45,32 @@ interface (pcsc-lite) from a Perl script.
chmod 644 examples/* # avoid dependencies
f=Changelog ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
-
%build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" DEFINE=-Wall
-make %{?_smp_mflags}
-
+if ! grep -qF 'dlopen("%{pcsc_soname}"' PCSCperl.h ; then # sanity check
+ echo "ERROR: pcsc lib name mismatch in PCSCperl.h/dependencies" ; exit 1
+fi
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" DEFINE=-Wall
+%{make_build}
%install
-make pure_install DESTDIR=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
-find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+%{make_install}
+find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -delete
chmod -R u+w $RPM_BUILD_ROOT/*
-
%check
# tests need configured readers etc
-if ! grep -qF 'dlopen("%{pcsclib}"' PCSCperl.h ; then # sanity check
- echo "ERROR: pcsc lib name mismatch in PCSCperl.h/dependencies" ; exit 1
-fi
-
%files
%license LICENCE
%doc Changelog README examples/
-%{perl_vendorarch}/auto/Chipcard/
-%{perl_vendorarch}/Chipcard/
-%{_mandir}/man3/Chipcard::PCSC*.3*
-
+%dir %{perl_vendorarch}/auto/Chipcard
+%{perl_vendorarch}/auto/Chipcard/PCSC
+%dir %{perl_vendorarch}/Chipcard/
+%{perl_vendorarch}/Chipcard/PCSC
+%{perl_vendorarch}/Chipcard/PCSC.pod
+%{perl_vendorarch}/Chipcard/PCSC.pm
+%{_mandir}/man3/Chipcard::PCSC.3*
+%{_mandir}/man3/Chipcard::PCSC::*.3*
%changelog
%autochangelog
reply other threads:[~2026-11-25 12:16 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=179560897194.1.353223213003290240.rpms-pcsc-perl-1bb5e136155b@fedoraproject.org \
--to=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