]>
Commit | Line | Data |
---|---|---|
a2fba8fb JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
3bc5a58b | 5 | Summary: Wacom model feature query library |
51af05ca | 6 | Summary(pl.UTF-8): Biblioteka identyfikująca modele i możliwości tabletów Wacom |
3bc5a58b | 7 | Name: libwacom |
a2fba8fb | 8 | Version: 1.12 |
0d955422 | 9 | Release: 1 |
3bc5a58b MB |
10 | License: MIT |
11 | Group: Libraries | |
2430942c JB |
12 | #Source0Download: https://github.com/linuxwacom/libwacom/releases |
13 | Source0: https://github.com/linuxwacom/libwacom/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 | |
a2fba8fb | 14 | # Source0-md5: 5c2e8a1a985b2a31445f6925a45fdec4 |
2430942c | 15 | URL: https://linuxwacom.github.io/ |
3bc5a58b MB |
16 | BuildRequires: autoconf >= 2.60 |
17 | BuildRequires: automake | |
18 | BuildRequires: doxygen | |
34afeac7 | 19 | BuildRequires: glib2-devel >= 1:2.36 |
0d955422 | 20 | BuildRequires: gtk+2-devel >= 1:2.0 |
a4ea4c17 | 21 | BuildRequires: librsvg-devel >= 2.0 |
a2fba8fb | 22 | BuildRequires: libtool >= 2:2 |
7f25d70a | 23 | BuildRequires: libxml2-devel >= 2.0 |
3bc5a58b | 24 | BuildRequires: pkgconfig |
a2fba8fb | 25 | BuildRequires: python3 >= 1:3 |
1b051c95 | 26 | BuildRequires: sed >= 4.0 |
3bc5a58b | 27 | BuildRequires: udev-glib-devel |
34afeac7 | 28 | Requires: glib2 >= 1:2.36 |
3bc5a58b MB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
51af05ca | 32 | libwacom is a library to identify Wacom tablets and their |
3bc5a58b MB |
33 | model-specific features. |
34 | ||
51af05ca JB |
35 | %description -l pl.UTF-8 |
36 | libwacom to biblioteka identyfikująca tablety Wacom oraz ich | |
37 | możliwości zależne od modelu. | |
38 | ||
3bc5a58b MB |
39 | %package devel |
40 | Summary: Header files for libwacom library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libwacom | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
34afeac7 | 44 | Requires: glib2-devel >= 1:2.36 |
3bc5a58b MB |
45 | |
46 | %description devel | |
47 | Header files for libwacom library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki libwacom. | |
51 | ||
52 | %package static | |
53 | Summary: Static libwacom library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka libwacom | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static libwacom library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka libwacom. | |
63 | ||
64 | %prep | |
65 | %setup -q | |
66 | ||
a2fba8fb | 67 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' tools/{libwacom-update-db,show-stylus}.py |
1b051c95 | 68 | |
3bc5a58b MB |
69 | %build |
70 | %{__libtoolize} | |
71 | %{__aclocal} | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
75 | %configure \ | |
2430942c | 76 | --disable-silent-rules \ |
a2fba8fb | 77 | %{?with_static_libs:--enable-static} \ |
2430942c | 78 | --with-udev-dir=/lib/udev |
3bc5a58b MB |
79 | %{__make} |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
2430942c | 97 | %doc COPYING NEWS README.md |
a2fba8fb | 98 | %attr(755,root,root) %{_bindir}/libwacom-list-devices |
64fdf524 | 99 | %attr(755,root,root) %{_bindir}/libwacom-list-local-devices |
1b051c95 | 100 | %attr(755,root,root) %{_bindir}/libwacom-show-stylus |
a2fba8fb | 101 | %attr(755,root,root) %{_bindir}/libwacom-update-db |
3bc5a58b MB |
102 | %attr(755,root,root) %{_libdir}/libwacom.so.*.*.* |
103 | %attr(755,root,root) %ghost %{_libdir}/libwacom.so.2 | |
104 | %{_datadir}/libwacom | |
7f25d70a | 105 | /lib/udev/hwdb.d/65-libwacom.hwdb |
2430942c | 106 | /lib/udev/rules.d/65-libwacom.rules |
a2fba8fb | 107 | %{_mandir}/man1/libwacom-list-devices.1* |
2430942c | 108 | %{_mandir}/man1/libwacom-list-local-devices.1* |
3bc5a58b MB |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libwacom.so | |
113 | %{_includedir}/libwacom-1.0 | |
114 | %{_pkgconfigdir}/libwacom.pc | |
115 | ||
a2fba8fb | 116 | %if %{with static_libs} |
3bc5a58b MB |
117 | %files static |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libwacom.a | |
a2fba8fb | 120 | %endif |