summaryrefslogtreecommitdiff
path: root/neard.spec
blob: a414c091f1fb563678e8a75d38d0363b8c29a93b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Summary:	Near Field Communication manager
Summary(pl.UTF-8):	Zarządca połączeń NFC (Near Field Communication)
Name:		neard
Version:	0.8
Release:	1
License:	GPL v2
Group:		Networking/Daemons
Source0:	http://www.kernel.org/pub/linux/network/nfc/%{name}-%{version}.tar.xz
# Source0-md5:	2a284e30bc1e970929d2981eb03bfb39
URL:		https://01.org/linux-nfc
BuildRequires:	dbus-devel >= 1.2
BuildRequires:	glib2-devel >= 1:2.28
BuildRequires:	libnl-devel >= 3.2
BuildRequires:	linux-libc-headers >= 7:3.6
BuildRequires:	pkgconfig
BuildRequires:	tar >= 1:1.22
BuildRequires:	xz
Requires:	dbus >= 1.2
Requires:	glib2 >= 1:2.28
Requires:	libnl >= 3.2
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
neard is NFC user space stack running on top of the Linux kernel NFC
subsystem.

NFC (Near Field Communication) is a short-range (a few
inches/centimeters) radio technology that enables communication
between devices that either touch or are momentarily held close
together. NFC is an open technology standardized by the NFC Forum. It
is based on RFID.

%description -l pl.UTF-8
neard to stos NFC działający w przestrzeni użytkownika w oparciu o
podsystem NFC jądra Linuksa.

NFC (Near Field Communication - komunikacja bliskiego zasięgu) to
krótkozasięgowa (kilka cali/centymetrów) technologia radiowa,
pozwalająca na komunikację między urządzeniami stykającymi się lub
chwilowo trzymanymi obok siebie. NFC to technologia otwarta,
standaryzowana prez NFC Forum. Jest oparta na RFID.

%package devel
Summary:	Header files for neard plugins
Summary(pl.UTF-8):	Pliki nagłówkowe dla wtyczek neard
Group:		Development/Libraries
Requires:	dbus-devel >= 1.2
Requires:	glib2-devel >= 1:2.28
Requires:	libnl-devel >= 3.2
# doesn't require base

%description devel
Header files for neard plugins.

%description devel -l pl.UTF-8
Pliki nagłówkowe dla wtyczek neard.

%prep
%setup -q

%build
%configure \
	--disable-silent-rules
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

# for external plugins
install -d $RPM_BUILD_ROOT%{_libdir}/near/plugins

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README TODO
%attr(755,root,root) %{_libexecdir}/neard
%dir %{_libdir}/near
%dir %{_libdir}/near/plugins
# not used yet
#%dir %{_sysconfdir}/neard
/etc/dbus-1/system.d/org.neard.conf

%files devel
%defattr(644,root,root,755)
%doc doc/*-api.txt
%{_includedir}/near
%{_pkgconfigdir}/neard.pc