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