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