2013-10-25 11:53:53 +02:00
|
|
|
#
|
|
|
|
# spec file for package neard
|
|
|
|
#
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: neard
|
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.4
|
2013-12-17 15:15:17 +01:00
|
|
|
%if 0%{?suse_version} >= 1210
|
2013-10-25 11:53:53 +02:00
|
|
|
BuildRequires: systemd
|
|
|
|
%endif
|
|
|
|
Version: 0.13
|
|
|
|
Release: 0
|
|
|
|
Summary: NFC for Linux
|
2013-12-19 04:30:23 +01:00
|
|
|
License: GPL-2.0
|
2013-10-25 11:53:53 +02:00
|
|
|
Group: Hardware/Mobile
|
|
|
|
Url: http://01.org/linux-nfc/
|
|
|
|
Source: https://www.kernel.org/pub/linux/network/nfc/neard-%{version}.tar.bz2
|
2013-12-17 15:15:17 +01:00
|
|
|
Source1: neard.service
|
2014-01-15 08:25:31 +01:00
|
|
|
Source2: 99-neard.rules
|
2013-10-25 11:53:53 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: check-devel
|
2014-01-15 08:25:31 +01:00
|
|
|
BuildRequires: libudev-devel
|
2013-10-25 11:53:53 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(libnl-1)
|
|
|
|
|
|
|
|
%description
|
|
|
|
NFC support for Linux.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files needed for NFC development
|
2013-12-19 04:30:23 +01:00
|
|
|
License: GPL-2.0
|
2013-10-25 11:53:53 +02:00
|
|
|
Group: Development/Sources
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files needed to develop applications for the NFC stack.
|
|
|
|
|
|
|
|
%package test
|
|
|
|
Summary: Files needed for NFC development
|
2013-12-19 04:30:23 +01:00
|
|
|
License: GPL-2.0
|
2013-10-25 11:53:53 +02:00
|
|
|
Group: Development/Tools/Debuggers
|
|
|
|
|
|
|
|
%description test
|
|
|
|
Files needed to test applications for the NFC stack.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
2014-01-15 08:25:31 +01:00
|
|
|
%configure --prefix=%_prefix \
|
2013-10-25 11:53:53 +02:00
|
|
|
--enable-tools \
|
|
|
|
--enable-test
|
|
|
|
|
|
|
|
make %{?_smp_mflags} all V=1
|
|
|
|
|
|
|
|
%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
|
2013-10-25 11:53:53 +02:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre neard.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun neard.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun neard.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
|
|
|
|
%dir %{_prefix}/lib/nfc
|
|
|
|
%{_prefix}/lib/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
|
2013-10-25 11:53:53 +02:00
|
|
|
%doc %{_mandir}/man1/nfctool.1.gz
|
|
|
|
%doc %{_mandir}/man5/neard.conf.5.gz
|
|
|
|
%doc %{_mandir}/man8/neard.8.gz
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_prefix}/include/near
|
|
|
|
%{_prefix}/include/near/*
|
|
|
|
%{_libdir}/pkgconfig/neard.pc
|
|
|
|
|
|
|
|
%files test
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_bindir}/nfctool
|
|
|
|
%dir %{_libdir}/neard/
|
|
|
|
%dir %{_libdir}/neard/test
|
|
|
|
%{_libdir}/neard/test/bt-handover
|
|
|
|
%{_libdir}/neard/test/disable-adapter
|
|
|
|
%{_libdir}/neard/test/dump-device
|
|
|
|
%{_libdir}/neard/test/dump-record
|
|
|
|
%{_libdir}/neard/test/dump-tag
|
|
|
|
%{_libdir}/neard/test/enable-adapter
|
|
|
|
%{_libdir}/neard/test/handover-agent
|
|
|
|
%{_libdir}/neard/test/list-adapters
|
|
|
|
%{_libdir}/neard/test/monitor-near
|
|
|
|
%{_libdir}/neard/test/phdc-simple-manager
|
|
|
|
%{_libdir}/neard/test/push-device
|
|
|
|
%{_libdir}/neard/test/start-poll
|
|
|
|
%{_libdir}/neard/test/stop-poll
|
|
|
|
%{_libdir}/neard/test/write-tag
|
|
|
|
|
|
|
|
%changelog
|