2013-10-25 11:53:53 +02:00
|
|
|
#
|
|
|
|
# spec file for package neard
|
|
|
|
#
|
2021-10-27 16:53:03 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-10-25 11:53:53 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-02-03 19:22:39 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-25 11:53:53 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: neard
|
2021-10-27 16:53:03 +02:00
|
|
|
Version: 0.17
|
2013-10-25 11:53:53 +02:00
|
|
|
Release: 0
|
2014-02-04 13:46:17 +01:00
|
|
|
Summary: NFC for Linux
|
2020-02-03 19:22:39 +01:00
|
|
|
License: GPL-2.0-only
|
2013-10-25 11:53:53 +02:00
|
|
|
Group: Hardware/Mobile
|
2021-10-27 16:53:03 +02:00
|
|
|
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
|
2014-02-04 13:46:17 +01:00
|
|
|
Source1: neard.service
|
|
|
|
Source2: 99-neard.rules
|
|
|
|
Patch1: neard-0.13-fix-dbus_send_destination_config.patch
|
2021-10-27 16:53:03 +02:00
|
|
|
Patch2: harden_neard.service.patch
|
|
|
|
BuildRequires: autoconf-archive
|
2013-10-25 11:53:53 +02:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: libtool
|
2020-09-17 05:14:17 +02:00
|
|
|
BuildRequires: pkgconfig
|
2014-01-17 05:35:40 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.4
|
2013-10-25 11:53:53 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
2014-02-04 13:46:17 +01:00
|
|
|
BuildRequires: pkgconfig(libnl-3.0)
|
|
|
|
BuildRequires: pkgconfig(libnl-genl-3.0)
|
2020-02-03 19:22:39 +01:00
|
|
|
BuildRequires: pkgconfig(libudev)
|
2015-03-08 20:56:28 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2014-02-04 13:46:17 +01:00
|
|
|
%{?systemd_requires}
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%description
|
2020-09-17 05:14:17 +02:00
|
|
|
NFC support for Linux.
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%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
|
2014-06-10 10:43:35 +02:00
|
|
|
Requires: neard
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%description test
|
|
|
|
Files needed to test applications for the NFC stack.
|
|
|
|
|
|
|
|
%prep
|
2021-10-27 16:53:03 +02:00
|
|
|
%autosetup -p1
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
2015-03-06 10:33:28 +01:00
|
|
|
%configure \
|
2013-10-25 11:53:53 +02:00
|
|
|
--enable-tools \
|
|
|
|
--enable-test
|
|
|
|
|
2020-09-17 05:14:17 +02:00
|
|
|
%make_build all
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2013-12-17 15:15:17 +01:00
|
|
|
install --mode=0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/neard.service
|
2014-01-15 08:25:31 +01:00
|
|
|
install --mode=0644 -D %{SOURCE2} %{buildroot}%{_prefix}/lib/udev/rules.d/99-neard.rules
|
2021-10-27 16:53:03 +02:00
|
|
|
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"
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre neard.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun neard.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun neard.service
|
|
|
|
|
2014-05-22 05:35:28 +02:00
|
|
|
%post
|
|
|
|
%service_add_post neard.service
|
|
|
|
|
2013-10-25 11:53:53 +02:00
|
|
|
%files
|
2020-09-17 05:14:17 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog README
|
2013-10-25 11:53:53 +02:00
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
|
2020-09-17 05:14:17 +02:00
|
|
|
%dir %{_libexecdir}/nfc/
|
|
|
|
%{_libexecdir}/nfc/neard
|
2014-01-15 08:25:31 +01:00
|
|
|
%{_prefix}/lib/udev/rules.d/99-neard.rules
|
2013-12-17 15:15:17 +01:00
|
|
|
%{_unitdir}/neard.service
|
2020-09-17 05:14:17 +02:00
|
|
|
%{_bindir}/nciattach
|
2014-06-10 10:43:35 +02:00
|
|
|
%{_bindir}/nfctool
|
2020-09-17 05:14:17 +02:00
|
|
|
%{_mandir}/man1/nfctool.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/neard.conf.5%{?ext_man}
|
|
|
|
%{_mandir}/man8/neard.8%{?ext_man}
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%files devel
|
2020-09-17 05:14:17 +02:00
|
|
|
%{_includedir}/near/
|
|
|
|
%{_includedir}/version.h
|
2013-10-25 11:53:53 +02:00
|
|
|
%{_libdir}/pkgconfig/neard.pc
|
|
|
|
|
|
|
|
%files test
|
|
|
|
%dir %{_libdir}/neard/
|
2014-02-04 13:46:17 +01:00
|
|
|
%{_libdir}/neard/test/
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%changelog
|