diff --git a/ykpers.spec b/ykpers.spec index 86707a6..f42ed19 100644 --- a/ykpers.spec +++ b/ykpers.spec @@ -1,6 +1,6 @@ Name: ykpers Version: 1.3.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Yubikey personalization program Group: Applications/System @@ -8,7 +8,11 @@ License: BSD URL: http://code.google.com/p/yubikey-personalization/ Source0: http://yubikey-personalization.googlecode.com/files/%{name}-%{version}.tar.gz +%ifnarch s390 s390x BuildRequires: libusb1-devel +%else +BuildRequires: libusb-devel +%endif BuildRequires: libyubikey-devel %description @@ -28,7 +32,12 @@ use ykpers. %setup -q %build -%configure --disable-static --with-backend=libusb-1.0 +%configure --disable-static \ +%ifnarch s390 s390x + --with-backend=libusb-1.0 +%else + --with-backend=libusb +%endif # --disable-rpath doesn't work for the configure script %{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool %{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool @@ -65,6 +74,9 @@ use ykpers. %exclude %{_libdir}/libykpers-1.la %changelog +* Mon Oct 18 2010 - Dan HorĂ¡k - 1.3.4-2 +- build with libusb on s390(x) + * Wed Oct 13 2010 - Maxim Burgerhout - 1.3.4-1 - Version bump