6e4b298
Name:           libnfc
3100e66
Version:        1.4.2
3100e66
Release:        1%{?dist}
6e4b298
Summary:        NFC SDK and Programmers API
6e4b298
6e4b298
Group:          System Environment/Libraries
6e4b298
License:        LGPLv3+
6e4b298
URL:            http://www.libnfc.org/
6e4b298
Source0:        http://libnfc.googlecode.com/files/%{name}-%{version}.tar.gz
6e4b298
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6e4b298
6e4b298
BuildRequires:  pcsc-lite-devel
6e4b298
BuildRequires:  libusb-devel
6e4b298
BuildRequires:  doxygen
6e4b298
6e4b298
%description
6e4b298
libnfc is the first free NFC SDK and Programmers API released under the 
6e4b298
GNU Lesser General Public License. It provides complete transparency and 
6e4b298
royalty-free use for everyone.
6e4b298
6e4b298
%package devel
6e4b298
Summary: Development libraries for libnfc
6e4b298
Group: Development/Libraries
6e4b298
Requires: %{name} = %{version}-%{release}
6e4b298
Requires: pkgconfig
6e4b298
6e4b298
%description devel
6e4b298
The libnfc-devel package contains header files necessary for 
6e4b298
developing programs using libnfc.
6e4b298
6e4b298
%package examples
6e4b298
Summary: Examples using libnfc
6e4b298
Group: Development/Tools
6e4b298
Requires: %{name} = %{version}-%{release}
6e4b298
%description examples
6e4b298
The libnfc-examples package contains examples demonstrating the functionality
6e4b298
of libnfc.
6e4b298
6e4b298
%prep
6e4b298
%setup -q
6e4b298
6e4b298
%build
6e4b298
%configure --disable-static
6e4b298
# remove rpaths
6e4b298
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
6e4b298
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
6e4b298
6e4b298
make %{?_smp_mflags}
6e4b298
doxygen
6e4b298
6e4b298
%install
6e4b298
rm -rf $RPM_BUILD_ROOT
6e4b298
make install DESTDIR=$RPM_BUILD_ROOT
6e4b298
# remove *.la files
6e4b298
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
6e4b298
6e4b298
%clean
6e4b298
rm -rf $RPM_BUILD_ROOT
6e4b298
6e4b298
%post -p /sbin/ldconfig
6e4b298
6e4b298
%postun -p /sbin/ldconfig
6e4b298
6e4b298
%files
6e4b298
%defattr(-,root,root,-)
6e4b298
%{_libdir}/*.so.*
6e4b298
%doc COPYING README AUTHORS ChangeLog
6e4b298
6e4b298
%files devel
6e4b298
%defattr(-,root,root,-)
6e4b298
%{_libdir}/*.so
6e4b298
%{_includedir}/nfc/
6e4b298
%{_libdir}/pkgconfig/*.pc
6e4b298
%doc doc/html
6e4b298
6e4b298
%files examples
6e4b298
%defattr(-,root,root,-)
6e4b298
%{_bindir}/*
6e4b298
%{_mandir}/man1/*
6e4b298
6e4b298
%changelog
3100e66
* Wed Feb 23 2011 F. Kooman <fkooman@tuxed.net> - 1.4.2-1
3100e66
- update to 1.4.2
3100e66
2a1ea3b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
2a1ea3b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2a1ea3b
91a8a42
* Fri Feb 04 2011 F. Kooman <fkooman@tuxed.net> - 1.4.1-1
91a8a42
- update to 1.4.1
91a8a42
433e1da
* Thu Nov 25 2010 F. Kooman <fkooman@tuxed.net> - 1.4.0-1
433e1da
- update to 1.4.0
433e1da
Jesse Keating b9640bc
* Wed Sep 29 2010 jkeating - 1.3.9-2
Jesse Keating b9640bc
- Rebuilt for gcc bug 634757
Jesse Keating b9640bc
François Kooman 47e7a46
* Fri Sep 24 2010 François Kooman <fkooman at tuxed net> 1.3.9-1
François Kooman 47e7a46
- update to 1.3.9
François Kooman 47e7a46
eda797e
* Mon Apr 12 2010 François Kooman <fkooman at tuxed net> 1.3.4-1
eda797e
- update to 1.3.4
eda797e
3f7f25a
* Mon Mar 9 2010 François Kooman <fkooman at tuxed net> 1.3.3-1
3f7f25a
- update to 1.3.3
3f7f25a
19b7635
* Mon Feb 8 2010 François Kooman <fkooman at tuxed net> 1.3.2-1
19b7635
- update to 1.3.2
19b7635
3b20c84
* Wed Jan 20 2010 François Kooman <fkooman at tuxed net> 1.3.1-1
3b20c84
- update to 1.3.1
3b20c84
6e4b298
* Sat Jan 16 2010 François Kooman <fkooman at tuxed net> 1.3.0-1
6e4b298
- update to final version 1.3.0
6e4b298
- drop CMake for now as upstream does not include CMake build scripts
6e4b298
  in releases
6e4b298
- create API documentation using Doxygen
6e4b298
6e4b298
* Sat Oct 03 2009 François Kooman <fkooman at tuxed net> 1.3.0-0.1
6e4b298
- next version will be 1.3.0
6e4b298
- use better macro for mandir
6e4b298
- use name macro instead of "libnfc" in Requires and includedir
6e4b298
6e4b298
* Mon Sep 12 2009 François Kooman <fkooman at tuxed net> 1.2.2-0.1
6e4b298
- update to SVN snapshot
6e4b298
- use CMake instead of autotools
6e4b298
6e4b298
* Fri Aug 21 2009 François Kooman <fkooman at tuxed net> 1.2.1-1
6e4b298
- initial Fedora package
6e4b298