e6993ec
Name:           ykpers
95ca53a
Version:        1.6.0
04fb82b
Release:        2%{?dist}
e6993ec
Summary:        Yubikey personalization program
e6993ec
e6993ec
Group:          Applications/System
e6993ec
License:        BSD
e6993ec
URL:            http://code.google.com/p/yubikey-personalization/
e6993ec
Source0:        http://yubikey-personalization.googlecode.com/files/%{name}-%{version}.tar.gz
95ca53a
Patch0:         %{name}-1.6.0-getopt.patch
95ca53a
Patch1:         %{name}-1.6.0-bigendian.patch
e6993ec
04fb82b
%ifnarch s390 s390x
e6993ec
BuildRequires: libusb1-devel
04fb82b
%else
04fb82b
BuildRequires: libusb-devel
04fb82b
%endif
e6993ec
BuildRequires: libyubikey-devel
e6993ec
e6993ec
%description
e6993ec
Yubico's YubiKey can be re-programmed with a new AES key. This is a library
e6993ec
that makes this an easy task.
e6993ec
e6993ec
%package devel
e6993ec
Summary:        Development files for ykpers
e6993ec
Group:          Development/Libraries
e6993ec
Requires:       %{name} = %{version}-%{release}
e6993ec
e6993ec
%description devel
46d568f
This package contains the header file needed to develop applications that
e6993ec
use ykpers.
e6993ec
e6993ec
%prep
e6993ec
%setup -q
0a9fa89
%patch0 -p1 -b .getopt
0a9fa89
%patch1 -p1 -b .bigendian
e6993ec
e6993ec
%build
95ca53a
%configure --enable-static=no --disable-rpath \
95ca53a
           --with-udevrulesdir=/lib/udev/rules.d \
04fb82b
%ifnarch s390 s390x
04fb82b
    --with-backend=libusb-1.0
04fb82b
%else
04fb82b
    --with-backend=libusb
04fb82b
%endif
e6993ec
# --disable-rpath doesn't work for the configure script
e6993ec
%{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
e6993ec
%{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
e6993ec
%{__make} %{?_smp_mflags}
e6993ec
e6993ec
%check
5a4c680
pwd
5a4c680
%{__make} check LD_LIBRARY_PATH="../.libs"
e6993ec
e6993ec
%install
e6993ec
%{__make} install DESTDIR=${RPM_BUILD_ROOT} INSTALL="%{__install} -p"
e6993ec
e6993ec
%post -p /sbin/ldconfig
e6993ec
e6993ec
%postun -p /sbin/ldconfig
e6993ec
e6993ec
%files
e6993ec
%defattr(-,root,root,-)
e6993ec
%doc AUTHORS COPYING README ChangeLog NEWS
5a4c680
%doc doc/Read-Me.asciidoc doc/Compatibility.asciidoc
e6993ec
%{_bindir}/ykpersonalize
95ca53a
%{_bindir}/ykchalresp
e6993ec
%{_libdir}/libykpers-1.so.1
95ca53a
%{_libdir}/libykpers-1.so.1.6.0
e6993ec
%{_mandir}/man1/ykpersonalize.1.gz
95ca53a
%{_mandir}/man1/ykchalresp.1.gz
95ca53a
/lib/udev/rules.d/70-yubikey.rules
e6993ec
e6993ec
%files devel
e6993ec
%defattr(-,root,root,-)
5a4c680
%doc doc/USB-Hid-Issue.asciidoc
e6993ec
%{_libdir}/pkgconfig/ykpers-1.pc
e6993ec
%{_libdir}/libykpers-1.so
e6993ec
%{_includedir}/ykpers-1/
e6993ec
%exclude %{_libdir}/libykpers-1.la
e6993ec
e6993ec
%changelog
46d568f
* Thu Jul 21 2011 - Maxim Burgerhout <wzzrd@fedoraproject.org> - 1.6.0-2
46d568f
- Rebuild for rpm-4.9.1 trailing slash bug
46d568f
95ca53a
* Thu Jul 21 2011 - Maxim Burgerhout <wzzrd@fedoraproject.org> - 1.6.0-1
95ca53a
- Update to upstream version 1.6.0 (support for firmware 2.3.x, oath changes)
95ca53a
- First implementation of udev rules for ykpers
95ca53a
0a9fa89
* Fri Apr 29 2011 - Dan Horák <dan[at]danny.cz> - 1.4.1-2
0a9fa89
- fix build on big endians and with default unsigned char (like s390(x))
0a9fa89
5a4c680
* Tue Feb 6 2011 - Maxim Burgerhout <wzzrd@fedoraproject.org> - 1.4.1-1
5a4c680
- Add support for new features in YubiKey 2.2.
5a4c680
- Stricter argument parsing, to help user avoid configuration surprises.
5a4c680
- Ask kernel to detach USB HID driver with libusb 0.1 too.
5a4c680
- Properly reject keys (-a) with upper case hex, instead of just ignoring
5a4c680
  those bits.
5a4c680
- Really check Yubikey compatibility when setting options.
5a4c680
- Pretty-printer did not handle bit overloaded cfgflags.
5a4c680
  It is better now, but not perfect.
5a4c680
- Fixes to make it work under Windows.
5a4c680
04fb82b
* Mon Oct 18 2010 - Dan Horák <dan[at]danny.cz> - 1.3.4-2
04fb82b
- build with libusb on s390(x)
04fb82b
4454954
* Wed Oct 13 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.3.4-1
4454954
- Version bump
4454954
397cb05
* Thu May 27 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.3.3-1
397cb05
- Version bump
397cb05
da928e9
* Wed Mar 17 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.3.2-1
da928e9
- Version bump
da928e9
ce3bc4e
* Mon Jan 25 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.3.1-1
ce3bc4e
- Version bump
ce3bc4e
e6993ec
* Mon Jan 25 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.2-4
e6993ec
- RPM_OPT_FLAGS removed again
e6993ec
e6993ec
* Mon Jan 25 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.2-3
e6993ec
- Removed pkgconfig dependency for devel
e6993ec
- Fixed ownership of ykpers-1 in /usr/include
e6993ec
- Fixed install with original timestamp
e6993ec
e6993ec
* Sat Jan 23 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.2-2
e6993ec
- Used macros for sed, make, rm and Source0
e6993ec
- Removed INSTALL and MakeRelease.wiki from the docs
e6993ec
- Inserted INSTALLFLAGS
e6993ec
- Inserted RPM_OPT_FLAGS
e6993ec
- Made sure the URL no longer points to a redirect
e6993ec
e6993ec
* Sat Jan 23 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.2-1
e6993ec
- New upstream release (support for newer firmware)
e6993ec
e6993ec
* Wed Jan 20 2010 - Maxim Burgerhout <maxim@wzzrd.com> - 1.1-1
e6993ec
- First packaged release