]> git.pld-linux.org Git - packages/python-xpyb.git/blobdiff - python-xpyb.spec
- disabled xinput for now, breaks build
[packages/python-xpyb.git] / python-xpyb.spec
index 085c87f431f8c3cbf6342c1b92c612bba0a462fe..1b001064875f2898f05b32c9ee5f5f8bc4243f9e 100644 (file)
@@ -1,37 +1,55 @@
 Summary:       X-protocol Python Binding
 Summary(pl.UTF-8):     X-protocol Python Binding - wiązanie Pythona do protokołu X
 Name:          python-xpyb
-Version:       0.9
-Release:       1
-License:       MIT?
+Version:       1.3.1
+Release:       4
+License:       Public Domain
 Group:         Development/Languages/Python
 Source0:       http://xcb.freedesktop.org/dist/xpyb-%{version}.tar.bz2
-# Source0-md5: 7bb10f490c790c60ee3c0f21ca1f8fa1
+# Source0-md5: b9b70746cd348836516edcba96d24677
 Patch0:                %{name}-dir.patch
+Patch1:                git.patch
+Patch2:                xpyb-1.3.1-xcbproto-1.13.patch
 URL:           http://xcb.freedesktop.org/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake
 BuildRequires: libtool
-BuildRequires: libxcb-devel >= 1.1
+BuildRequires: libxcb-devel >= 1.5
 BuildRequires: pkgconfig
 BuildRequires: python-devel >= 1:2.5
 BuildRequires: rpmbuild(macros) >= 1.219
 BuildRequires: rpm-pythonprov
-BuildRequires: xcb-proto >= 1.1
+BuildRequires: xcb-proto >= 1.7.1
 %pyrequires_eq  python-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-xpyb provides a Python binding to the X Window System protocol via
+XPyB provides a Python binding to the X Window System protocol via
 libxcb.
 
 %description -l pl.UTF-8
-xpyb udostępnia wiązanie Pythona do protokołu X Window System poprzez
+XPyB udostępnia wiązanie Pythona do protokołu X Window System poprzez
 libxcb.
 
+%package devel
+Summary:       Development files for X Python Binding package
+Summary(pl.UTF-8):     Pliki programistyczne pakietu X Python Binding
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libxcb-devel >= 1.5
+Requires:      python-devel >= 1:2.5
+
+%description devel
+Development files for X Python Binding package.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne pakietu X Python Binding.
+
 %prep
 %setup -q -n xpyb-%{version}
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
@@ -40,8 +58,8 @@ libxcb.
 %{__autoheader}
 %{__automake}
 %configure \
-       --enable-selinux \
-       --enable-xinput
+       --enable-selinux
+#      --enable-xinput
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -50,17 +68,21 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT
 
 %py_postclean
-rm $RPM_BUILD_ROOT%{py_sitedir}/xcb/*.la
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/xcb/*.la
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xpyb
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc NEWS README
+%doc COPYING NEWS README doc/XcbPythonBinding.txt
 %dir %{py_sitedir}/xcb
 %attr(755,root,root) %{py_sitedir}/xcb/xcb.so
-%dir %{py_sitescriptdir}/xcb
-%{py_sitescriptdir}/xcb/*.py[co]
-# -devel
+%{py_sitedir}/xcb/*.py[co]
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/xpyb.h
 %{_pkgconfigdir}/xpyb.pc
This page took 0.035854 seconds and 4 git commands to generate.