The package rpms/opensc.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/opensc.git/commit/?id=91f47c715fc....
Change:
+%ifarch %{ix86}
Thanks.
Full change:
============
commit 1992366d51895602cf562b9fa13881a98bf61034
Author: Jakub Jelen <jjelen(a)redhat.com>
Date: Wed Mar 27 14:21:59 2019 +0100
opensc-0.19.0-6
diff --git a/opensc.spec b/opensc.spec
index a0489e8..c27d412 100644
--- a/opensc.spec
+++ b/opensc.spec
@@ -3,7 +3,7 @@
Name: opensc
Version: 0.19.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Smart card library and applications
License: LGPLv2+
@@ -198,6 +198,10 @@ fi
%changelog
+* Wed Mar 27 2019 Jakub Jelen <jjelen(a)redhat.com> - 0.19.0-6
+- Make OpenSC multilib again by moving the offending files on ix86 arch
+- Do not ship packageconfig files to avoid inadvertent linking against pkcs11 modules
(#1673139)
+
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.19.0-5
- Rebuild for readline 8.0
commit 91f47c715fcfee4d68399c84a806d28864a596dd
Author: Jakub Jelen <jjelen(a)redhat.com>
Date: Wed Mar 27 14:21:31 2019 +0100
Make OpenSC multilib by adding a suffix to conflicting files on ix86 (and moving the
x86_64 to their original location)
diff --git a/opensc.spec b/opensc.spec
index 980c626..a0489e8 100644
--- a/opensc.spec
+++ b/opensc.spec
@@ -55,7 +55,9 @@ sed -i -e 's|/usr/local/towitoko/lib/|/usr/lib/ctapi/|'
etc/opensc.conf.example.
%build
autoreconf -fvi
+%ifarch %{ix86}
sed -i -e 's/opensc.conf/opensc-%{_arch}.conf/g' src/libopensc/Makefile.in
+%endif
sed -i -e 's|"/lib /usr/lib\b|"/%{_lib} %{_libdir}|' configure # lib64
rpaths
%configure --disable-static \
--disable-assert \
@@ -68,11 +70,21 @@ make %{?_smp_mflags} V=1
%install
make install DESTDIR=$RPM_BUILD_ROOT
+install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/p11-kit/modules/opensc.module
+
+%ifarch %{ix86}
+# To avoid multilib issues, move these files on 32b intel architectures
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/opensc.conf
install -Dpm 644 etc/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir}/opensc-%{_arch}.conf
-install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/p11-kit/modules/opensc.module
+rm -f $RPM_BUILD_ROOT%{_mandir}/man5/opensc.conf.5
+install -Dpm 644 doc/files/opensc.conf.5
$RPM_BUILD_ROOT%{_mandir}/man5/opensc-%{_arch}.conf.5
# use NEWS file timestamp as reference for configuration file
touch -r NEWS $RPM_BUILD_ROOT%{_sysconfdir}/opensc-%{_arch}.conf
+touch -r NEWS $RPM_BUILD_ROOT%{_mandir}/man5/opensc-%{_arch}.conf.5
+%else
+# For backward compatibility, symlink the old location to the new files
+ln -s %{_sysconfdir}/opensc.conf $RPM_BUILD_ROOT%{_sysconfdir}/opensc-%{_arch}.conf
+%endif
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" | xargs rm
@@ -123,6 +135,13 @@ fi
%{_datadir}/bash-completion/*
%endif
+%ifarch %{ix86}
+%{_mandir}/man5/opensc-%{_arch}.conf.5*
+%else
+%config(noreplace) %{_sysconfdir}/opensc.conf
+%{_mandir}/man5/opensc.conf.5*
+%endif
+
%config(noreplace) %{_sysconfdir}/opensc-%{_arch}.conf
%{_datadir}/p11-kit/modules/opensc.module
%{_bindir}/cardos-tool
@@ -175,7 +194,7 @@ fi
%{_mandir}/man1/westcos-tool.1*
%{_mandir}/man1/dnie-tool.1*
%{_mandir}/man1/egk-tool.1*
-%{_mandir}/man5/*.5*
+%{_mandir}/man5/pkcs15-profile.5*
%changelog