Группа :: Разработка/Прочее
Пакет: libyubikey
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Development/Other
%add_optflags %optflags_shared
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: libyubikey
Version: 1.13
Release: alt1_12
Summary: C library for decrypting and parsing Yubikey One-time passwords
License: BSD
URL: http://opensource.yubico.com/yubico-c
Source0: http://opensource.yubico.com/yubico-c/releases/%{name}-%{version}.tar.gz
BuildRequires: gcc
Source44: import.info
%description
This package holds a low-level C software development kit for the Yubico
authentication device, the Yubikey.
%package devel
Group: Development/Other
Summary: Development files for libyubikey
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header file needed to develop applications that use
libyubikey.
%prep
%setup -q
%build
%configure --disable-static --disable-silent-rules
# --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
%make_build
%check
export LD_LIBRARY_PATH=${RPM_BUILD_DIR}/%{name}-%{version}/.libs
make check
%install
%makeinstall_std INSTALL="install -p"
%files
%doc AUTHORS NEWS ChangeLog README
%doc --no-dereference COPYING
%{_bindir}/modhex
%{_bindir}/ykparse
%{_bindir}/ykgenerate
%{_libdir}/libyubikey.so.0
%{_libdir}/libyubikey.so.0.1.7
%{_mandir}/man1/ykgenerate.1*
%{_mandir}/man1/ykparse.1*
%{_mandir}/man1/modhex.1*
%files devel
%{_includedir}/yubikey.h
%{_libdir}/libyubikey.so
%changelog
…
Полный changelog можно просмотреть здесь
%add_optflags %optflags_shared
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: libyubikey
Version: 1.13
Release: alt1_12
Summary: C library for decrypting and parsing Yubikey One-time passwords
License: BSD
URL: http://opensource.yubico.com/yubico-c
Source0: http://opensource.yubico.com/yubico-c/releases/%{name}-%{version}.tar.gz
BuildRequires: gcc
Source44: import.info
%description
This package holds a low-level C software development kit for the Yubico
authentication device, the Yubikey.
%package devel
Group: Development/Other
Summary: Development files for libyubikey
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header file needed to develop applications that use
libyubikey.
%prep
%setup -q
%build
%configure --disable-static --disable-silent-rules
# --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
%make_build
%check
export LD_LIBRARY_PATH=${RPM_BUILD_DIR}/%{name}-%{version}/.libs
make check
%install
%makeinstall_std INSTALL="install -p"
%files
%doc AUTHORS NEWS ChangeLog README
%doc --no-dereference COPYING
%{_bindir}/modhex
%{_bindir}/ykparse
%{_bindir}/ykgenerate
%{_libdir}/libyubikey.so.0
%{_libdir}/libyubikey.so.0.1.7
%{_mandir}/man1/ykgenerate.1*
%{_mandir}/man1/ykparse.1*
%{_mandir}/man1/modhex.1*
%files devel
%{_includedir}/yubikey.h
%{_libdir}/libyubikey.so
%changelog
…
Полный changelog можно просмотреть здесь