Update to 1.16.3
[packages/python-pycairo.git] / python-pycairo.spec
1 %define         module  pycairo
2 Summary:        Python Cairo bindings
3 Summary(pl.UTF-8):      Dowiązania Pythona dla Cairo
4 Name:           python-%{module}
5 Version:        1.16.3
6 Release:        1
7 License:        LGPL v2.1 or MPL v1.1
8 Group:          Libraries
9 Source0:        https://github.com/pygobject/pycairo/releases/download/v%{version}/%{module}-%{version}.tar.gz
10 # Source0-md5:  d2a115037ccd128219f43d5ed3df7926
11 URL:            http://cairographics.org/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1:1.9.6
14 BuildRequires:  cairo-devel >= 1.13.1
15 BuildRequires:  libtool >= 2:1.4
16 BuildRequires:  pkgconfig
17 BuildRequires:  python >= 1:2.6
18 BuildRequires:  python-devel
19 # for tests only
20 #BuildRequires: python-numpy
21 BuildRequires:  python-xpyb-devel >= 1.3
22 BuildRequires:  rpm-pythonprov
23 %pyrequires_eq  python-libs
24 Requires:       cairo >= 1.13.1
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Python Cairo bindings.
29
30 %description -l pl.UTF-8
31 Dowiązania Pythona dla Cairo.
32
33 %package devel
34 Summary:        Development files for pycairo
35 Summary(pl.UTF-8):      Pliki programistyczne pycairo
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       cairo-devel >= 1.13.1
39
40 %description devel
41 Development files for pycairo.
42
43 %description devel -l pl.UTF-8
44 Pliki programistyczne pycairo.
45
46 %package examples
47 Summary:        Example programs using Python Cairo bindings
48 Summary(pl.UTF-8):      Przykładowe programy w Pythonie używające Cairo
49 Group:          Libraries/Python
50 Requires:       %{name} = %{version}-%{release}
51
52 %description examples
53 Example programs using Python Cairo bindings.
54
55 %description examples -l pl.UTF-8
56 Przykładowe programy w Pythonie używające Cairo.
57
58 %prep
59 %setup -q -n pycairo-%{version}
60
61 %ifarch x32
62 %{__sed} -i -e 's/lib64/libx32/g' setup.py
63 %endif
64
65 %build
66 %py_build --enable-xpyb
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_examplesdir}
71
72 %py_install
73
74 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
75
76 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/cairo/*.py
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc COPYING NEWS README.rst
84 %dir %{py_sitedir}/cairo
85 %attr(755,root,root) %{py_sitedir}/cairo/_cairo.so
86 %{py_sitedir}/cairo/__init__.py[coi]
87 %{py_sitedir}/cairo/include
88 %{py_sitedir}/pycairo-*-py2.7.egg-info
89
90 %files devel
91 %defattr(644,root,root,755)
92 %{_includedir}/pycairo
93 %{_pkgconfigdir}/pycairo.pc
94
95 %files examples
96 %defattr(644,root,root,755)
97 %{_examplesdir}/%{name}-%{version}
This page took 0.043262 seconds and 3 git commands to generate.