- Activate PCSC support, which is disabled by default OBS-URL: https://build.opensuse.org/request/show/1306686 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnfc?expand=0&rev=12
118 lines
3.6 KiB
RPMSpec
118 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package libnfc
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libnfc
|
|
%define lname libnfc6
|
|
Version: 1.8.0
|
|
Release: 0
|
|
Summary: Library for Near Field Communication
|
|
License: GPL-2.0-or-later AND LGPL-3.0-or-later
|
|
Group: Development/Libraries/C and C++
|
|
URL: http://libnfc.org/
|
|
#Git-Clone: https://github.com/nfc-tools/libnfc
|
|
Source: https://github.com/nfc-tools/libnfc/releases/download/%name-%version/%name-%version.tar.bz2
|
|
BuildRequires: pkg-config
|
|
BuildRequires: readline-devel
|
|
BuildRequires: pkgconfig(libpcsclite)
|
|
BuildRequires: pkgconfig(libusb)
|
|
|
|
%description
|
|
libnfc is a low-level SDK for various RFID and NFC applications.
|
|
|
|
It supports various NFC hardware devices: dongles, flat and OEM
|
|
devices. The library currently supports modulations for ISO/IEC 14443
|
|
(A and B), FeliCa, Jewel tags and Data Exchange Protocol (P2P) as
|
|
target and as initiator.
|
|
|
|
%package -n %lname
|
|
Summary: Library for Near Field Communication
|
|
License: LGPL-3.0-or-later
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
libnfc is a low-level SDK for various RFID and NFC applications.
|
|
|
|
It supports various NFC hardware devices: dongles, flat and OEM
|
|
devices. The library currently supports modulations for ISO/IEC 14443
|
|
(A and B), FeliCa, Jewel tags and Data Exchange Protocol (P2P) as
|
|
target and as initiator.
|
|
|
|
%package devel
|
|
Summary: Development files for the Near Field Communications library
|
|
License: GPL-2.0-or-later AND LGPL-3.0-or-later
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
|
|
%description devel
|
|
libnfc is a low-level SDK for various RFID and NFC applications.
|
|
|
|
It supports various NFC hardware devices: dongles, flat and OEM
|
|
devices. The library currently supports modulations for ISO/IEC 14443
|
|
(A and B), FeliCa, Jewel tags and Data Exchange Protocol (P2P) as
|
|
target and as initiator.
|
|
|
|
This package contains the libnfc development files.
|
|
|
|
%package tools
|
|
Summary: Tools for Near Field Communication
|
|
License: GPL-2.0-or-later AND LGPL-3.0-or-later
|
|
Group: Hardware/Other
|
|
|
|
%description tools
|
|
libnfc is a low-level SDK for various RFID and NFC applications.
|
|
|
|
It supports various NFC hardware devices: dongles, flat and OEM
|
|
devices. The library currently supports modulations for ISO/IEC 14443
|
|
(A and B), FeliCa, Jewel tags and Data Exchange Protocol (P2P) as
|
|
target and as initiator.
|
|
|
|
This package contains the NFC utilities.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
# pcsc-support is disabled by default, but included
|
|
# in the special driver-target 'all'
|
|
%configure --disable-static --with-drivers=all
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
rm -fv "%buildroot/%_libdir"/*.la
|
|
mkdir -p "%buildroot/%_sysconfdir/nfc"
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files -n %lname
|
|
%_libdir/libnfc.so.6*
|
|
|
|
%files devel
|
|
%_includedir/nfc
|
|
%_libdir/libnfc.so
|
|
%_libdir/pkgconfig/libnfc.pc
|
|
|
|
%files tools
|
|
%_bindir/nfc-*
|
|
%_bindir/pn53x-*
|
|
%_mandir/man*/*.1*
|
|
%dir %_sysconfdir/nfc
|
|
%doc libnfc.conf.sample
|
|
|
|
%changelog
|