commit 3b580766f6baa851ac04dc39fc2ac2f33e302ea7ab228de13c10bb519419a729 Author: Ismail Dönmez Date: Sun Jun 24 20:49:48 2012 +0000 Accepting request 125883 from home:jengelh:dev Near Field Communications suite OBS-URL: https://build.opensuse.org/request/show/125883 OBS-URL: https://build.opensuse.org/package/show/hardware/libfreefare?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libfreefare-0.3.4.tar.xz b/libfreefare-0.3.4.tar.xz new file mode 100644 index 0000000..4b8fa6d --- /dev/null +++ b/libfreefare-0.3.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ce69d6748f9af49bcc7e8a5c4350c7ab5f73341401bae0c6040aa2cce8e2307 +size 285568 diff --git a/libfreefare.changes b/libfreefare.changes new file mode 100644 index 0000000..e01e23b --- /dev/null +++ b/libfreefare.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jun 15 17:47:46 UTC 2012 - jengelh@inai.de + +- Initial package for build.opensuse.org diff --git a/libfreefare.spec b/libfreefare.spec new file mode 100644 index 0000000..9f16b84 --- /dev/null +++ b/libfreefare.spec @@ -0,0 +1,108 @@ +# +# spec file for package libfreefare +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: libfreefare +%define lname libfreefare0 +Summary: API for Mifare card manipulations +License: LGPL-3.0+ +Group: Development/Libraries/C and C++ +Version: 0.3.4 +Release: 0 +Url: http://code.google.com/p/nfc-tools/ + +Source: %name-%version.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig +BuildRequires: xz +BuildRequires: pkgconfig(libcrypto) +BuildRequires: pkgconfig(libnfc) >= 1.6.0 + +%description +The libfreefare project aims to provide a convenient API for Mifare +card manipulations. Supported tags include: Classic 1k/4k, DESFire +2K/4K/8K, Ultralight/C. Supported features include: Mifare +Application Directory (MAD) v1-v3. + +%package -n %lname +Summary: Library for Mifare card manipulations +Group: System/Libraries + +%description -n %lname +The libfreefare project aims to provide a convenient API for Mifare +card manipulations. Supported tags include: Classic 1k/4k, DESFire +2K/4K/8K, Ultralight/C. Supported features include: Mifare +Application Directory (MAD) v1-v3. + +%package devel +Summary: Development files for the Mifare card manipulation library +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +The libfreefare project aims to provide a convenient API for Mifare +card manipulations. Supported tags include: Classic 1k/4k, DESFire +2K/4K/8K, Ultralight/C. Supported features include: Mifare +Application Directory (MAD) v1-v3. + +This package contains the libfreefare development files. + +%package tools +Summary: Tools for Mifare cards +Group: Hardware/Other + +%description tools +The libfreefare project aims to provide a convenient API for Mifare +card manipulations. Supported tags include: Classic 1k/4k, DESFire +2K/4K/8K, Ultralight/C. Supported features include: Mifare +Application Directory (MAD) v1-v3. + +This package contains example programs using libfreefare for +inspecting and manipulating Mifare cards. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags}; + +%install +b="%buildroot"; +make install DESTDIR="$b"; +rm -f "$b/%_libdir"/*.la; + +%post -n %lname -p /sbin/ldconfig + +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%defattr(-,root,root) +%_libdir/libfreefare.so.0* + +%files devel +%defattr(-,root,root) +%_includedir/freefare.h +%_mandir/man3/*.3* +%_libdir/libfreefare.so +%_libdir/pkgconfig/libfreefare.pc + +%files tools +%defattr(-,root,root) +%_bindir/mifare-* + +%changelog