]> git.pld-linux.org Git - packages/python-xpyb.git/blob - python-xpyb.spec
710ef7cf96c2e1264874ea50d0637956064f9192
[packages/python-xpyb.git] / python-xpyb.spec
1 Summary:        X-protocol Python Binding
2 Summary(pl.UTF-8):      X-protocol Python Binding - wiązanie Pythona do protokołu X
3 Name:           python-xpyb
4 Version:        1.3.1
5 Release:        3
6 License:        Public Domain
7 Group:          Development/Languages/Python
8 Source0:        http://xcb.freedesktop.org/dist/xpyb-%{version}.tar.bz2
9 # Source0-md5:  b9b70746cd348836516edcba96d24677
10 Patch0:         %{name}-dir.patch
11 Patch1:         git.patch
12 Patch2:         xpyb-1.3.1-xcbproto-1.13.patch
13 URL:            http://xcb.freedesktop.org/
14 BuildRequires:  autoconf >= 2.57
15 BuildRequires:  automake
16 BuildRequires:  libtool
17 BuildRequires:  libxcb-devel >= 1.5
18 BuildRequires:  pkgconfig
19 BuildRequires:  python-devel >= 1:2.5
20 BuildRequires:  rpmbuild(macros) >= 1.219
21 BuildRequires:  rpm-pythonprov
22 BuildRequires:  xcb-proto >= 1.7.1
23 %pyrequires_eq  python-libs
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 XPyB provides a Python binding to the X Window System protocol via
28 libxcb.
29
30 %description -l pl.UTF-8
31 XPyB udostępnia wiązanie Pythona do protokołu X Window System poprzez
32 libxcb.
33
34 %package devel
35 Summary:        Development files for X Python Binding package
36 Summary(pl.UTF-8):      Pliki programistyczne pakietu X Python Binding
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       libxcb-devel >= 1.5
40 Requires:       python-devel >= 1:2.5
41
42 %description devel
43 Development files for X Python Binding package.
44
45 %description devel -l pl.UTF-8
46 Pliki programistyczne pakietu X Python Binding.
47
48 %prep
49 %setup -q -n xpyb-%{version}
50 %patch0 -p1
51 %patch1 -p1
52 %patch2 -p1
53
54 %build
55 %{__libtoolize}
56 %{__aclocal}
57 %{__autoconf}
58 %{__autoheader}
59 %{__automake}
60 %configure \
61         --enable-selinux \
62         --enable-xinput
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 %py_postclean
71 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/xcb/*.la
72 # packaged as %doc
73 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xpyb
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc COPYING NEWS README doc/XcbPythonBinding.txt
81 %dir %{py_sitedir}/xcb
82 %attr(755,root,root) %{py_sitedir}/xcb/xcb.so
83 %{py_sitedir}/xcb/*.py[co]
84
85 %files devel
86 %defattr(644,root,root,755)
87 %{_includedir}/xpyb.h
88 %{_pkgconfigdir}/xpyb.pc
This page took 0.063658 seconds and 2 git commands to generate.