diff options
author | Frederic PAUT <frederic.paut@linux.intel.com> | 2012-12-05 14:59:57 +0100 |
---|---|---|
committer | Frederic PAUT <frederic.paut@linux.intel.com> | 2012-12-05 14:59:57 +0100 |
commit | 31a6c8580a511f15ecc54532cc148d674c7364c1 (patch) | |
tree | 8aa39a7d597993db871ea7b316b131ee9496358b /neardal_ncl.spec | |
parent | c294025c74677b9856d1bfe97ee56a9eaad00dbc (diff) | |
download | neardal-31a6c8580a511f15ecc54532cc148d674c7364c1.tar.gz neardal-31a6c8580a511f15ecc54532cc148d674c7364c1.tar.bz2 neardal-31a6c8580a511f15ecc54532cc148d674c7364c1.zip |
Neard NDEF Agent abstraction
Diffstat (limited to 'neardal_ncl.spec')
-rw-r--r-- | neardal_ncl.spec | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/neardal_ncl.spec b/neardal_ncl.spec new file mode 100644 index 0000000..6e04466 --- /dev/null +++ b/neardal_ncl.spec @@ -0,0 +1,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: LGPLv2 +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 |