From 41559deacc8253739b83214e0d7327ce305df7f1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:10:04 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.7.1-1mamba;Wed Apr 03 2019] --- README.md | 2 ++ libnfc.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 libnfc.spec diff --git a/README.md b/README.md index 53d5550..30ebc7d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libnfc + Free/Libre Near Field Communication (NFC) library. + diff --git a/libnfc.spec b/libnfc.spec new file mode 100644 index 0000000..214d9c2 --- /dev/null +++ b/libnfc.spec @@ -0,0 +1,79 @@ +Name: libnfc +Version: 1.7.1 +Release: 1mamba +Summary: Free/Libre Near Field Communication (NFC) library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://nfc-tools.org/ +## GITSOURCE https://github.com/nfc-tools/libnfc.git libnfc-1.7.1 +Source: https://github.com/nfc-tools/libnfc.git/libnfc-%{version}/libnfc-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libusb-compat-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description + Free/Libre Near Field Communication (NFC) library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: System/Kernel and Hardware +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libnfc.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/nfc +%{_includedir}/nfc/*.h +%{_libdir}/libnfc.so +%doc ChangeLog NEWS README README-Windows.txt + +%files tools +%defattr(-,root,root) +%{_bindir}/nfc-* +%{_libdir}/pkgconfig/libnfc.pc +%{_mandir}/man1/nfc-*.1* +%{_mandir}/man1/pn53x-*.1* + +%changelog +* Wed Apr 03 2019 Silvan Calarco 1.7.1-1mamba +- package created using the webbuild interface