forked from pool/libfreefare
Add gcc14.patch
This commit is contained in:
parent
0b934b0b7a
commit
dfe550d71a
22
gcc14.patch
Normal file
22
gcc14.patch
Normal 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>
|
||||||
|
|
@ -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
|
Tue Mar 17 21:13:52 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -18,28 +18,21 @@
|
|||||||
|
|
||||||
Name: libfreefare
|
Name: libfreefare
|
||||||
%define lname libfreefare0
|
%define lname libfreefare0
|
||||||
|
Version: 0.4.0
|
||||||
|
Release: 0
|
||||||
Summary: API for Mifare card manipulations
|
Summary: API for Mifare card manipulations
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Version: 0.4.0
|
URL: https://github.com/nfc-tools/libfreefare/
|
||||||
Release: 0
|
|
||||||
Url: https://github.com/nfc-tools/libfreefare/
|
|
||||||
|
|
||||||
#Git-Clone: git://github.com/nfc-tools/libfreefare/
|
|
||||||
Source: https://github.com/nfc-tools/libfreefare/archive/%name-%version.tar.gz
|
Source: https://github.com/nfc-tools/libfreefare/archive/%name-%version.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Patch1: gcc14.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
%if 0%{?suse_version} == 1110
|
|
||||||
BuildRequires: libnfc-devel >= 1.7.0
|
|
||||||
BuildRequires: libopenssl-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: pkgconfig(libcrypto)
|
BuildRequires: pkgconfig(libcrypto)
|
||||||
BuildRequires: pkgconfig(libnfc) >= 1.7.0
|
BuildRequires: pkgconfig(libnfc) >= 1.7.0
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libfreefare project aims to provide a convenient API for Mifare
|
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.
|
inspecting and manipulating Mifare cards.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %name-%name-%version
|
%autosetup -n %name-%name-%version -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if [ ! -e configure ]; then
|
if [ ! -e configure ]; then
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
fi
|
fi
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
make %{?_smp_mflags};
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot";
|
b="%buildroot";
|
||||||
%make_install
|
%make_install
|
||||||
rm -f "$b/%_libdir"/*.la;
|
rm -f "$b/%_libdir"/*.la;
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%ldconfig_scriptlets -n %lname
|
||||||
|
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
|
||||||
%_libdir/libfreefare.so.0*
|
%_libdir/libfreefare.so.0*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%_includedir/freefare.h
|
%_includedir/freefare.h
|
||||||
%_mandir/man3/*.3*
|
%_mandir/man3/*.3*
|
||||||
%_libdir/libfreefare.so
|
%_libdir/libfreefare.so
|
||||||
%_libdir/pkgconfig/libfreefare.pc
|
%_libdir/pkgconfig/libfreefare.pc
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root)
|
|
||||||
%_bindir/mifare-*
|
%_bindir/mifare-*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user