1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define xpyb_version 1.1 |
---|
4 | |
---|
5 | Summary: A C binding to the X11 protocol |
---|
6 | Summary(ja): X11 プロトコルの C による実装 |
---|
7 | Name: libxcb |
---|
8 | Version: 1.5 |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | |
---|
11 | Group: System Environment/Libraries |
---|
12 | License: MIT |
---|
13 | URL: http://xcb.freedesktop.org/ |
---|
14 | Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 |
---|
15 | |
---|
16 | Source2: http://xcb.freedesktop.org/dist/xpyb-%{xpyb_version}.tar.bz2 |
---|
17 | |
---|
18 | Patch10: libxcb-1.4-no-pthread-stubs.patch |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
21 | BuildRequires: autoconf automake libtool pkgconfig |
---|
22 | #BuildRequires: doxygen |
---|
23 | #BuildRequires: graphviz |
---|
24 | BuildRequires: libXau-devel |
---|
25 | BuildRequires: libxslt |
---|
26 | BuildRequires: xcb-proto >= 1.6 |
---|
27 | BuildRequires: xorg-x11-proto-devel |
---|
28 | BuildRequires: xorg-x11-util-macros |
---|
29 | |
---|
30 | %description |
---|
31 | The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a |
---|
32 | small footprint, latency hiding, direct access to the protocol, improved |
---|
33 | threading support, and extensibility. |
---|
34 | |
---|
35 | %package devel |
---|
36 | Summary: Development files for %{name} |
---|
37 | Group: Development/Libraries |
---|
38 | Requires: %{name} = %{version}-%{release} |
---|
39 | Requires: pkgconfig |
---|
40 | |
---|
41 | %description devel |
---|
42 | The %{name}-devel package contains libraries and header files for |
---|
43 | developing applications that use %{name}. |
---|
44 | |
---|
45 | %package doc |
---|
46 | Summary: Documentation for %{name} |
---|
47 | Group: Documentation |
---|
48 | |
---|
49 | %description doc |
---|
50 | The %{name}-doc package contains documentation for the %{name} library. |
---|
51 | |
---|
52 | %package python |
---|
53 | Summary: Python bindings for %{name} |
---|
54 | Group: Development/Libraries |
---|
55 | Provides: xpyb |
---|
56 | |
---|
57 | %description python |
---|
58 | Python bindings for %{name}. |
---|
59 | |
---|
60 | %package -n compat32-%{name} |
---|
61 | Summary: A C binding to the X11 protocol |
---|
62 | Summary(ja): X11 プロトコルの C による実装 |
---|
63 | Group: System Environment/Libraries |
---|
64 | |
---|
65 | %description -n compat32-%{name} |
---|
66 | The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a |
---|
67 | small footprint, latency hiding, direct access to the protocol, improved |
---|
68 | threading support, and extensibility. |
---|
69 | |
---|
70 | %package -n compat32-%{name}-devel |
---|
71 | Summary: Development files for %{name} |
---|
72 | Group: Development/Libraries |
---|
73 | Requires: compat32-%{name} = %{version}-%{release} |
---|
74 | Requires: %{name}-devel = %{version}-%{release} |
---|
75 | |
---|
76 | %description -n compat32-%{name}-devel |
---|
77 | The %{name}-devel package contains libraries and header files for |
---|
78 | developing applications that use %{name}. |
---|
79 | |
---|
80 | %prep |
---|
81 | %setup -q -b2 |
---|
82 | %patch10 -p1 |
---|
83 | |
---|
84 | pushd ../xpyb-%{xpyb_version} |
---|
85 | # XXX fix me upstream please |
---|
86 | sed -i 's@$(pythondir)@$(pyexecdir)@' src/Makefile.am |
---|
87 | popd |
---|
88 | |
---|
89 | %build |
---|
90 | autoreconf -v --install |
---|
91 | %configure --disable-static --docdir=%{_datadir}/doc/%{name}-%{version} --disable-selinux |
---|
92 | make %{?_smp_mflags} |
---|
93 | |
---|
94 | pushd ../xpyb-%{xpyb_version} |
---|
95 | autoreconf -v --install |
---|
96 | %configure |
---|
97 | make %{?_smp_mflags} |
---|
98 | popd |
---|
99 | |
---|
100 | %install |
---|
101 | rm -rf $RPM_BUILD_ROOT |
---|
102 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
103 | find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f |
---|
104 | install -m 644 COPYING NEWS README $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version} |
---|
105 | |
---|
106 | pushd ../xpyb-%{xpyb_version} |
---|
107 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
108 | popd |
---|
109 | |
---|
110 | find $RPM_BUILD_ROOT -name '*.la' -delete |
---|
111 | |
---|
112 | %clean |
---|
113 | rm -rf $RPM_BUILD_ROOT |
---|
114 | |
---|
115 | %post -p /sbin/ldconfig |
---|
116 | %postun -p /sbin/ldconfig |
---|
117 | |
---|
118 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
119 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
120 | |
---|
121 | %files |
---|
122 | %defattr(-,root,root,-) |
---|
123 | %{_libdir}/*.so.* |
---|
124 | |
---|
125 | %files devel |
---|
126 | %defattr(-,root,root,-) |
---|
127 | %{_includedir}/xcb |
---|
128 | %{_libdir}/*.so |
---|
129 | %{_libdir}/pkgconfig/*.pc |
---|
130 | |
---|
131 | %files doc |
---|
132 | %defattr(-,root,root,-) |
---|
133 | %{_datadir}/doc/%{name}-%{version} |
---|
134 | |
---|
135 | %files python |
---|
136 | %defattr(-,root,root,-) |
---|
137 | %{python_sitearch}/xcb |
---|
138 | |
---|
139 | %if %{build_compat32} |
---|
140 | %files -n compat32-%{name} |
---|
141 | %defattr(-,root,root,-) |
---|
142 | %{_libdir}/*.so.* |
---|
143 | |
---|
144 | %files -n compat32-%{name}-devel |
---|
145 | %defattr(-,root,root,-) |
---|
146 | %{_libdir}/*.so |
---|
147 | %{_libdir}/pkgconfig/*.pc |
---|
148 | %endif |
---|
149 | |
---|
150 | %changelog |
---|
151 | * Mon Mar 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1 |
---|
152 | - new upstream release |
---|
153 | |
---|
154 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.4-2 |
---|
155 | - rebuild with python-2.6 |
---|
156 | |
---|
157 | * Tue Nov 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4-1 |
---|
158 | - new upstream release |
---|
159 | - add libxcb python binding (xpyb) |
---|
160 | |
---|
161 | * Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-2 |
---|
162 | - added compat32 package for x86_64 arch support |
---|
163 | |
---|
164 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-1 |
---|
165 | - new upstream release |
---|
166 | |
---|
167 | * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 1.1-2 |
---|
168 | - spec in utf-8 |
---|
169 | - added japanese summary |
---|
170 | |
---|
171 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1 |
---|
172 | - new versioning policy |
---|
173 | |
---|
174 | * Sun Jan 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-0vl1 |
---|
175 | - initial build for Vine Linux |
---|
176 | |
---|
177 | * Mon Nov 12 2007 Adam Jackson <ajax@redhat.com> 1.1-1 |
---|
178 | - libxcb 1.1 |
---|
179 | |
---|
180 | * Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 1.0-3 |
---|
181 | - libxcb-1.0-abstract-socket.patch: When connecting to the X server, prefer |
---|
182 | abstract-namespace unix sockets to filesystem-bound sockets. |
---|
183 | |
---|
184 | * Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 1.0-2 |
---|
185 | - Rebuild for PPC toolchain bug |
---|
186 | |
---|
187 | * Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1 |
---|
188 | - Initial revision. |
---|