]>
Commit | Line | Data |
---|---|---|
c6cc6fea | 1 | # |
2 | # Conditional build: | |
62cbe38b | 3 | %bcond_without static_libs # don't build static library |
c6cc6fea | 4 | # |
3c3cfea2 | 5 | Summary: Fingerprint reader library |
6 | Summary(pl.UTF-8): Biblioteka do obsługi czytników linii papilarnych | |
7 | Name: libfprint | |
b0cd0207 | 8 | Version: 0.5.1 |
8fa55ce5 | 9 | Release: 2 |
62cbe38b | 10 | License: LGPL v2.1+ |
3c3cfea2 | 11 | Group: Libraries |
9d0b0665 | 12 | Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz |
b0cd0207 | 13 | # Source0-md5: f52ac662d89fb82a441dacb0bac36c13 |
3c3cfea2 | 14 | URL: http://reactivated.net/fprint/wiki/Libfprint |
62cbe38b | 15 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
b0cd0207 | 16 | BuildRequires: glib2-devel >= 1:2.28 |
62cbe38b JB |
17 | BuildRequires: libusb-devel >= 0.9.1 |
18 | BuildRequires: nss-devel | |
19 | BuildRequires: pkgconfig | |
9d0b0665 JB |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
b0cd0207 | 22 | Requires: glib2 >= 1:2.28 |
9d0b0665 | 23 | Requires: libusb >= 0.9.1 |
3c3cfea2 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Open source software library, written in C, designed to make it easy | |
28 | for application developers to add support for consumer fingerprint | |
29 | readers to their software. | |
30 | ||
31 | %description -l pl.UTF-8 | |
9b6994e8 | 32 | Napisana w C biblioteka o otwartym kodzie, zaprojektowana aby ułatwić |
3c3cfea2 | 33 | programistom dodawanie obsługi czytników linii papilarnych do ich |
34 | oprogramowania. | |
35 | ||
36 | %package devel | |
37 | Summary: libfprint header files | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe libfprint | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
62cbe38b | 41 | Requires: gdk-pixbuf2-devel >= 2.0 |
b0cd0207 | 42 | Requires: glib2-devel >= 1:2.28 |
62cbe38b JB |
43 | Requires: libusb-devel >= 0.9.1 |
44 | Requires: nss-devel | |
3c3cfea2 | 45 | |
46 | %description devel | |
47 | libfprint header files. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe libfprint. | |
51 | ||
c6cc6fea | 52 | %package static |
53 | Summary: Static fprint library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka fprint | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static fprint library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka fprint. | |
63 | ||
62cbe38b JB |
64 | %package -n udev-libfprint |
65 | Summary: Udev rules for libfprint | |
66 | Summary(pl.UTF-8): Reguły udeva dla libfprint | |
67 | Group: Applications/System | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | Requires: udev-core | |
70 | ||
71 | %description -n udev-libfprint | |
72 | Udev rules for libfprint. | |
73 | ||
74 | %description -n udev-libfprint -l pl.UTF-8 | |
75 | Reguły udeva dla libfprint. | |
76 | ||
3c3cfea2 | 77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
c6cc6fea | 81 | %configure \ |
0b10ca00 | 82 | --disable-silent-rules \ |
62cbe38b | 83 | %{?with_static_libs:--enable-static} |
c6cc6fea | 84 | |
3c3cfea2 | 85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
5c78e984 | 89 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
90 | ||
3c3cfea2 | 91 | %{__make} install \ |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
5c78e984 | 94 | install examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
95 | ||
3c3cfea2 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
62cbe38b JB |
104 | %doc AUTHORS ChangeLog HACKING NEWS README THANKS TODO |
105 | %attr(755,root,root) %{_libdir}/libfprint.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libfprint.so.0 | |
3c3cfea2 | 107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
62cbe38b JB |
110 | %attr(755,root,root) %{_libdir}/libfprint.so |
111 | %{_libdir}/libfprint.la | |
3c3cfea2 | 112 | %dir %{_includedir}/libfprint |
113 | %{_includedir}/libfprint/fprint.h | |
114 | %{_pkgconfigdir}/libfprint.pc | |
5c78e984 | 115 | %{_examplesdir}/%{name}-%{version} |
c6cc6fea | 116 | |
117 | %if %{with static_libs} | |
118 | %files static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libfprint.a | |
121 | %endif | |
62cbe38b JB |
122 | |
123 | %files -n udev-libfprint | |
124 | %defattr(644,root,root,755) | |
9d0b0665 | 125 | /lib/udev/rules.d/60-fprint-autosuspend.rules |