]>
Commit | Line | Data |
---|---|---|
c93370dd JB |
1 | Summary: Software Token for Linux/UNIX |
2 | Summary(pl.UTF-8): Token programowy dla systemów Linux/UNIX | |
3 | Name: stoken | |
4 | Version: 0.2 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | Source0: http://downloads.sourceforge.net/stoken/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: d815783d7198f1181c1a72e3d730d367 | |
10 | URL: http://stoken.sourceforge.net/ | |
11 | BuildRequires: gtk+2-devel >= 2.0 | |
12 | BuildRequires: libtomcrypt-devel | |
13 | BuildRequires: pkgconfig >= 1:0.27 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | stoken is a tokencode generator compatible with RSA SecurID 128-bit | |
18 | (AES) tokens. It is a hobbyist project, not affiliated with or | |
19 | endorsed by RSA Security. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | stoken to generator kodów tokenów zgodnych z tokenami 128-bitowymi RSA | |
23 | SecurID (AES). Jest to projekt hobbistyczny, nie powiązany, ani nie | |
24 | gwarantowany przez RSA Security. | |
25 | ||
26 | %package gui | |
27 | Summary: Software Token GUI | |
28 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do tokenów programowych | |
29 | Group: X11/Applications | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description gui | |
33 | Software Token GUI. | |
34 | ||
35 | %description gui -l pl.UTF-8 | |
36 | Graficzny interfejs użytkownika do tokenów programowych. | |
37 | ||
38 | %package devel | |
39 | Summary: Header files for stoken library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki stoken | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | Requires: libtomcrypt-devel | |
44 | ||
45 | %description devel | |
46 | Header files for stoken library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki stoken. | |
50 | ||
51 | %package static | |
52 | Summary: Static stoken library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka stoken | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static stoken library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka stoken. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | ||
66 | %build | |
67 | %configure | |
68 | ||
69 | %{__make} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | # obsoleted by pkg-config | |
78 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libstoken.la | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc README TODO | |
89 | %attr(755,root,root) %{_bindir}/stoken | |
90 | %attr(755,root,root) %{_libdir}/libstoken.so.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libstoken.so.1 | |
92 | %{_mandir}/man1/stoken.1* | |
93 | ||
94 | %files gui | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_bindir}/stoken-gui | |
97 | %{_desktopdir}/stoken-gui.desktop | |
98 | %{_pixmapsdir}/stoken-gui.png | |
99 | %{_mandir}/man1/stoken-gui.1* | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libstoken.so | |
104 | %{_includedir}/stoken.h | |
105 | %{_pkgconfigdir}/stoken.pc | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libstoken.a |