]> git.pld-linux.org Git - packages/libcacard.git/blob - libcacard.spec
5107471bd409d34c9bc6462343035d746c04e6a2
[packages/libcacard.git] / libcacard.spec
1 Summary:        Virtual Smart Card Emulator library
2 Summary(pl.UTF-8):      Biblioteka emulator wirtualnych kart procesorowych
3 Name:           libcacard
4 Version:        0.1.2
5 Release:        1
6 License:        GPL v3
7 Group:          Libraries
8 Source0:        http://spice-space.org/download/libcacard/%{name}-%{version}.tar.gz
9 # Source0-md5:  d06480131936ea45a60e98c87b2bb4d9
10 Patch0:         %{name}-sh.patch
11 Patch1:         %{name}-pcsc.patch
12 URL:            http://spice-space.org/
13 BuildRequires:  autoconf >= 2.60
14 BuildRequires:  automake
15 BuildRequires:  libtool
16 BuildRequires:  nss-devel
17 BuildRequires:  pcsc-lite-devel >= 1.6
18 BuildRequires:  pkgconfig
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This emulator is designed to provide emulation of actual smart cards
23 to a virtual card reader running in a guest virtual machine. The
24 emulated smart cards can be representations of real smart cards, where
25 the necessary functions such as signing, card removal/insertion, etc.
26 are mapped to real, physical cards which are shared with the client
27 machine the emulator is running on, or the cards could be pure
28 software constructs.
29
30 %description -l pl.UTF-8
31 Ten pakiet ma na celu zapewnienie emulacji kart procesorowych w
32 wirtualnym czytniku kart działającym na wirtualnej maszynie-gościu.
33 Emulowane karty procesorowe mogą reprezentować prawdziwe karty
34 procesorowe, których potrzebne funkcje, takie jak podpisywanie,
35 wyjęcie/włożenie karty itp. są odwzorowywane na prawdziwe karty
36 współdzielone z maszyną kliencką, na której działa emulator, lub
37 karty czysto programowe.
38
39 %package devel
40 Summary:        Header files for cacard library
41 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki cacard
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       nss-devel
45 Requires:       pcsc-lite-devel >= 1.6
46
47 %description devel
48 Header files for cacard library.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki cacard.
52
53 %package static
54 Summary:        Static cacard library
55 Summary(pl.UTF-8):      Statyczna biblioteka cacard
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static cacard library.
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka cacard.
64
65 %prep
66 %setup -q
67 %patch0 -p1
68 %patch1 -p1
69
70 %build
71 %{__libtoolize}
72 %{__aclocal}
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure \
77         --enable-passthru
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 # obsoleted by pkg-config
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcacard.la
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 %doc AUTHORS README
98 %attr(755,root,root) %{_bindir}/vscclient
99 %attr(755,root,root) %{_libdir}/libcacard.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libcacard.so.0
101
102 %files devel
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libcacard.so
105 %{_includedir}/cacard
106 %{_pkgconfigdir}/libcacard.pc
107
108 %files static
109 %defattr(644,root,root,755)
110 %{_libdir}/libcacard.a
This page took 0.070181 seconds and 2 git commands to generate.