]>
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 | |
cbb48e0e | 8 | Version: 1.90.6 |
70059cb5 | 9 | Release: 1 |
62cbe38b | 10 | License: LGPL v2.1+ |
3c3cfea2 | 11 | Group: Libraries |
cbb48e0e JR |
12 | Source0: https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v%{version}/%{name}-v%{version}.tar.bz2 |
13 | # Source0-md5: 923d1f1c5aef5ac642b89ef2d95cd055 | |
14 | Patch0: vaio-sx.patch | |
15 | Patch1: 0001-nbis-Disable-array-parameter-and-array-bounds-warnin.patch | |
000ef164 | 16 | URL: https://fprint.freedesktop.org/ |
b0cd0207 | 17 | BuildRequires: glib2-devel >= 1:2.28 |
000ef164 | 18 | BuildRequires: gtk-doc |
62cbe38b | 19 | BuildRequires: libusb-devel >= 0.9.1 |
000ef164 JB |
20 | BuildRequires: meson >= 0.47.0 |
21 | BuildRequires: ninja | |
62cbe38b | 22 | BuildRequires: nss-devel |
70059cb5 | 23 | BuildRequires: pixman-devel |
62cbe38b | 24 | BuildRequires: pkgconfig |
581c4af9 | 25 | BuildRequires: rpmbuild(macros) >= 1.727 |
9d0b0665 JB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
b0cd0207 | 28 | Requires: glib2 >= 1:2.28 |
9d0b0665 | 29 | Requires: libusb >= 0.9.1 |
3c3cfea2 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Open source software library, written in C, designed to make it easy | |
34 | for application developers to add support for consumer fingerprint | |
35 | readers to their software. | |
36 | ||
37 | %description -l pl.UTF-8 | |
9b6994e8 | 38 | Napisana w C biblioteka o otwartym kodzie, zaprojektowana aby ułatwić |
3c3cfea2 | 39 | programistom dodawanie obsługi czytników linii papilarnych do ich |
40 | oprogramowania. | |
41 | ||
42 | %package devel | |
43 | Summary: libfprint header files | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe libfprint | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
b0cd0207 | 47 | Requires: glib2-devel >= 1:2.28 |
62cbe38b JB |
48 | Requires: libusb-devel >= 0.9.1 |
49 | Requires: nss-devel | |
70059cb5 | 50 | Requires: pixman-devel |
3c3cfea2 | 51 | |
52 | %description devel | |
53 | libfprint header files. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe libfprint. | |
57 | ||
c6cc6fea | 58 | %package static |
59 | Summary: Static fprint library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka fprint | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static fprint library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka fprint. | |
69 | ||
000ef164 JB |
70 | %package apidocs |
71 | Summary: API documentation for libfprint library | |
72 | Summary(pl.UTF-8): Dokumentacja API biblioteki libfprint | |
73 | Group: Documentation | |
74 | %if "%{_rpmversion}" >= "5" | |
75 | BuildArch: noarch | |
76 | %endif | |
77 | ||
78 | %description apidocs | |
79 | API documentation for libfprint library. | |
80 | ||
81 | %description apidocs -l pl.UTF-8 | |
82 | Dokumentacja API biblioteki libfprint. | |
83 | ||
62cbe38b JB |
84 | %package -n udev-libfprint |
85 | Summary: Udev rules for libfprint | |
86 | Summary(pl.UTF-8): Reguły udeva dla libfprint | |
87 | Group: Applications/System | |
88 | Requires: %{name} = %{version}-%{release} | |
89 | Requires: udev-core | |
90 | ||
91 | %description -n udev-libfprint | |
92 | Udev rules for libfprint. | |
93 | ||
94 | %description -n udev-libfprint -l pl.UTF-8 | |
95 | Reguły udeva dla libfprint. | |
96 | ||
3c3cfea2 | 97 | %prep |
cbb48e0e | 98 | %setup -q -n %{name}-v%{version} |
000ef164 | 99 | %patch0 -p1 |
cbb48e0e | 100 | %patch1 -p1 |
3c3cfea2 | 101 | |
102 | %build | |
000ef164 | 103 | %meson build \ |
cbb48e0e JR |
104 | -Dx11-examples=true \ |
105 | -Dgtk-examples=true | |
000ef164 | 106 | %{!?with_static_libs:--default=library=shared} |
c6cc6fea | 107 | |
000ef164 | 108 | %meson_build -C build |
3c3cfea2 | 109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
5c78e984 | 112 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
113 | ||
000ef164 | 114 | %meson_install -C build |
3c3cfea2 | 115 | |
cbb48e0e | 116 | cp -p examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
5c78e984 | 117 | |
3c3cfea2 | 118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %post -p /sbin/ldconfig | |
122 | %postun -p /sbin/ldconfig | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
000ef164 | 126 | %doc AUTHORS HACKING.md NEWS README THANKS TODO |
cbb48e0e JR |
127 | %attr(755,root,root) %{_libdir}/libfprint-2.so.*.*.* |
128 | %attr(755,root,root) %ghost %{_libdir}/libfprint-2.so.2 | |
129 | %{_libdir}/girepository-1.0/FPrint-2.0.typelib | |
3c3cfea2 | 130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
cbb48e0e JR |
133 | %attr(755,root,root) %{_libdir}/libfprint-2.so |
134 | %{_includedir}/libfprint-2 | |
135 | %{_pkgconfigdir}/libfprint-2.pc | |
136 | %{_datadir}/gir-1.0/FPrint-2.0.gir | |
5c78e984 | 137 | %{_examplesdir}/%{name}-%{version} |
c6cc6fea | 138 | |
139 | %if %{with static_libs} | |
140 | %files static | |
141 | %defattr(644,root,root,755) | |
cbb48e0e | 142 | %{_libdir}/libfprint-2.a |
c6cc6fea | 143 | %endif |
62cbe38b | 144 | |
000ef164 JB |
145 | %files apidocs |
146 | %defattr(644,root,root,755) | |
cbb48e0e | 147 | %{_gtkdocdir}/libfprint-2 |
000ef164 | 148 | |
62cbe38b JB |
149 | %files -n udev-libfprint |
150 | %defattr(644,root,root,755) | |
cbb48e0e | 151 | /lib/udev/rules.d/60-libfprint-2-autosuspend.rules |