]>
Commit | Line | Data |
---|---|---|
9a540856 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Open Input Framework Frame Library | |
6 | Name: frame | |
7 | Version: 2.5.0 | |
8 | Release: 1 | |
9 | License: GPL v3 / LGPL v3 | |
7abf551a | 10 | Group: Libraries |
9a540856 JR |
11 | Source0: https://launchpad.net/frame/trunk/v%{version}/+download/%{name}-%{version}.tar.xz |
12 | # Source0-md5: f523283e80a1de613bd38e3b7f0c5f8e | |
13 | URL: https://launchpad.net/frame | |
14 | BuildRequires: asciidoc | |
15 | BuildRequires: xorg-lib-libX11-devel | |
16 | BuildRequires: xorg-lib-libXext-devel | |
17 | BuildRequires: xorg-xserver-server-devel | |
18 | BuildRequires: xorg-lib-libXi-devel >= 1.6.0 | |
19 | BuildRequires: xorg-proto-inputproto-devel >= 2.2.0 | |
20 | Requires(post,postun): /sbin/ldconfig | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Frame handles the buildup and synchronization of a set of simultaneous | |
25 | touches. | |
26 | ||
7abf551a JR |
27 | %package tools |
28 | Summary: Test tools for frame library | |
29 | Summary(pl.UTF-8): Testowe narzędzia biblioteki frame | |
30 | Group: Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description tools | |
34 | Test tools for frame library. | |
35 | ||
36 | %description tools -l pl.UTF-8 | |
37 | Testowe narzędzia biblioteki frame. | |
38 | ||
9a540856 JR |
39 | %package devel |
40 | Summary: Header files for frame library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki frame | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Header files for frame library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki frame. | |
50 | ||
51 | %package static | |
52 | Summary: Static frame library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka frame | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static frame library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka frame. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | ||
66 | %build | |
67 | %configure \ | |
68 | %{!?with_static_libs:--disable-static} | |
69 | %{__make} V=1 | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %{__make} install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc README | |
9a540856 JR |
88 | %attr(755,root,root) %{_libdir}/libframe.so.*.*.* |
89 | %attr(755,root,root) %ghost %{_libdir}/libframe.so.6 | |
7abf551a JR |
90 | |
91 | %files tools | |
92 | %defattr(644,root,root,755) | |
93 | %attr(755,root,root) %{_bindir}/frame-test-x11 | |
9a540856 JR |
94 | %{_mandir}/man1/frame-test-x11.1* |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libframe.so | |
99 | %{_includedir}/oif | |
100 | %{_pkgconfigdir}/frame.pc | |
101 | %{_pkgconfigdir}/frame-x11.pc | |
102 | ||
103 | %if %{with static_libs} | |
104 | %files static | |
105 | %defattr(644,root,root,755) | |
106 | %{_libdir}/libframe.a | |
107 | %endif |