From fd234dda015ad0cca32d10db3a36bd355051d21dca6622afdca6c2c761e39825 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 25 Oct 2013 09:53:53 +0000 Subject: [PATCH] Accepting request 204791 from home:acho-novell:branches:hardware Initial NFC daemon package - version 0.13 OBS-URL: https://build.opensuse.org/request/show/204791 OBS-URL: https://build.opensuse.org/package/show/hardware/neard?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + neard-0.13.tar.bz2 | 3 + neard-rpmlintrc | 1 + neard.changes | 5 ++ neard.spec | 137 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 170 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 neard-0.13.tar.bz2 create mode 100644 neard-rpmlintrc create mode 100644 neard.changes create mode 100644 neard.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/neard-0.13.tar.bz2 b/neard-0.13.tar.bz2 new file mode 100644 index 0000000..37a65cd --- /dev/null +++ b/neard-0.13.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abc925ac5ad119e39cffe6171a9e099a37ec616870222c366a1add08d5c359b0 +size 381413 diff --git a/neard-rpmlintrc b/neard-rpmlintrc new file mode 100644 index 0000000..0bf5fd9 --- /dev/null +++ b/neard-rpmlintrc @@ -0,0 +1 @@ +setBadness('suse-dbus-unauthorized-service', 0) diff --git a/neard.changes b/neard.changes new file mode 100644 index 0000000..f21a668 --- /dev/null +++ b/neard.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Oct 24 09:44:41 UTC 2013 - acho@suse.com + +- Initial neard package - version 0.13 + diff --git a/neard.spec b/neard.spec new file mode 100644 index 0000000..cb02efe --- /dev/null +++ b/neard.spec @@ -0,0 +1,137 @@ +# +# 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 +%if 0%{?suse_version} > 1140 +BuildRequires: systemd +%{?systemd_requires} +%define has_systemd 1 +%endif +Version: 0.13 +Release: 0 +Summary: NFC for Linux +License: GPL-2.0+ +Group: Hardware/Mobile +Url: http://01.org/linux-nfc/ +Source: https://www.kernel.org/pub/linux/network/nfc/neard-%{version}.tar.bz2 +Source1: neard-rpmlintrc +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: automake +BuildRequires: check-devel +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 +License: GPL-2.0+ +Group: Development/Sources + +%description devel +Files needed to develop applications for the NFC stack. + +%package test +Summary: Files needed for NFC development +License: GPL-2.0+ +Group: Development/Tools/Debuggers + +%description test +Files needed to test applications for the NFC stack. + +%prep +%setup -q + +%build +autoreconf -fiv +%configure --prefix=/usr \ + --enable-tools \ + --enable-test + +make %{?_smp_mflags} all V=1 + +%install +%make_install + +%clean +rm -rf %{buildroot} + +%pre +%if 0%{?has_systemd} +%service_add_pre neard.service +%endif + +%post +# todo: check if this is still obeyed / needed with systemd +%{fillup_only -n neard} +/bin/systemctl enable neard.service 2>&1 || : +/bin/systemctl daemon-reload >/dev/null 2>&1 || : + +%preun +%service_del_preun neard.service + +%postun +%{insserv_cleanup} +%if 0%{?has_systemd} +%service_del_postun neard.service +%else +%{insserv_cleanup} +%endif + +%files +%defattr(-, root, root) +%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf +%dir %{_prefix}/lib/nfc +%{_prefix}/lib/nfc/neard +%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