]>
Commit | Line | Data |
---|---|---|
17d96f56 | 1 | # TODO: |
17d96f56 | 2 | # - change code to do not require *.so libs and use *.so.X.X.X |
0be507b1 JB |
3 | # |
4 | # Conditional build: | |
cdb56fcb | 5 | %bcond_without qt # don't build qtpwbsp module |
17d96f56 AM |
6 | # |
7 | Summary: Framework for biometric-based authentication | |
1e525dd4 | 8 | Summary(pl.UTF-8): Szkielet do uwierzytelniania opartego o biometrykę |
17d96f56 AM |
9 | Name: bioapi |
10 | Version: 1.2.2 | |
cdb56fcb | 11 | Release: 0.3 |
17d96f56 AM |
12 | License: BSD |
13 | Group: Applications/Networking | |
14 | Source0: http://www.qrivy.net/~michael/blua/bioapi/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: 924f723895c339552e501999945b7920 | |
16 | Patch0: %{name}-c++.patch | |
17 | URL: http://www.qrivy.net/~michael/blua/ | |
adcf0a05 | 18 | BuildRequires: libstdc++-devel |
17d96f56 AM |
19 | %{?with_qt:BuildRequires: qt-devel} |
20 | BuildRequires: xorg-lib-libX11-devel | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
cdb56fcb JB |
23 | # to get /var/lib/bioapi instead of /var/bioapi |
24 | %define _localstatedir /var/lib | |
25 | ||
17d96f56 AM |
26 | %description |
27 | BioAPI reference implementation for Unix-based platforms. The | |
28 | Unix-based reference implementation was developed by the Convergent | |
29 | Information Division (CISD), Information Technology Laboratory (ITL) | |
30 | of the National Institute of Standards and Technology (NIST). The | |
31 | Unix-based reference implementation is based directly on the BioAPI | |
32 | Consortium's Windows reference implementation and the Common Data | |
33 | Security Architecture (CDSA) reference implementation. The Unix-based | |
34 | reference implementation includes the Sample application and the | |
35 | MdsEdit utility from code provided by the International Biometric | |
36 | Group (IBG). | |
37 | ||
1e525dd4 JR |
38 | %description -l pl.UTF-8 |
39 | Wzorcowa implementacja BioAPI dla platform uniksowych. Została | |
0be507b1 JB |
40 | stworzona przez Convergent Information Division (CISD), Information |
41 | Technology Laboratory (ITL) z National Institute of Standards and | |
1e525dd4 | 42 | Technology (NIST). Jest oparta bezpośrednio na wzorcowej implementacji |
0be507b1 | 43 | BioAPI Consortium dla Windows oraz wzorcowej implementacji Common Data |
1e525dd4 JR |
44 | Security Architecture (CDSA). Uniksowa implementacja zawiera aplikację |
45 | przykładową i narzędzie MdsEdit z kodu dostarczonego przez | |
0be507b1 JB |
46 | International Biometric Group (IBG). |
47 | ||
17d96f56 | 48 | %package devel |
0be507b1 | 49 | Summary: Header files for BioAPI |
1e525dd4 | 50 | Summary(pl.UTF-8): Pliki nagłówkowe BioAPI |
17d96f56 AM |
51 | Group: Development/Libraries |
52 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
adcf0a05 | 53 | Requires: libstdc++-devel |
17d96f56 AM |
54 | |
55 | %description devel | |
0be507b1 JB |
56 | Header files for BioAPI. |
57 | ||
1e525dd4 JR |
58 | %description devel -l pl.UTF-8 |
59 | Pliki nagłówkowe BioAPI. | |
17d96f56 AM |
60 | |
61 | %package static | |
62 | Summary: Static BioAPI libraries | |
1e525dd4 | 63 | Summary(pl.UTF-8): Statyczne biblioteki BioAPI |
17d96f56 AM |
64 | Group: Development/Libraries |
65 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static BioAPI libraries. | |
69 | ||
1e525dd4 | 70 | %description static -l pl.UTF-8 |
0be507b1 JB |
71 | Statyczne biblioteki BioAPI. |
72 | ||
17d96f56 | 73 | %package qt |
0be507b1 | 74 | Summary: Sample BioAPI Qt application |
1e525dd4 | 75 | Summary(pl.UTF-8): Przykładowa aplikacja BioAPI w Qt |
0be507b1 | 76 | Group: X11/Applications |
17d96f56 AM |
77 | |
78 | %description qt | |
79 | Sample BioAPI QT application. | |
80 | ||
1e525dd4 JR |
81 | %description qt -l pl.UTF-8 |
82 | Przykładowa aplikacja BioAPI w Qt. | |
0be507b1 | 83 | |
17d96f56 AM |
84 | %prep |
85 | %setup -q | |
86 | %patch0 -p1 | |
87 | ||
88 | %build | |
89 | %configure \ | |
90 | %if %{with qt} | |
91 | --with-Qt-lib-dir=%{_libdir} \ | |
92 | %else | |
93 | --with-Qt-dir=no \ | |
94 | %endif | |
b0743b57 | 95 | --includedir=%{_includedir}/%{name} |
17d96f56 AM |
96 | |
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
cdb56fcb | 99 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},/var/lib/bioapi} |
b0743b57 | 100 | |
17d96f56 AM |
101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
b0743b57 AM |
104 | install include/bioapi_util.h include/installdefs.h imports/cdsa/v2_0/inc/cssmtype.h \ |
105 | $RPM_BUILD_ROOT%{_includedir}/%{name} | |
106 | ||
17d96f56 AM |
107 | mv $RPM_BUILD_ROOT%{_bindir}/Sample $RPM_BUILD_ROOT%{_bindir}/BioAPI-Sample |
108 | mv $RPM_BUILD_ROOT%{_bindir}/mds_install $RPM_BUILD_ROOT%{_bindir}/BioAPI-mds_install | |
109 | mv $RPM_BUILD_ROOT%{_bindir}/mod_install $RPM_BUILD_ROOT%{_bindir}/BioAPI-mod_install | |
110 | ||
efd46e6c AM |
111 | %if %{with qt} |
112 | mv $RPM_BUILD_ROOT%{_bindir}/MdsEdit $RPM_BUILD_ROOT%{_bindir}/BioAPI-MdsEdit | |
113 | mv $RPM_BUILD_ROOT%{_bindir}/QSample $RPM_BUILD_ROOT%{_bindir}/BioAPI-QSample | |
114 | %endif | |
115 | ||
cdb56fcb JB |
116 | # modules to dlopen |
117 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib{bioapi_dummy100,pwbsp,qtpwbsp}.{la,a} | |
118 | ||
17d96f56 AM |
119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post | |
123 | /sbin/ldconfig | |
124 | %{_bindir}/BioAPI-mds_install -s %{_libdir} | |
125 | %{_bindir}/BioAPI-mod_install -fi %{_libdir}/libbioapi100.so | |
126 | %{_bindir}/BioAPI-mod_install -fi %{_libdir}/libbioapi_dummy100.so | |
127 | ||
128 | %postun -p /sbin/ldconfig | |
129 | ||
130 | %post qt | |
131 | /sbin/ldconfig | |
132 | %{_bindir}/BioAPI-mod_install -fi %{_libdir}/libqtpwbsp.so | |
133 | ||
134 | %postun qt -p /sbin/ldconfig | |
135 | ||
136 | %files | |
137 | %defattr(644,root,root,755) | |
138 | %doc *.htm Disclaimer | |
efd46e6c AM |
139 | %attr(755,root,root) %{_bindir}/BioAPI-Sample |
140 | %attr(755,root,root) %{_bindir}/BioAPI-*_* | |
141 | %attr(755,root,root) %{_bindir}/BioAPITest | |
cdb56fcb JB |
142 | %attr(755,root,root) %{_libdir}/libbioapi100.so.*.*.* |
143 | %attr(755,root,root) %{_libdir}/libbioapi_dummy100.so.*.*.* | |
144 | %attr(755,root,root) %{_libdir}/libbioapi_mds300.so.*.*.* | |
145 | %attr(755,root,root) %{_libdir}/libmds_util.so.*.*.* | |
146 | %attr(755,root,root) %{_libdir}/libpwbsp.so.*.*.* | |
147 | %attr(755,root,root) %{_libdir}/libbioapi100.so | |
148 | %attr(755,root,root) %{_libdir}/libbioapi_dummy100.so | |
149 | %attr(755,root,root) %{_libdir}/libbioapi_mds300.so | |
150 | %attr(755,root,root) %{_libdir}/libmds_util.so | |
151 | %attr(755,root,root) %{_libdir}/libpwbsp.so | |
152 | %dir /var/lib/bioapi | |
17d96f56 AM |
153 | |
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
cdb56fcb JB |
156 | # *.so needed in main package (maybe except libmds_util.so?) |
157 | %{_libdir}/libbioapi100.la | |
158 | %{_libdir}/libbioapi_mds300.la | |
159 | %{_libdir}/libmds_util.la | |
b0743b57 | 160 | %{_includedir}/%{name} |
17d96f56 AM |
161 | |
162 | %files static | |
163 | %defattr(644,root,root,755) | |
cdb56fcb JB |
164 | %{_libdir}/libbioapi100.a |
165 | %{_libdir}/libbioapi_mds300.a | |
166 | %{_libdir}/libmds_util.a | |
17d96f56 AM |
167 | |
168 | %if %{with qt} | |
169 | %files qt | |
170 | %defattr(644,root,root,755) | |
efd46e6c AM |
171 | %attr(755,root,root) %{_bindir}/BioAPI-MdsEdit |
172 | %attr(755,root,root) %{_bindir}/BioAPI-QSample | |
cdb56fcb JB |
173 | %attr(755,root,root) %{_libdir}/libqtpwbsp.so.*.*.* |
174 | %attr(755,root,root) %{_libdir}/libqtpwbsp.so | |
17d96f56 | 175 | %endif |