]>
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 | |
62cbe38b JB |
8 | Version: 0.3.0 |
9 | Release: 1 | |
10 | License: LGPL v2.1+ | |
3c3cfea2 | 11 | Group: Libraries |
62cbe38b JB |
12 | Source0: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 5207cc77c59d4262ba9cb1468a6fa532 | |
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 \ |
62cbe38b | 78 | %{?with_static_libs:--enable-static} |
c6cc6fea | 79 | |
3c3cfea2 | 80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
5c78e984 | 84 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
85 | ||
3c3cfea2 | 86 | %{__make} install \ |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
5c78e984 | 89 | install examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
90 | ||
3c3cfea2 | 91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
62cbe38b JB |
99 | %doc AUTHORS ChangeLog HACKING NEWS README THANKS TODO |
100 | %attr(755,root,root) %{_libdir}/libfprint.so.*.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libfprint.so.0 | |
3c3cfea2 | 102 | |
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
62cbe38b JB |
105 | %attr(755,root,root) %{_libdir}/libfprint.so |
106 | %{_libdir}/libfprint.la | |
3c3cfea2 | 107 | %dir %{_includedir}/libfprint |
108 | %{_includedir}/libfprint/fprint.h | |
109 | %{_pkgconfigdir}/libfprint.pc | |
5c78e984 | 110 | %{_examplesdir}/%{name}-%{version} |
c6cc6fea | 111 | |
112 | %if %{with static_libs} | |
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libfprint.a | |
116 | %endif | |
62cbe38b JB |
117 | |
118 | %files -n udev-libfprint | |
119 | %defattr(644,root,root,755) | |
120 | /etc/udev/rules.d/60-fprint-autosuspend.rules |