67 lines
1.5 KiB
RPMSpec
67 lines
1.5 KiB
RPMSpec
#%global debug_package %{nil}
|
|
|
|
Name: ykpers
|
|
Version: 1.20.0
|
|
Release: 3
|
|
Summary: The YubiKey Personalization package contains a library and command line tool used to personalize
|
|
License: BSD
|
|
URL: https://developers.yubico.com/yubikey-personalization/
|
|
Source0: https://developers.yubico.com/yubikey-personalization/%{name}-%{version}.tar.gz
|
|
Patch0: ykpers-args-extern.patch
|
|
|
|
BuildRequires: libusb-devel gcc libyubikey-devel systemd-udev
|
|
|
|
%description
|
|
The YubiKey Personalization package contains a library and command line tool used to personalize
|
|
|
|
%package devel
|
|
Summary: devel pacakge for ykpers
|
|
Requires: %{name} = %{version}-%{release}
|
|
%description devel
|
|
The YubiKey Personalization package contains a library and command line tool used to personalize
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}/
|
|
%patch0 -p0
|
|
|
|
%build
|
|
%configure --enable-static=no --with-udevrulesdir=/usr/lib/udev/rules.d
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
rm -rf %{buildroot}/%{_libdir}/*.la
|
|
|
|
%pre
|
|
%preun
|
|
%post
|
|
%postun
|
|
|
|
%check
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README
|
|
%{_bindir}/*
|
|
%{_mandir}/*
|
|
%{_libdir}/libykpers-1.so.*
|
|
%{_udevrulesdir}/69-yubikey.rules
|
|
|
|
%files devel
|
|
%{_includedir}/*
|
|
%{_libdir}/libykpers-1.so
|
|
%{_libdir}/pkgconfig/*
|
|
%{_libdir}/libykpers-1.so
|
|
|
|
|
|
%changelog
|
|
* Fri 30 Jul 2021 zhangtao <zhangtao221@huawei.com> - 1.20.0-3
|
|
-fix gcc upgrade causes compilation failure
|
|
|
|
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.20.0-2
|
|
- Completing build dependencies to define %{_udevrulesdir} macros
|
|
|
|
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
|
|
- Package init
|
|
|