File neard.spec of Package neard

# spec file for package neard
# Copyright (c) 2014 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

Name:           neard
Version:        0.13
Release:        0
Summary:        NFC for Linux
License:        GPL-2.0
Group:          Hardware/Mobile

#Git-Clone:	git://
Source1:        neard.service
Source2:        99-neard.rules
Patch1:         neard-0.13-fix-dbus_send_destination_config.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  automake
BuildRequires:  check-devel
BuildRequires:  libtool
BuildRequires:  libudev-devel
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(dbus-1) >= 1.4
BuildRequires:  pkgconfig(glib-2.0) >= 2.28
BuildRequires:  pkgconfig(libnl-3.0)
BuildRequires:  pkgconfig(libnl-genl-3.0)
%if 0%{?suse_version} > 1140
BuildRequires:  systemd
BuildRequires:  systemd-devel
%define has_systemd 1

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

%description test
Files needed to test applications for the NFC stack.

%setup -q
%patch1 -p1

autoreconf -fiv
%configure --prefix="%_prefix" \
		--enable-tools \

make %{?_smp_mflags} all V=1

install --mode=0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/neard.service
install --mode=0644 -D %{SOURCE2} %{buildroot}%{_prefix}/lib/udev/rules.d/99-neard.rules

%service_add_pre neard.service

%service_del_preun neard.service

%service_del_postun neard.service

%service_add_post neard.service

%defattr(-, root, root)
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
%dir %_libexecdir/nfc/
%doc %{_mandir}/man1/nfctool.1.gz
%doc %{_mandir}/man5/neard.conf.5.gz
%doc %{_mandir}/man8/neard.8.gz

%files devel
%defattr(-, root, root)

%files test
%defattr(-, root, root)
%dir %{_libdir}/neard/

openSUSE Build Service is sponsored by