]>
Commit | Line | Data |
---|---|---|
17d96f56 | 1 | # TODO: |
3a926a7e | 2 | # - change code to do not require *.so libs and dlopen by SONAME |
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 | |
6f5313c2 | 8 | Summary(pl.UTF-8): Szkielet do uwierzytelniania opartego o biometrykę |
17d96f56 | 9 | Name: bioapi |
3a926a7e | 10 | Version: 1.2.4 |
a55a62b3 | 11 | Release: 0.1 |
17d96f56 AM |
12 | License: BSD |
13 | Group: Applications/Networking | |
3a926a7e | 14 | #Source0Download: http://code.google.com/p/bioapi-linux/downloads/list |
a55a62b3 | 15 | Source0: http://bioapi-linux.googlecode.com/files/%{name}_%{version}.tar.gz |
3a926a7e | 16 | # Source0-md5: 98c20bd7bb2d87f24980c87b6e1c3fb6 |
e16f205a | 17 | Patch0: %{name}-build.patch |
3a926a7e | 18 | Patch1: %{name}-no-delete.patch |
a55a62b3 | 19 | URL: http://code.google.com/p/bioapi-linux/ |
3a926a7e | 20 | BuildRequires: autoconf >= 2.67 |
aa3cd95d | 21 | BuildRequires: automake >= 1.6 |
adcf0a05 | 22 | BuildRequires: libstdc++-devel |
3a926a7e | 23 | BuildRequires: libtool >= 2:2 |
17d96f56 | 24 | %{?with_qt:BuildRequires: qt-devel} |
aa3cd95d | 25 | %{?with_qt:BuildRequires: xorg-lib-libXt-devel} |
17d96f56 AM |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
3a926a7e JB |
28 | # circular symbol dependencies between libmds_util and libbioapi_mds300 |
29 | %define skip_post_check_so libmds_util.so.* | |
30 | ||
cdb56fcb JB |
31 | # to get /var/lib/bioapi instead of /var/bioapi |
32 | %define _localstatedir /var/lib | |
33 | ||
17d96f56 AM |
34 | %description |
35 | BioAPI reference implementation for Unix-based platforms. The | |
36 | Unix-based reference implementation was developed by the Convergent | |
37 | Information Division (CISD), Information Technology Laboratory (ITL) | |
38 | of the National Institute of Standards and Technology (NIST). The | |
39 | Unix-based reference implementation is based directly on the BioAPI | |
40 | Consortium's Windows reference implementation and the Common Data | |
41 | Security Architecture (CDSA) reference implementation. The Unix-based | |
42 | reference implementation includes the Sample application and the | |
43 | MdsEdit utility from code provided by the International Biometric | |
44 | Group (IBG). | |
45 | ||
1e525dd4 JR |
46 | %description -l pl.UTF-8 |
47 | Wzorcowa implementacja BioAPI dla platform uniksowych. Została | |
0be507b1 JB |
48 | stworzona przez Convergent Information Division (CISD), Information |
49 | Technology Laboratory (ITL) z National Institute of Standards and | |
1e525dd4 | 50 | Technology (NIST). Jest oparta bezpośrednio na wzorcowej implementacji |
0be507b1 | 51 | BioAPI Consortium dla Windows oraz wzorcowej implementacji Common Data |
1e525dd4 JR |
52 | Security Architecture (CDSA). Uniksowa implementacja zawiera aplikację |
53 | przykładową i narzędzie MdsEdit z kodu dostarczonego przez | |
0be507b1 JB |
54 | International Biometric Group (IBG). |
55 | ||
17d96f56 | 56 | %package devel |
0be507b1 | 57 | Summary: Header files for BioAPI |
6f5313c2 | 58 | Summary(pl.UTF-8): Pliki nagłówkowe BioAPI |
17d96f56 | 59 | Group: Development/Libraries |
aa3cd95d | 60 | Requires: %{name} = %{version}-%{release} |
adcf0a05 | 61 | Requires: libstdc++-devel |
17d96f56 AM |
62 | |
63 | %description devel | |
0be507b1 JB |
64 | Header files for BioAPI. |
65 | ||
1e525dd4 JR |
66 | %description devel -l pl.UTF-8 |
67 | Pliki nagłówkowe BioAPI. | |
17d96f56 AM |
68 | |
69 | %package static | |
70 | Summary: Static BioAPI libraries | |
6f5313c2 | 71 | Summary(pl.UTF-8): Statyczne biblioteki BioAPI |
17d96f56 | 72 | Group: Development/Libraries |
aa3cd95d | 73 | Requires: %{name}-devel = %{version}-%{release} |
17d96f56 AM |
74 | |
75 | %description static | |
76 | Static BioAPI libraries. | |
77 | ||
1e525dd4 | 78 | %description static -l pl.UTF-8 |
0be507b1 JB |
79 | Statyczne biblioteki BioAPI. |
80 | ||
17d96f56 | 81 | %package qt |
0be507b1 | 82 | Summary: Sample BioAPI Qt application |
6f5313c2 | 83 | Summary(pl.UTF-8): Przykładowa aplikacja BioAPI w Qt |
0be507b1 | 84 | Group: X11/Applications |
aa3cd95d | 85 | Requires: %{name} = %{version}-%{release} |
17d96f56 AM |
86 | |
87 | %description qt | |
88 | Sample BioAPI QT application. | |
89 | ||
1e525dd4 JR |
90 | %description qt -l pl.UTF-8 |
91 | Przykładowa aplikacja BioAPI w Qt. | |
0be507b1 | 92 | |
17d96f56 | 93 | %prep |
a55a62b3 | 94 | %setup -q -n %{name}-linux |
e16f205a ER |
95 | %patch0 -p1 |
96 | %patch1 -p1 | |
17d96f56 AM |
97 | |
98 | %build | |
a55a62b3 | 99 | %{__libtoolize} |
aa3cd95d | 100 | %{__aclocal} -I m4 |
a55a62b3 MWP |
101 | %{__autoconf} |
102 | %{__automake} | |
17d96f56 AM |
103 | %configure \ |
104 | %if %{with qt} | |
3a926a7e JB |
105 | --with-Qt-bin-dir=/usr/bin \ |
106 | --with-Qt-include-dir=/usr/include/qt \ | |
17d96f56 | 107 | --with-Qt-lib-dir=%{_libdir} \ |
3a926a7e | 108 | --with-Qt-lib=qt-mt \ |
17d96f56 | 109 | %else |
aa3cd95d | 110 | --without-Qt-dir \ |
17d96f56 | 111 | %endif |
e16f205a | 112 | --includedir=%{_includedir}/%{name} |
a55a62b3 MWP |
113 | |
114 | %{__make} | |
17d96f56 AM |
115 | |
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
cdb56fcb | 118 | install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},/var/lib/bioapi} |
17d96f56 AM |
119 | %{__make} install \ |
120 | DESTDIR=$RPM_BUILD_ROOT | |
121 | ||
e16f205a | 122 | cp -p imports/cdsa/v2_0/inc/cssmtype.h \ |
b0743b57 AM |
123 | $RPM_BUILD_ROOT%{_includedir}/%{name} |
124 | ||
17d96f56 AM |
125 | mv $RPM_BUILD_ROOT%{_bindir}/Sample $RPM_BUILD_ROOT%{_bindir}/BioAPI-Sample |
126 | mv $RPM_BUILD_ROOT%{_bindir}/mds_install $RPM_BUILD_ROOT%{_bindir}/BioAPI-mds_install | |
127 | mv $RPM_BUILD_ROOT%{_bindir}/mod_install $RPM_BUILD_ROOT%{_bindir}/BioAPI-mod_install | |
128 | ||
efd46e6c AM |
129 | %if %{with qt} |
130 | mv $RPM_BUILD_ROOT%{_bindir}/MdsEdit $RPM_BUILD_ROOT%{_bindir}/BioAPI-MdsEdit | |
131 | mv $RPM_BUILD_ROOT%{_bindir}/QSample $RPM_BUILD_ROOT%{_bindir}/BioAPI-QSample | |
132 | %endif | |
133 | ||
cdb56fcb | 134 | # modules to dlopen |
3a926a7e | 135 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{bioapi_dummy100,pwbsp,qtpwbsp}.{la,a} |
cdb56fcb | 136 | |
17d96f56 AM |
137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %post | |
141 | /sbin/ldconfig | |
142 | %{_bindir}/BioAPI-mds_install -s %{_libdir} | |
143 | %{_bindir}/BioAPI-mod_install -fi %{_libdir}/libbioapi100.so | |
144 | %{_bindir}/BioAPI-mod_install -fi %{_libdir}/libbioapi_dummy100.so | |
3a926a7e | 145 | %{_bindir}/BioAPI-mod_install -fi %{_libdir}/libpwbsp.so |
17d96f56 AM |
146 | |
147 | %postun -p /sbin/ldconfig | |
148 | ||
149 | %post qt | |
150 | /sbin/ldconfig | |
151 | %{_bindir}/BioAPI-mod_install -fi %{_libdir}/libqtpwbsp.so | |
152 | ||
153 | %postun qt -p /sbin/ldconfig | |
154 | ||
155 | %files | |
156 | %defattr(644,root,root,755) | |
157 | %doc *.htm Disclaimer | |
efd46e6c AM |
158 | %attr(755,root,root) %{_bindir}/BioAPI-Sample |
159 | %attr(755,root,root) %{_bindir}/BioAPI-*_* | |
160 | %attr(755,root,root) %{_bindir}/BioAPITest | |
cdb56fcb | 161 | %attr(755,root,root) %{_libdir}/libbioapi100.so.*.*.* |
3a926a7e | 162 | %attr(755,root,root) %ghost %{_libdir}/libbioapi100.so.0 |
cdb56fcb | 163 | %attr(755,root,root) %{_libdir}/libbioapi_dummy100.so.*.*.* |
3a926a7e | 164 | %attr(755,root,root) %ghost %{_libdir}/libbioapi_dummy100.so.0 |
cdb56fcb | 165 | %attr(755,root,root) %{_libdir}/libbioapi_mds300.so.*.*.* |
3a926a7e | 166 | %attr(755,root,root) %ghost %{_libdir}/libbioapi_mds300.so.0 |
cdb56fcb | 167 | %attr(755,root,root) %{_libdir}/libmds_util.so.*.*.* |
3a926a7e | 168 | %attr(755,root,root) %ghost %{_libdir}/libmds_util.so.0 |
cdb56fcb | 169 | %attr(755,root,root) %{_libdir}/libpwbsp.so.*.*.* |
3a926a7e JB |
170 | %attr(755,root,root) %ghost %{_libdir}/libpwbsp.so.0 |
171 | # libraries are dlopened too | |
cdb56fcb JB |
172 | %attr(755,root,root) %{_libdir}/libbioapi100.so |
173 | %attr(755,root,root) %{_libdir}/libbioapi_dummy100.so | |
174 | %attr(755,root,root) %{_libdir}/libbioapi_mds300.so | |
175 | %attr(755,root,root) %{_libdir}/libmds_util.so | |
176 | %attr(755,root,root) %{_libdir}/libpwbsp.so | |
177 | %dir /var/lib/bioapi | |
17d96f56 AM |
178 | |
179 | %files devel | |
180 | %defattr(644,root,root,755) | |
cdb56fcb JB |
181 | # *.so needed in main package (maybe except libmds_util.so?) |
182 | %{_libdir}/libbioapi100.la | |
183 | %{_libdir}/libbioapi_mds300.la | |
184 | %{_libdir}/libmds_util.la | |
b0743b57 | 185 | %{_includedir}/%{name} |
17d96f56 AM |
186 | |
187 | %files static | |
188 | %defattr(644,root,root,755) | |
cdb56fcb JB |
189 | %{_libdir}/libbioapi100.a |
190 | %{_libdir}/libbioapi_mds300.a | |
191 | %{_libdir}/libmds_util.a | |
17d96f56 AM |
192 | |
193 | %if %{with qt} | |
194 | %files qt | |
195 | %defattr(644,root,root,755) | |
efd46e6c AM |
196 | %attr(755,root,root) %{_bindir}/BioAPI-MdsEdit |
197 | %attr(755,root,root) %{_bindir}/BioAPI-QSample | |
cdb56fcb | 198 | %attr(755,root,root) %{_libdir}/libqtpwbsp.so.*.*.* |
3a926a7e | 199 | %attr(755,root,root) %ghost %{_libdir}/libqtpwbsp.so.0 |
cdb56fcb | 200 | %attr(755,root,root) %{_libdir}/libqtpwbsp.so |
17d96f56 | 201 | %endif |