]>
Commit | Line | Data |
---|---|---|
53ee365c | 1 | Summary: Library for accessing smart cards |
3ec5f9a2 | 2 | Summary(pl.UTF-8): Biblioteka do dostępu do kart procesorowych |
53ee365c | 3 | Name: smartcardpp |
ffd00be1 | 4 | Version: 0.3.0 |
b9d7af7e | 5 | Release: 2 |
53ee365c ER |
6 | License: BSD |
7 | Group: Libraries | |
3ec5f9a2 | 8 | #Source0Download: http://code.google.com/p/esteid/downloads/list |
53ee365c | 9 | Source0: http://esteid.googlecode.com/files/%{name}-%{version}.tar.bz2 |
ffd00be1 | 10 | # Source0-md5: c6172387475982393d02314f389f3513 |
b9d7af7e JR |
11 | Patch0: sleep.patch |
12 | Patch1: getopt.patch | |
3ec5f9a2 JB |
13 | URL: http://code.google.com/p/esteid/ |
14 | BuildRequires: cmake >= 2.6 | |
15 | BuildRequires: libstdc++-devel | |
53ee365c | 16 | BuildRequires: pcsc-lite-devel |
3ec5f9a2 | 17 | BuildRequires: rpmbuild(macros) >= 1.605 |
53ee365c ER |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | smartcardpp is a set of C++ classes to manage smart card | |
22 | communications and implement basic command primitives. | |
23 | ||
3ec5f9a2 JB |
24 | %description -l pl.UTF-8 |
25 | smartcardpp to zbiór klas C++ pozwalających na zarządzanie | |
26 | komunikacją z kartami procesorowymi oraz implementujących podstawowe | |
27 | polecenia. | |
28 | ||
53ee365c | 29 | %package devel |
3ec5f9a2 JB |
30 | Summary: Header files for smartcardpp library |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki smartcardpp | |
53ee365c ER |
32 | Group: Development/Libraries |
33 | Requires: %{name} = %{version}-%{release} | |
3ec5f9a2 | 34 | Requires: libstdc++-devel |
53ee365c ER |
35 | Requires: pcsc-lite-devel |
36 | ||
37 | %description devel | |
3ec5f9a2 JB |
38 | This package contains header files for developing applications that |
39 | use smartcardpp library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
43 | wykorzystujących bibliotekę smartcardpp. | |
53ee365c ER |
44 | |
45 | %prep | |
46 | %setup -q | |
b9d7af7e JR |
47 | %patch0 -p1 |
48 | %patch1 -p1 | |
53ee365c ER |
49 | |
50 | %build | |
51 | install -d build | |
52 | cd build | |
53 | %cmake .. | |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | %{__make} -C build install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post -p /sbin/ldconfig | |
65 | %postun -p /sbin/ldconfig | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
3ec5f9a2 | 69 | %doc COPYING NEWS |
53ee365c ER |
70 | %attr(755,root,root) %{_bindir}/card-test |
71 | %attr(755,root,root) %{_libdir}/libsmartcardpp.so.*.*.* | |
ffd00be1 | 72 | %attr(755,root,root) %ghost %{_libdir}/libsmartcardpp.so.1 |
53ee365c ER |
73 | |
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_libdir}/libsmartcardpp.so | |
53ee365c | 77 | %{_includedir}/smartcardpp |
ffd00be1 | 78 | %{_pkgconfigdir}/smartcardpp.pc |