]>
Commit | Line | Data |
---|---|---|
180c8acb JB |
1 | Summary: Python bindings for libcdio |
2 | Summary(pl.UTF-8): Wiązania Pythona do libcdio | |
3 | Name: python-pycdio | |
599ae605 | 4 | Version: 0.20 |
0e7a4414 | 5 | Release: 2 |
180c8acb JB |
6 | License: GPL v2+ |
7 | Group: Libraries/Python | |
8 | Source0: http://ftp.gnu.org/gnu/libcdio/pycdio-%{version}.tar.gz | |
599ae605 | 9 | # Source0-md5: 3f075574f661f49f4ede89aff9ff0cda |
180c8acb | 10 | URL: http://www.gnu.org/software/libcdio/ |
1763443f | 11 | BuildRequires: libcdio-devel >= 0.84 |
d4c132c2 JB |
12 | BuildRequires: pkgconfig |
13 | BuildRequires: python-devel >= 1:2.3.5 | |
180c8acb | 14 | BuildRequires: rpm-pythonprov |
478403e3 | 15 | BuildRequires: rpmbuild(macros) >= 1.219 |
180c8acb JB |
16 | BuildRequires: swig-python |
17 | %pyrequires_eq python-libs | |
1763443f | 18 | Requires: libcdio >= 0.84 |
180c8acb JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Python bindings for libcdio. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Wiązania Pythona do libcdio. | |
26 | ||
27 | %package examples | |
28 | Summary: Example programs using Python libcdio bindings | |
29 | Summary(pl.UTF-8): Przykładowe programy w Pythonie używające libcdio | |
30 | Group: Libraries/Python | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description examples | |
34 | Example programs using Python libcdio bindings. | |
35 | ||
36 | %description examples -l pl.UTF-8 | |
37 | Przykładowe programy w Pythonie używające libcdio. | |
38 | ||
39 | %prep | |
40 | %setup -q -n pycdio-%{version} | |
41 | ||
42 | %build | |
478403e3 JB |
43 | export CFLAGS="%{rpmcflags}" |
44 | %{__python} setup.py build | |
180c8acb JB |
45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
478403e3 JB |
49 | %{__python} setup.py install \ |
50 | --optimize=2 \ | |
51 | --root=$RPM_BUILD_ROOT | |
180c8acb JB |
52 | |
53 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
54 | install example/{*.py,README} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | ||
478403e3 | 56 | %py_postclean |
180c8acb JB |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
478403e3 | 63 | %doc README.txt |
180c8acb JB |
64 | %attr(755,root,root) %{py_sitedir}/_pycdio.so |
65 | %attr(755,root,root) %{py_sitedir}/_pyiso9660.so | |
66 | %{py_sitedir}/cdio.py[co] | |
67 | %{py_sitedir}/iso9660.py[co] | |
68 | %{py_sitedir}/pycdio.py[co] | |
69 | %{py_sitedir}/pyiso9660.py[co] | |
478403e3 | 70 | %{py_sitedir}/pycdio-%{version}-py*.egg-info |
180c8acb JB |
71 | |
72 | %files examples | |
73 | %defattr(644,root,root,755) | |
74 | %{_examplesdir}/%{name}-%{version} |