[packages/yubico-piv-tool] pldize; drop chrpath; pld macros auto-invoke it
glen
glen at pld-linux.org
Tue Jan 31 00:44:22 CET 2017
commit e1b64efc474d9e4cb1cc79a5f36a399008180707
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jan 31 01:43:59 2017 +0200
pldize; drop chrpath; pld macros auto-invoke it
yubico-piv-tool.spec | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/yubico-piv-tool.spec b/yubico-piv-tool.spec
index 9448c3e..afcc887 100644
--- a/yubico-piv-tool.spec
+++ b/yubico-piv-tool.spec
@@ -1,17 +1,20 @@
-%bcond_without tests
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: Tool for interacting with the PIV applet on a YubiKey NEO
Name: yubico-piv-tool
Version: 1.4.2
Release: 1
License: GPL v3+
Group: Applications
-URL: https://developers.yubico.com/yubico-piv-tool/
Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
# Source0-md5: b03dc5adef8504f822a7586e65f5b33c
-BuildRequires: chrpath
+URL: https://developers.yubico.com/yubico-piv-tool/
BuildRequires: openssl-devel
BuildRequires: pcsc-lite-devel
Requires: pcsc-driver-ccid
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
The Yubico PIV tool is used for interacting with the Privilege and
@@ -30,7 +33,6 @@ The Yubico PIV tool is used for interacting with the Privilege and
Identification Card (PIV) applet on a YubiKey NEO. This package
includes development files.
-
%prep
%setup -q
@@ -45,21 +47,17 @@ includes development files.
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-chrpath --delete $RPM_BUILD_ROOT%{_bindir}/yubico-piv-tool
-chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libykcs11.so.*
-
-rm -f $RPM_BUILD_ROOT%{_libdir}/libykpiv.{la,a}
-rm -f $RPM_BUILD_ROOT%{_libdir}/libykcs11.{la,a}
+rm $RPM_BUILD_ROOT%{_libdir}/libykpiv.{la,a}
+rm $RPM_BUILD_ROOT%{_libdir}/libykcs11.{la,a}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/yubico-piv-tool.git/commitdiff/e1b64efc474d9e4cb1cc79a5f36a399008180707
More information about the pld-cvs-commit
mailing list