[packages/ykpers] - rel 3 - fix spec syntax error - fix redefined symbols at link time
baggins
baggins at pld-linux.org
Sun Aug 23 16:04:04 CEST 2026
commit 2ed4dad1db10409b39db61d80b3c146d934f1b09
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Aug 23 16:03:33 2026 +0200
- rel 3
- fix spec syntax error
- fix redefined symbols at link time
link.patch | 13 +++++++++++++
ykpers.spec | 12 +++++++-----
2 files changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/ykpers.spec b/ykpers.spec
index ba0d5b9..8ca8b2d 100644
--- a/ykpers.spec
+++ b/ykpers.spec
@@ -7,16 +7,17 @@ Summary: Yubikey personalization program
Summary(pl.UTF-8): Program do personalizacji urządzeń Yubikey
Name: ykpers
Version: 1.20.0
-Release: 2
+Release: 3
License: BSD
Group: Applications/System
Source0: https://developers.yubico.com/yubikey-personalization/Releases/%{name}-%{version}.tar.gz
# Source0-md5: 8749113ce5a0164fe2b429b61242ba0f
Patch0: %{name}-json-c.patch
+Patch1: link.patch
URL: https://developers.yubico.com/yubikey-personalization/
BuildRequires: asciidoc
BuildRequires: json-c-devel
-BuildRequires: libusb-devel >=1.0
+BuildRequires: libusb-devel >= 1.0
BuildRequires: libyubikey-devel >= 1.5
BuildRequires: pkgconfig
BuildRequires: udev-devel >= 1:1.188
@@ -61,6 +62,7 @@ Statyczna biblioteka ykpers.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%configure \
@@ -98,8 +100,8 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/ykinfo
%attr(755,root,root) %{_bindir}/ykpersonalize
%attr(755,root,root) %{_bindir}/ykchalresp
-%attr(755,root,root) %{_libdir}/libykpers-1.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/libykpers-1.so.1
+%{_libdir}/libykpers-1.so.*.*
+%ghost %{_libdir}/libykpers-1.so.1
%{_mandir}/man1/ykpersonalize.1*
%{_mandir}/man1/ykchalresp.1*
%{_mandir}/man1/ykinfo.1*
@@ -108,7 +110,7 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
%doc doc/USB-Hid-Issue.asciidoc
-%attr(755,root,root) %{_libdir}/libykpers-1.so
+%{_libdir}/libykpers-1.so
%{_includedir}/ykpers-1
%{_pkgconfigdir}/ykpers-1.pc
diff --git a/link.patch b/link.patch
new file mode 100644
index 0000000..ff79638
--- /dev/null
+++ b/link.patch
@@ -0,0 +1,13 @@
+--- ykpers-1.20.0/ykpers-args.h~ 2019-02-19 13:29:54.000000000 +0100
++++ ykpers-1.20.0/ykpers-args.h 2026-08-23 16:01:49.382597879 +0200
+@@ -33,8 +33,8 @@
+
+ #include "ykpers.h"
+
+-const char *usage;
+-const char *optstring;
++extern const char *usage;
++extern const char *optstring;
+
+ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, char *oathid,
+ size_t oathid_len, const char **infname,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ykpers.git/commitdiff/2ed4dad1db10409b39db61d80b3c146d934f1b09
More information about the pld-cvs-commit
mailing list