d98923c
Name:           libnfc
6d2a1b2
Version:        1.3.4
d98923c
Release:        1%{?dist}
d98923c
Summary:        NFC SDK and Programmers API
d98923c
d98923c
Group:          System Environment/Libraries
d98923c
License:        LGPLv3+
d98923c
URL:            http://www.libnfc.org/
d98923c
Source0:        http://libnfc.googlecode.com/files/%{name}-%{version}.tar.gz
d98923c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d98923c
d98923c
BuildRequires:  pcsc-lite-devel
d98923c
BuildRequires:  libusb-devel
d98923c
BuildRequires:  doxygen
d98923c
d98923c
%description
d98923c
libnfc is the first free NFC SDK and Programmers API released under the 
d98923c
GNU Lesser General Public License. It provides complete transparency and 
d98923c
royalty-free use for everyone.
d98923c
d98923c
%package devel
d98923c
Summary: Development libraries for libnfc
d98923c
Group: Development/Libraries
d98923c
Requires: %{name} = %{version}-%{release}
d98923c
Requires: pkgconfig
d98923c
d98923c
%description devel
d98923c
The libnfc-devel package contains header files necessary for 
d98923c
developing programs using libnfc.
d98923c
d98923c
%package examples
d98923c
Summary: Examples using libnfc
d98923c
Group: Development/Tools
d98923c
Requires: %{name} = %{version}-%{release}
d98923c
%description examples
d98923c
The libnfc-examples package contains examples demonstrating the functionality
d98923c
of libnfc.
d98923c
d98923c
%prep
d98923c
%setup -q
d98923c
d98923c
%build
d98923c
%configure --disable-static
d98923c
# remove rpaths
d98923c
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
d98923c
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
d98923c
d98923c
make %{?_smp_mflags}
d98923c
doxygen
d98923c
d98923c
%install
d98923c
rm -rf $RPM_BUILD_ROOT
d98923c
make install DESTDIR=$RPM_BUILD_ROOT
d98923c
# remove *.la files
d98923c
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
d98923c
d98923c
%clean
d98923c
rm -rf $RPM_BUILD_ROOT
d98923c
d98923c
%post -p /sbin/ldconfig
d98923c
d98923c
%postun -p /sbin/ldconfig
d98923c
d98923c
%files
d98923c
%defattr(-,root,root,-)
d98923c
%{_libdir}/*.so.*
d98923c
%doc COPYING README AUTHORS ChangeLog
d98923c
d98923c
%files devel
d98923c
%defattr(-,root,root,-)
d98923c
%{_libdir}/*.so
d98923c
%{_includedir}/nfc/
d98923c
%{_libdir}/pkgconfig/*.pc
d98923c
%doc doc/html
d98923c
d98923c
%files examples
d98923c
%defattr(-,root,root,-)
d98923c
%{_bindir}/*
d98923c
%{_mandir}/man1/*
d98923c
d98923c
%changelog
6d2a1b2
* Mon Apr 12 2010 François Kooman <fkooman at tuxed net> 1.3.4-1
6d2a1b2
- update to 1.3.4
6d2a1b2
- See http://www.libnfc.org/documentation/changelog#v1.3.4
6d2a1b2
8b35eb5
* Mon Mar 9 2010 François Kooman <fkooman at tuxed net> 1.3.3-1
8b35eb5
- update to 1.3.3
8b35eb5
d15448e
* Mon Feb 8 2010 François Kooman <fkooman at tuxed net> 1.3.2-1
d15448e
- update to 1.3.2
d15448e
aa877a8
* Wed Jan 20 2010 François Kooman <fkooman at tuxed net> 1.3.1-1
aa877a8
- update to 1.3.1
aa877a8
d98923c
* Sat Jan 16 2010 François Kooman <fkooman at tuxed net> 1.3.0-1
d98923c
- update to final version 1.3.0
d98923c
- drop CMake for now as upstream does not include CMake build scripts
d98923c
  in releases
d98923c
- create API documentation using Doxygen
d98923c
d98923c
* Sat Oct 03 2009 François Kooman <fkooman at tuxed net> 1.3.0-0.1
d98923c
- next version will be 1.3.0
d98923c
- use better macro for mandir
d98923c
- use name macro instead of "libnfc" in Requires and includedir
d98923c
d98923c
* Mon Sep 12 2009 François Kooman <fkooman at tuxed net> 1.2.2-0.1
d98923c
- update to SVN snapshot
d98923c
- use CMake instead of autotools
d98923c
d98923c
* Fri Aug 21 2009 François Kooman <fkooman at tuxed net> 1.2.1-1
d98923c
- initial Fedora package
d98923c