LD_LIBRARY_PATH is pointless for tests in PLD because make tests is run
from build, not from install
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: C library for decrypting and parsing Yubikey One-time passwords
Name: libyubikey
Version: 1.13
Release: 1
License: BSD
Summary: C library for decrypting and parsing Yubikey One-time passwords
Name: libyubikey
Version: 1.13
Release: 1
License: BSD
-Group: Development/Libraries
-URL: http://opensource.yubico.com/yubico-c
Source0: http://opensource.yubico.com/yubico-c/releases/%{name}-%{version}.tar.gz
# Source0-md5: 6e84fc1914ab5b609319945c18d45835
Source0: http://opensource.yubico.com/yubico-c/releases/%{name}-%{version}.tar.gz
# Source0-md5: 6e84fc1914ab5b609319945c18d45835
+URL: http://opensource.yubico.com/yubico-c
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%{__make}
%if %{with tests}
%{__make}
%if %{with tests}
-export LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/.libs
%{__make} check
%endif
%install
rm -rf $RPM_BUILD_ROOT
%{__make} check
%endif
%install
rm -rf $RPM_BUILD_ROOT
- DESTDIR=$RPM_BUILD_ROOT \
- INSTALL="%{__install} -p"
+ INSTALL="%{__install} -p" \
+ DESTDIR=$RPM_BUILD_ROOT
-%{__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)
%files
%defattr(644,root,root,755)