libnfc/libnfc.spec

86 lines
2.1 KiB
RPMSpec
Raw Normal View History

Name: libnfc
Version: 1.8.0
Release: 1mamba
Summary: Free/Libre Near Field Communication (NFC) library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://nfc-tools.org/
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
%{_libdir}/pkgconfig/libnfc.pc
%dir %{_libdir}/cmake/libnfc
%{_libdir}/cmake/libnfc/LibNFCConfig*.cmake
%{_libdir}/cmake/libnfc/UseLibNFC.cmake
%doc ChangeLog
%files tools
%defattr(-,root,root)
%{_bindir}/nfc-*
%{_bindir}/pn53x-*
%{_mandir}/man1/nfc-*.1*
%{_mandir}/man1/pn53x-*.1*
%changelog
* Wed Oct 14 2020 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
- automatic version update by autodist
* Wed Apr 03 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-1mamba
- package created using the webbuild interface