Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
93b4bcfe21
!13 修复源码包路径
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-11-10 08:37:06 +00:00
cherry530
dcd58b4af6 fix sourceo path
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-11-10 14:48:20 +08:00
openeuler-ci-bot
736985e4f0 !5 Fix not striped and rpath problem
From: @si-gui
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-09-10 02:55:02 +00:00
sunguoshuai
6ee50f82f4 Fix not striped and rpath problem 2021-09-08 17:17:58 +08:00
openeuler-ci-bot
412a2031be !4 解决gcc升级到gcc10后编译失败
From: @zhangtao2020
Reviewed-by: @small_leek,@yanan-rock
Signed-off-by: @small_leek,@yanan-rock
2021-07-31 04:04:39 +00:00
zhangtao2020
419928e48c fix gcc upgrade causes compilation failure 2021-07-30 14:48:37 +08:00
openeuler-ci-bot
6a3d41d90d !3 Completing build dependencies to fix %{_udevrulesdir} macros undefile error
From: @hht8
Reviewed-by: @licihua
Signed-off-by: @licihua
2021-06-10 16:57:42 +08:00
hht8
4f94966a66 Completing build dependencies to fix %{_udevrulesdir} macros undefile error 2021-06-07 11:08:44 +08:00
openeuler-ci-bot
65a4c1f09a !1 init package
From: @myeuler
Reviewed-by: @ethan848,@ethan848,@yanan-rock
Signed-off-by: @ethan848,@yanan-rock
2020-09-14 09:24:29 +08:00
myeuler
536a041555 init package 2020-05-14 22:30:58 +08:00
3 changed files with 84 additions and 0 deletions

BIN
ykpers-1.20.0.tar.gz Normal file

Binary file not shown.

13
ykpers-args-extern.patch Normal file
View File

@ -0,0 +1,13 @@
--- ykpers-args.h 2019-02-19 13:29:54.000000000 +0100
+++ ykpers-args.h.patch 2020-02-14 13:27:53.624129087 +0100
@@ -33,8 +33,8 @@
#include "ykpers.h"
-const char *usage;
-const char *optstring;
+extern const char *usage;
+extern const char *optstring;
int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, char *oathid,
size_t oathid_len, const char **infname,

71
ykpers.spec Normal file
View File

@ -0,0 +1,71 @@
Name: ykpers
Version: 1.20.0
Release: 5
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/Releases/%{name}-%{version}.tar.gz
Patch0: ykpers-args-extern.patch
BuildRequires: libusb-devel gcc libyubikey-devel systemd-udev chrpath
%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
chrpath -d %{buildroot}%{_bindir}/*
%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
* Thu Nov 10 2021 xu_ping <xuping33@h-partners.com> - 1.20.0-5
- Fix source0 url
* Wed Sep 08 2021 sunguoshuai <sunguoshuai@huawei.com> - 1.20.0-4
- Fix not striped and rpath problem
* 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