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