]> git.pld-linux.org Git - packages/yubico-piv-tool.git/commitdiff
pldize; drop chrpath; pld macros auto-invoke it
authorElan Ruusamäe <glen@delfi.ee>
Mon, 30 Jan 2017 23:43:59 +0000 (01:43 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 30 Jan 2017 23:43:59 +0000 (01:43 +0200)
yubico-piv-tool.spec

index 9448c3e770fb35c6f29ca7a9ee8ed4d8a9d5cbd8..afcc8879b9c6b81801e8ea51fb3f74d147a0e139 100644 (file)
@@ -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)
This page took 0.563309 seconds and 4 git commands to generate.