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