Hello community, here is the log from the commit of package cardpeek for openSUSE:Factory checked in at 2017-08-28 15:33:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cardpeek (Old) and /work/SRC/openSUSE:Factory/.cardpeek.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cardpeek" Mon Aug 28 15:33:02 2017 rev:7 rq:519061 version:0.8.4 Changes: -------- --- /work/SRC/openSUSE:Factory/cardpeek/cardpeek.changes 2017-04-11 09:39:10.119889315 +0200 +++ /work/SRC/openSUSE:Factory/.cardpeek.new/cardpeek.changes 2017-08-28 15:33:04.134604993 +0200 @@ -1,0 +2,7 @@ +Tue Aug 22 08:22:21 UTC 2017 - tchva...@suse.com + +- Add patch to build with lua5.3 (upstream merged in git): + * cardpeek-lua5.3.patch +- Convert to pkgconfig style dependencies + +------------------------------------------------------------------- New: ---- cardpeek-lua5.3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cardpeek.spec ++++++ --- /var/tmp/diff_new_pack.VoWbYd/_old 2017-08-28 15:33:05.290442491 +0200 +++ /var/tmp/diff_new_pack.VoWbYd/_new 2017-08-28 15:33:05.302440805 +0200 @@ -24,21 +24,17 @@ Group: Productivity/Security Url: http://pannetrat.com/Cardpeek/ Source: http://downloads.pannetrat.com/install/%{name}-%{version}.tar.gz +Patch0: cardpeek-lua5.3.patch BuildRequires: desktop-file-utils -BuildRequires: gtk3-devel BuildRequires: hicolor-icon-theme -BuildRequires: libcurl-devel -%if 0%{?suse_version} > 1320 -BuildRequires: lua52-devel -%else -BuildRequires: lua-devel -%endif BuildRequires: openssl-devel -BuildRequires: pcsc-lite-devel -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: pkgconfig(glib-2.0) -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(libpcsclite) +BuildRequires: pkgconfig(lua) %description Cardpeek is a Linux tool to read the contents of ISO7816 smart cards. @@ -56,13 +52,16 @@ * Vitale 2 French health cards. * GSM cards (beta) -See /usr/share/doc/packages/cardpeek/cardpeek_ref.en.pdf for more details. +See %{_docdir}/cardpeek/cardpeek_ref.en.pdf for more details. %prep %setup -q +%patch0 -p1 %build -%configure --docdir=%{_docdir}/%{name} +%configure \ + --docdir=%{_docdir}/%{name} \ + --disable-silent-rules make %{?_smp_mflags} %install @@ -77,11 +76,10 @@ %icon_theme_cache_postun %files -%defattr(-,root,root) # NEWS is empty %doc AUTHORS COPYING ChangeLog README %doc %{_defaultdocdir}/%{name}/cardpeek_ref.en.pdf -%doc %{_mandir}/man1/cardpeek.1* +%{_mandir}/man1/cardpeek.1%{?ext_man} %{_bindir}/cardpeek %dir %{_datadir}/appdata %{_datadir}/appdata/cardpeek.appdata.xml ++++++ cardpeek-lua5.3.patch ++++++ >From d0653e73af85885544a7876cb4b7387410c88855 Mon Sep 17 00:00:00 2001 From: Alain Pannetrat <l...@gmx.com> Date: Mon, 3 Jul 2017 16:02:09 -0700 Subject: [PATCH] Updated to mingw64 and lua-5.3 --- lua_bytes.c | 26 +++++++------- diff --git a/lua_bytes.c b/lua_bytes.c index 146b547..d0abf85 100644 --- a/lua_bytes.c +++ b/lua_bytes.c @@ -116,7 +116,7 @@ static bytestring_t* x_bytes_create(lua_State *L, unsigned width, int start, int static int subr_bytes_new(lua_State *L) { - int width = luaL_checkint(L, 1); + int width = luaL_checkinteger(L, 1); int n = lua_gettop(L); bytestring_t *bs; @@ -259,7 +259,7 @@ static int subr_bytes_get(lua_State *L) b_index = 0; else { - b_index=luaL_checkint(L,2); + b_index=luaL_checkinteger(L,2); if (b_index<0) b_index = 0; } @@ -267,7 +267,7 @@ static int subr_bytes_get(lua_State *L) e_index = b_index; else { - e_index=luaL_checkint(L,2); + e_index=luaL_checkinteger(L,2); if (e_index>=(int)bytestring_get_size(bs)) e_index = bytestring_get_size(bs)-1; } @@ -293,13 +293,13 @@ static int subr_bytes_set(lua_State *L) unsigned i; unsigned char c; - b_index=(unsigned)luaL_checkint(L,2); + b_index=(unsigned)luaL_checkinteger(L,2); e_index = b_index + lua_gettop(L)-3; for (i=b_index;i<=e_index;i++) { - c = (unsigned char)luaL_checkint(L,i-b_index+3); + c = (unsigned char)luaL_checkinteger(L,i-b_index+3); if (i<bytestring_get_size(bs)) { bytestring_set_element(bs,i,c); @@ -324,8 +324,8 @@ static int subr_bytes_set(lua_State *L) static int subr_bytes_pad_left(lua_State *L) { bytestring_t *bs = bytestring_duplicate(luaL_check_bytestring(L, 1)); - unsigned pad_length = luaL_checkint(L,2); - unsigned pad_value = luaL_checkint(L,3); + unsigned pad_length = luaL_checkinteger(L,2); + unsigned pad_value = luaL_checkinteger(L,3); if (bytestring_pad_left(bs,pad_length,pad_value)!=BYTESTRING_OK) { bytestring_free(bs); @@ -340,8 +340,8 @@ static int subr_bytes_pad_left(lua_State *L) static int subr_bytes_pad_right(lua_State *L) { bytestring_t *bs = bytestring_duplicate(luaL_check_bytestring(L, 1)); - unsigned pad_length = luaL_checkint(L,2); - unsigned pad_value = luaL_checkint(L,3); + unsigned pad_length = luaL_checkinteger(L,2); + unsigned pad_value = luaL_checkinteger(L,3); if (bytestring_pad_right(bs,pad_length,pad_value)!=BYTESTRING_OK) { bytestring_free(bs); @@ -376,12 +376,12 @@ static int subr_bytes_clone(lua_State *L) static int subr_bytes_sub(lua_State *L) { bytestring_t *bs = luaL_check_bytestring(L, 1); - int start=luaL_checkint(L,2); + int start=luaL_checkinteger(L,2); int end=-1; bytestring_t *ret; if (lua_gettop(L)>2) - end=luaL_checkint(L,3); + end=luaL_checkinteger(L,3); if (start<0) start=bytestring_get_size(bs)+start; if (end<0) @@ -431,13 +431,13 @@ static int subr_bytes_convert(lua_State *L) "\tchange bytes.convert(A,B) to bytes.convert(B,A)\n" "\tThis warning will only appear once."); } - width=luaL_checkint(L,1); + width=luaL_checkinteger(L,1); bs = luaL_check_bytestring(L, 2); } else { bs = luaL_check_bytestring(L, 1); - width=luaL_checkint(L,2); + width=luaL_checkinteger(L,2); } if (width!=8 && width!=4 && width!=1)