1
0

Accepting request 638984 from home:jengelh:branches:security

- Rename %soname to %sover to better reflect its use.
- Fix RPM groups.

OBS-URL: https://build.opensuse.org/request/show/638984
OBS-URL: https://build.opensuse.org/package/show/security/yubico-piv-tool?expand=0&rev=26
This commit is contained in:
Karol Babioch 2018-09-28 09:27:16 +00:00 committed by Git OBS Bridge
parent 681f0e6f32
commit 9ded637636
2 changed files with 31 additions and 25 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 28 09:10:38 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Rename %soname to %sover to better reflect its use.
- Fix RPM groups.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 27 11:58:29 UTC 2018 - Karol Babioch <kbabioch@suse.com> Thu Sep 27 11:58:29 UTC 2018 - Karol Babioch <kbabioch@suse.com>

View File

@ -16,7 +16,7 @@
# #
%define soname 1 %define sover 1
Name: yubico-piv-tool Name: yubico-piv-tool
Version: 1.6.2 Version: 1.6.2
Release: 0 Release: 0
@ -32,43 +32,43 @@ BuildRequires: pcsc-lite-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: valgrind BuildRequires: valgrind
BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl)
Requires: libykcs11-%{soname} = %{version} Requires: libykcs11-%{sover} = %{version}
Requires: libykpiv%{soname} = %{version} Requires: libykpiv%{sover} = %{version}
%description %description
This is a command line tool to interact with the PIV applet on a YubiKey NEO. This is a command line tool to interact with the PIV applet on a YubiKey NEO.
Among other functions it supports, generating keys on device, importing keys Among other functions it supports, generating keys on device, importing keys
and certificates and creating certificate requests. and certificates and creating certificate requests.
%package -n libykpiv%{soname} %package -n libykpiv%{sover}
Summary: Yubikey NEO PIV applet library Summary: Yubikey NEO PIV applet library
Group: Productivity/Networking/Security Group: System/Libraries
Requires: pcsc-ccid Requires: pcsc-ccid
%description -n libykpiv%{soname} %description -n libykpiv%{sover}
This is a low-level library to interact the PIV applet on a YubiKey NEO This is a low-level library to interact the PIV applet on a YubiKey NEO
%package -n libykcs11-%{soname} %package -n libykcs11-%{sover}
Summary: Yubikey NEO PKCS#11 applet library Summary: Yubikey NEO PKCS#11 applet library
Group: Productivity/Networking/Security Group: System/Libraries
Requires: pcsc-ccid Requires: pcsc-ccid
%description -n libykcs11-%{soname} %description -n libykcs11-%{sover}
This is a PKCS#11 module that allows to communicate with the PIV application running on a YubiKey This is a PKCS#11 module that allows to communicate with the PIV application running on a YubiKey
%package -n libykpiv-devel %package -n libykpiv-devel
Summary: Development files for Yubikey NEO PIV applet library Summary: Development files for the Yubikey NEO PIV applet library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libykpiv%{soname} = %{version} Requires: libykpiv%{sover} = %{version}
%description -n libykpiv-devel %description -n libykpiv-devel
This package contains the header file needed to develop applications that use This package contains the header file needed to develop applications that use
Yubikey NEO PIV applet library. Yubikey NEO PIV applet library.
%package -n libykcs11-devel %package -n libykcs11-devel
Summary: Development files for Yubikey NEO PKCS#11 applet library Summary: Development files for the Yubikey NEO PKCS#11 applet library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libykcs11-%{soname} = %{version} Requires: libykcs11-%{sover} = %{version}
%description -n libykcs11-devel %description -n libykcs11-devel
This package contains the header file needed to develop applications that use This package contains the header file needed to develop applications that use
@ -78,17 +78,17 @@ Yubikey NEO PKCS#11 applet library.
%setup -q %setup -q
%build %build
%configure --enable-static=no --with-backend=pcsc %configure --disable-static --with-backend=pcsc
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR=%{buildroot} INSTALL="install -p" %make_install INSTALL="install -p"
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
%post -n libykpiv%{soname} -p /sbin/ldconfig %post -n libykpiv%{sover} -p /sbin/ldconfig
%postun -n libykpiv%{soname} -p /sbin/ldconfig %postun -n libykpiv%{sover} -p /sbin/ldconfig
%post -n libykcs11-%{soname} -p /sbin/ldconfig %post -n libykcs11-%{sover} -p /sbin/ldconfig
%postun -n libykcs11-%{soname} -p /sbin/ldconfig %postun -n libykcs11-%{sover} -p /sbin/ldconfig
%files %files
%license COPYING %license COPYING
@ -96,13 +96,13 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_bindir}/%{name} %{_bindir}/%{name}
%{_mandir}/man1/* %{_mandir}/man1/*
%files -n libykpiv%{soname} %files -n libykpiv%{sover}
%{_libdir}/libykpiv.so.%{soname} %{_libdir}/libykpiv.so.%{sover}
%{_libdir}/libykpiv.so.%{soname}.4.4 %{_libdir}/libykpiv.so.%{sover}.4.4
%files -n libykcs11-%{soname} %files -n libykcs11-%{sover}
%{_libdir}/libykcs11.so.%{soname} %{_libdir}/libykcs11.so.%{sover}
%{_libdir}/libykcs11.so.%{soname}.4.4 %{_libdir}/libykcs11.so.%{sover}.4.4
%files -n libykpiv-devel %files -n libykpiv-devel
%dir %{_includedir}/ykpiv/ %dir %{_includedir}/ykpiv/