80 lines
2.0 KiB
RPMSpec
80 lines
2.0 KiB
RPMSpec
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 <silvan.calarco@mambasoft.it>
|
|
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 <silvan.calarco@mambasoft.it> 1.7.1-1mamba
|
|
- package created using the webbuild interface
|