dbc3df4616646af87617a4367d63919c9f776091
[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.10.0
6 Release:        5
7 License:        LGPL v2.1 or MPL v1.1
8 Group:          Libraries
9 Source0:        http://cairographics.org/releases/py2cairo-%{version}.tar.bz2
10 # Source0-md5:  20337132c4ab06c1146ad384d55372c5
11 URL:            http://cairographics.org/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1:1.9.6
14 BuildRequires:  cairo-devel >= 1.10.0
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 # not release yet
22 #BuildRequires: python-xpyb >= 1.3
23 BuildRequires:  rpm-pythonprov
24 %pyrequires_eq  python-libs
25 Requires:       cairo >= 1.10.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Python Cairo bindings.
30
31 %description -l pl.UTF-8
32 Dowiązania Pythona dla Cairo.
33
34 %package devel
35 Summary:        Development files for pycairo
36 Summary(pl.UTF-8):      Pliki programistyczne pycairo
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       cairo-devel >= 1.10.0
40
41 %description devel
42 Development files for pycairo.
43
44 %description devel -l pl.UTF-8
45 Pliki programistyczne pycairo.
46
47 %package examples
48 Summary:        Example programs using Python Cairo bindings
49 Summary(pl.UTF-8):      Przykładowe programy w Pythonie używające Cairo
50 Group:          Libraries/Python
51 Requires:       %{name} = %{version}-%{release}
52
53 %description examples
54 Example programs using Python Cairo bindings.
55
56 %description examples -l pl.UTF-8
57 Przykładowe programy w Pythonie używające Cairo.
58
59 %prep
60 %setup -q -n py2cairo-%{version}
61
62 %build
63 %{__libtoolize}
64 %{__aclocal}
65 %{__autoconf}
66 %{__autoheader}
67 %{__automake}
68 %configure
69
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_examplesdir}
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80
81 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/cairo/*.{la,py}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc AUTHORS COPYING NEWS README
92 %dir %{py_sitedir}/cairo
93 %attr(755,root,root) %{py_sitedir}/cairo/_cairo.so
94 %{py_sitedir}/cairo/__init__.py[co]
95
96 %files devel
97 %defattr(644,root,root,755)
98 %{_includedir}/pycairo
99 %{_pkgconfigdir}/pycairo.pc
100
101 %files examples
102 %defattr(644,root,root,755)
103 %{_examplesdir}/%{name}-%{version}
This page took 0.055475 seconds and 2 git commands to generate.