|
@@ -1,6 +1,8 @@
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+
|
|
|
Name: xcb-util
|
|
|
Version: 0.3.6
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Release: 3%{?_dist_release}
|
|
|
Summary: Convenience libraries sitting on top of libxcb
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
@@ -25,10 +27,36 @@ the X protocol but which have traditionally been provided by Xlib.
|
|
|
Summary: Development and header files for xcb-util
|
|
|
Group: System Environment/Libraries
|
|
|
Requires: %{name} = %{version}-%{release}, pkgconfig
|
|
|
+
|
|
|
%description devel
|
|
|
Development files for xcb-util.
|
|
|
|
|
|
|
|
|
+# compat32
|
|
|
+%package -n compat32-%{name}
|
|
|
+Summary: Convenience libraries sitting on top of libxcb
|
|
|
+Group: System Environment/Libraries
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n compat32-%{name}
|
|
|
+The xcb-util module provides a number of libraries which sit on top of
|
|
|
+libxcb, the core X protocol library, and some of the extension
|
|
|
+libraries. These experimental libraries provide convenience functions
|
|
|
+and interfaces which make the raw X protocol more usable. Some of the
|
|
|
+libraries also provide client-side code which is not strictly part of
|
|
|
+the X protocol but which have traditionally been provided by Xlib.
|
|
|
+
|
|
|
+
|
|
|
+%package -n compat32-%{name}-devel
|
|
|
+Summary: Development and header files for xcb-util
|
|
|
+Group: System Environment/Libraries
|
|
|
+Requires: compat32-%{name} = %{version}-%{release}
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n compat32-%{name}-devel
|
|
|
+Development files for xcb-util.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
@@ -61,6 +89,10 @@ rm %{buildroot}%{_libdir}/*.la
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
+%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
+%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
+
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
@@ -84,8 +116,31 @@ rm -rf %{buildroot}
|
|
|
%{_libdir}/*.so
|
|
|
%{_includedir}/xcb/*.h
|
|
|
|
|
|
+# compat32
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-%{name}
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/libxcb-atom.so.1*
|
|
|
+%{_libdir}/libxcb-aux.so.0*
|
|
|
+%{_libdir}/libxcb-event.so.1*
|
|
|
+%{_libdir}/libxcb-icccm.so.1*
|
|
|
+%{_libdir}/libxcb-image.so.0*
|
|
|
+%{_libdir}/libxcb-keysyms.so.1*
|
|
|
+%{_libdir}/libxcb-property.so.1*
|
|
|
+%{_libdir}/libxcb-render-util.so.0*
|
|
|
+%{_libdir}/libxcb-reply.so.1*
|
|
|
+
|
|
|
+%files -n compat32-%{name}-devel
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_libdir}/pkgconfig/*.pc
|
|
|
+%{_libdir}/*.so
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Dec 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.6-3
|
|
|
+- create compat32-xcb-util sub package
|
|
|
+
|
|
|
* Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.6-2
|
|
|
- rebuild with rpm-4.8.1 for pkg-config file
|
|
|
|