1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: X.Org X11 XKB parsing library |
---|
4 | Summary(ja): X.Org X11 XKB 解析ライブラリ |
---|
5 | Name: libxkbcommon |
---|
6 | Version: 0.6.1 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | License: MIT |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: http://xkbcommon.org/ |
---|
11 | |
---|
12 | Source0: http://xkbcommon.org/download/%{name}-%{version}.tar.xz |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | |
---|
16 | BuildRequires: libxcb-devel |
---|
17 | BuildRequires: xorg-x11-util-macros |
---|
18 | BuildRequires: xkeyboard-config |
---|
19 | BuildRequires: bison |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: Takemikaduchi |
---|
24 | |
---|
25 | |
---|
26 | %description |
---|
27 | xkbcommon is a library to handle keyboard descriptions, including |
---|
28 | loading them from disk, parsing them and handling their state. |
---|
29 | It's mainly meant for client toolkits, window systems, and other |
---|
30 | system applications; currently that includes Wayland, kmscon, GTK+, |
---|
31 | Qt, Clutter, and more. It is also used by some XCB applications for |
---|
32 | proper keyboard support. |
---|
33 | |
---|
34 | |
---|
35 | %package devel |
---|
36 | Summary: Development tools for %{name} |
---|
37 | Summary(ja): %{name} の開発環境 |
---|
38 | Group: Development/Libraries |
---|
39 | Requires: %{name} = %{version}-%{release} |
---|
40 | Requires: pkgconfig |
---|
41 | Requires: libxcb-devel |
---|
42 | |
---|
43 | %description devel |
---|
44 | Header files and libraries for building a extension library for the %{name}. |
---|
45 | |
---|
46 | |
---|
47 | # compat32 |
---|
48 | %package -n compat32-%{name} |
---|
49 | Summary: X.Org X11 XKB parsing library |
---|
50 | Summary(ja): X.Org X11 XKB 解析ライブラリ |
---|
51 | Group: System Environment/Libraries |
---|
52 | Requires: %{name} = %{version}-%{release} |
---|
53 | |
---|
54 | %description -n compat32-%{name} |
---|
55 | xkbcommon is a library to handle keyboard descriptions, including |
---|
56 | loading them from disk, parsing them and handling their state. |
---|
57 | It's mainly meant for client toolkits, window systems, and other |
---|
58 | system applications; currently that includes Wayland, kmscon, GTK+, |
---|
59 | Qt, Clutter, and more. It is also used by some XCB applications for |
---|
60 | proper keyboard support. |
---|
61 | |
---|
62 | |
---|
63 | %package -n compat32-%{name}-devel |
---|
64 | Summary: Development tools for %{name} |
---|
65 | Summary(ja): %{name} の開発環境 |
---|
66 | Group: Development/Libraries |
---|
67 | Requires: %{name}-devel = %{version}-%{release} |
---|
68 | Requires: pkgconfig |
---|
69 | Requires: compat32-libxcb-devel |
---|
70 | |
---|
71 | %description -n compat32-%{name}-devel |
---|
72 | Header files and libraries for building a extension library for the %{name}. |
---|
73 | |
---|
74 | |
---|
75 | %prep |
---|
76 | %setup -q |
---|
77 | |
---|
78 | %build |
---|
79 | %configure \ |
---|
80 | --disable-static \ |
---|
81 | --with-default-rules=evdev \ |
---|
82 | --with-default-model=pc106 \ |
---|
83 | --with-default-layout=jp |
---|
84 | |
---|
85 | make %{?_smp_mflags} |
---|
86 | |
---|
87 | %install |
---|
88 | rm -rf $RPM_BUILD_ROOT |
---|
89 | |
---|
90 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
91 | |
---|
92 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
93 | |
---|
94 | %clean |
---|
95 | rm -rf $RPM_BUILD_ROOT |
---|
96 | |
---|
97 | %post -p /sbin/ldconfig |
---|
98 | %postun -p /sbin/ldconfig |
---|
99 | |
---|
100 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
101 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
102 | |
---|
103 | %files |
---|
104 | %defattr(-,root,root,-) |
---|
105 | %doc COPYING NEWS README.md |
---|
106 | %{_libdir}/libxkbcommon-x11.so.* |
---|
107 | %{_libdir}/libxkbcommon.so.* |
---|
108 | |
---|
109 | %files devel |
---|
110 | %defattr(-,root,root,-) |
---|
111 | %{_includedir}/xkbcommon/ |
---|
112 | %{_libdir}/libxkbcommon-x11.so |
---|
113 | %{_libdir}/libxkbcommon.so |
---|
114 | %{_libdir}/pkgconfig/xkbcommon-x11.pc |
---|
115 | %{_libdir}/pkgconfig/xkbcommon.pc |
---|
116 | |
---|
117 | # compat32 |
---|
118 | %if %{build_compat32} |
---|
119 | %files -n compat32-%{name} |
---|
120 | %defattr(-,root,root,-) |
---|
121 | %{_libdir}/libxkbcommon-x11.so.* |
---|
122 | %{_libdir}/libxkbcommon.so.* |
---|
123 | |
---|
124 | %files -n compat32-%{name}-devel |
---|
125 | %defattr(-,root,root,-) |
---|
126 | %{_libdir}/libxkbcommon-x11.so |
---|
127 | %{_libdir}/libxkbcommon.so |
---|
128 | %endif |
---|
129 | |
---|
130 | %changelog |
---|
131 | * Sun Jul 3 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.1-1 |
---|
132 | - new upstream release. |
---|
133 | |
---|
134 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1 |
---|
135 | - initial build |
---|
136 | |
---|