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