forked from pool/neard
334ff3b351
- update to release 0.18: * Fixed configure with newer autoconf v2.71. * Made missing autoconf-archive messages nicer. * Fixed minor uninitialized access reported by Valgrind. OBS-URL: https://build.opensuse.org/request/show/1040144 OBS-URL: https://build.opensuse.org/package/show/hardware/neard?expand=0&rev=28
121 lines
3.3 KiB
RPMSpec
121 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package neard
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
# Copyright (c) 2010-2012 B1 Systems GmbH, Vohburg, Germany
|
|
#
|
|
# 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: neard
|
|
Version: 0.18
|
|
Release: 0
|
|
Summary: NFC for Linux
|
|
License: GPL-2.0-only
|
|
Group: Hardware/Mobile
|
|
URL: https://github.com/linux-nfc/neard
|
|
#Git-Clone: https://git.kernel.org/pub/scm/network/nfc/neard.git/
|
|
Source: https://git.kernel.org/pub/scm/network/nfc/neard.git/snapshot/%name-%version.tar.gz
|
|
Source1: neard.service
|
|
Source2: 99-neard.rules
|
|
Patch1: neard-0.13-fix-dbus_send_destination_config.patch
|
|
Patch2: harden_neard.service.patch
|
|
BuildRequires: autoconf-archive
|
|
BuildRequires: automake
|
|
BuildRequires: check-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.4
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
BuildRequires: pkgconfig(libnl-genl-3.0)
|
|
BuildRequires: pkgconfig(libudev)
|
|
BuildRequires: pkgconfig(systemd)
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
NFC support for Linux.
|
|
|
|
%package devel
|
|
Summary: Files needed for NFC development
|
|
Group: Development/Sources
|
|
|
|
%description devel
|
|
Files needed to develop applications for the NFC stack.
|
|
|
|
%package test
|
|
Summary: Files needed for NFC development
|
|
Group: Development/Tools/Debuggers
|
|
Requires: neard
|
|
|
|
%description test
|
|
Files needed to test applications for the NFC stack.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure \
|
|
--enable-tools \
|
|
--enable-test
|
|
|
|
%make_build all
|
|
|
|
%install
|
|
%make_install
|
|
install --mode=0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/neard.service
|
|
install --mode=0644 -D %{SOURCE2} %{buildroot}%{_prefix}/lib/udev/rules.d/99-neard.rules
|
|
perl -i -lpe 's{^#!/usr/bin/env }{#!/usr/bin/}' \
|
|
"%buildroot/%_libdir/neard/test/phdc-simple-manager"
|
|
# add missing shebang line to soothe rpmlint
|
|
perl -i -lpe 's{^}{#!/usr/bin/python\n} if $.==1' \
|
|
"%buildroot/%_libdir/neard/test/neardutils.py"
|
|
|
|
%pre
|
|
%service_add_pre neard.service
|
|
|
|
%preun
|
|
%service_del_preun neard.service
|
|
|
|
%postun
|
|
%service_del_postun neard.service
|
|
|
|
%post
|
|
%service_add_post neard.service
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc AUTHORS ChangeLog README
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
|
|
%dir %{_libexecdir}/nfc/
|
|
%{_libexecdir}/nfc/neard
|
|
%{_prefix}/lib/udev/rules.d/99-neard.rules
|
|
%{_unitdir}/neard.service
|
|
%{_bindir}/nciattach
|
|
%{_bindir}/nfctool
|
|
%{_mandir}/man1/nfctool.1%{?ext_man}
|
|
%{_mandir}/man5/neard.conf.5%{?ext_man}
|
|
%{_mandir}/man8/neard.8%{?ext_man}
|
|
|
|
%files devel
|
|
%{_includedir}/near/
|
|
%{_includedir}/version.h
|
|
%{_libdir}/pkgconfig/neard.pc
|
|
|
|
%files test
|
|
%dir %{_libdir}/neard/
|
|
%{_libdir}/neard/test/
|
|
|
|
%changelog
|