-Summary: XCB protocol files
-Summary(pl): Pliki opisu protoko³u XCB
+Summary: XML-XCB protocol description files
+Summary(pl.UTF-8): Pliki opisu protokołu XML-XCB
Name: xcb-proto
-Version: 0.9.91
-Release: 1
+Version: 1.2
+Release: 2
License: MIT
Group: Development/Libraries
Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
-# Source0-md5: 830cac0c81e43807849dd172bf7e65e2
+# Source0-md5: 09f912486d8a2353bb4b99ddc28ba3c7
URL: http://xcb.freedesktop.org/
+BuildRequires: python
+%pyrequires_eq python
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-XCB protocol files.
-
-%description -l pl
-Pliki opisu protoko³u XCB.
+xcb-proto provides the XML-XCB protocol descriptions that libxcb uses
+to generate the majority of its code and API. They are provided
+separately from libxcb to allow reuse by other projects, such as
+additional language bindings, protocol dissectors, or documentation
+generators.
+
+%description -l pl.UTF-8
+xcb-proto zawiera opisy protokołu XML-XCB używane przez libxcb do
+generowania większości swojego kodu i API. Są dostarczane osobno, aby
+umożliwić wykorzystanie przez inne projekty, takie jak dodatkowe
+dowiązania dla innych języków, analizatory protokołu czy generatory
+dokumentacji.
%prep
%setup -q
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%py_comp $RPM_BUILD_ROOT
+%py_ocomp $RPM_BUILD_ROOT
+%py_postclean
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc COPYING TODO doc/xml-xcb.txt
+%doc COPYING NEWS README TODO doc/xml-xcb.txt
%{_datadir}/xcb
%{_pkgconfigdir}/xcb-proto.pc
+%{py_sitescriptdir}/xcbgen