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