Accepting request 1220276 from hardware

- Add gcc14.patch

OBS-URL: https://build.opensuse.org/request/show/1220276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libfreefare?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2024-11-02 15:12:38 +00:00 committed by Git OBS Bridge
commit 946cafe3a0
5 changed files with 41 additions and 19 deletions

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1730549372
commit: dfe550d71a30a55fb811f6b92821d6db49a3e18ba75dd1a7d9ed5e950eae1207
url: https://src.opensuse.org/jengelh/libfreefare
revision: master

3
build.specials.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:549c089bda90fe2f63f5cf289d9024101c1ead7b031db659742fc92008019567
size 256

22
gcc14.patch Normal file
View File

@ -0,0 +1,22 @@
From: Jan Engelhardt <ej@inai.de>
Date: 2024-11-02 13:08:11.371010482 +0100
Upstream: already fixed in git snapshots
mifare_desfire_crypto.c:142:9: error: implicit declaration of function 'abort' [-Wimplicit-function-declaration]
---
libfreefare/mifare_desfire_crypto.c | 1 +
1 file changed, 1 insertion(+)
Index: libfreefare-libfreefare-0.4.0/libfreefare/mifare_desfire_crypto.c
===================================================================
--- libfreefare-libfreefare-0.4.0.orig/libfreefare/mifare_desfire_crypto.c
+++ libfreefare-libfreefare-0.4.0/libfreefare/mifare_desfire_crypto.c
@@ -57,6 +57,7 @@
#include <openssl/des.h>
#include <err.h>
+#include <stdlib.h>
#include <string.h>
#include <strings.h>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 2 12:04:35 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Add gcc14.patch
-------------------------------------------------------------------
Tue Mar 17 21:13:52 UTC 2015 - jengelh@inai.de

View File

@ -18,28 +18,21 @@
Name: libfreefare
%define lname libfreefare0
Version: 0.4.0
Release: 0
Summary: API for Mifare card manipulations
License: LGPL-3.0+
Group: Development/Libraries/C and C++
Version: 0.4.0
Release: 0
Url: https://github.com/nfc-tools/libfreefare/
#Git-Clone: git://github.com/nfc-tools/libfreefare/
URL: https://github.com/nfc-tools/libfreefare/
Source: https://github.com/nfc-tools/libfreefare/archive/%name-%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: gcc14.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: xz
%if 0%{?suse_version} == 1110
BuildRequires: libnfc-devel >= 1.7.0
BuildRequires: libopenssl-devel
%else
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libnfc) >= 1.7.0
%endif
%description
The libfreefare project aims to provide a convenient API for Mifare
@ -84,37 +77,32 @@ This package contains example programs using libfreefare for
inspecting and manipulating Mifare cards.
%prep
%setup -qn %name-%name-%version
%autosetup -n %name-%name-%version -p1
%build
if [ ! -e configure ]; then
autoreconf -fi
fi
%configure --disable-static
make %{?_smp_mflags};
%make_build
%install
b="%buildroot";
%make_install
rm -f "$b/%_libdir"/*.la;
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%ldconfig_scriptlets -n %lname
%files -n %lname
%defattr(-,root,root)
%_libdir/libfreefare.so.0*
%files devel
%defattr(-,root,root)
%_includedir/freefare.h
%_mandir/man3/*.3*
%_libdir/libfreefare.so
%_libdir/pkgconfig/libfreefare.pc
%files tools
%defattr(-,root,root)
%_bindir/mifare-*
%changelog