blob: 293b9fdc85f333fd462ecb0ea106f996145beaeb (
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
|
# >> macros
%define neardal_dir %{_libdir}
%define neardal_pkg %{_libdir}/pkgconfig
%define neardal_inc %{_includedir}/neardal
%define glib2_version 2.0.0
# << macros
Name: neardal
Summary: Neard Abstraction Library (for Neard v0.7)
Version: 0.7.0
Release: 1.0
Group: System/Libraries
License: LGPL-2.0
URL: https://github.com/connectivity/neardal.git
Source0: %{name}-%{version}.tar.bz2
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: python
BuildRequires: intltool >= %{intltool_version}
BuildRequires: libtool
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: gettext
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(dbus-glib-1)
%description
This package provides simple C APIs to exchange datas with NFC daemon (Neard) present on the system.
%prep
%setup -q -n %{name}-%{version}
%build
autoreconf --force --install
%configure --disable-traces --prefix=/usr
make
%package dev
Summary: Headers for neardal
Group: Development/Libraries
%description dev
Development headers and libraries for neardal
%package ncl
Summary: Neardal Command Line: Simple command line interpretor for neardal/Neard
Group: Tools
%description ncl
Neardal Command Line: Simple command line interpretor for neardal/Neard
%install
rm -rf %{buildroot}
%make_install
# executed after install
%post
/sbin/ldconfig
# executed before uninstall
%postun
/sbin/ldconfig
# No locale
# %%find_lang %%{name}
# %%files -f %%{name}.lang
%files
%defattr(-,root,root,-)
%doc README AUTHORS NEWS COPYING
# libraries files
%{neardal_dir}/libneardal.so
%{neardal_dir}/libneardal.so.0
%{neardal_dir}/libneardal.so.0.0.1
%changelog
%files dev
# headers files
%{neardal_inc}/*.h
# pkg-config files
%{neardal_pkg}/neardal.pc
%files ncl
%{_bindir}/ncl
|