]>
Commit | Line | Data |
---|---|---|
1e3a5ec7 AM |
1 | %define module kaa-metadata |
2 | ||
f2e95144 JB |
3 | Summary: Media metadata for Python |
4 | Summary(pl.UTF-8): Metadane multimedialne dla Pythona | |
1e3a5ec7 AM |
5 | Name: python-%{module} |
6 | Version: 0.6.0 | |
0767f0be | 7 | Release: 7 |
1e3a5ec7 AM |
8 | License: LGPL |
9 | Group: Libraries/Python | |
10 | Source0: http://dl.sourceforge.net/freevo/%{module}-%{version}.tar.gz | |
11 | # Source0-md5: 0df903aa873bdc1ce8ed0e8aa0b81e98 | |
f2e95144 | 12 | URL: http://www.freevo.org/kaa/ |
63b63641 | 13 | BuildRequires: rpmbuild(macros) >= 1.710 |
f2e95144 | 14 | BuildRequires: python-devel >= 1:2.5 |
4269d7f1 | 15 | BuildRequires: python-kaa-base |
e2e9912b | 16 | BuildRequires: rpm-pythonprov |
1e3a5ec7 AM |
17 | %pyrequires_eq python-modules |
18 | Requires: python-kaa-base | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
f2e95144 | 22 | Module for retrieving information about media files. |
1e3a5ec7 | 23 | |
05e3cab1 | 24 | %description -l pl.UTF-8 |
f2e95144 | 25 | Moduł do uzyskiwania informacji o plikach multimedialnych. |
05e3cab1 | 26 | |
1e3a5ec7 AM |
27 | %prep |
28 | %setup -q -n %{module}-%{version} | |
29 | ||
30 | %build | |
31 | CFLAGS="%{rpmcflags}" | |
32 | export CFLAGS | |
33 | python setup.py build_ext | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
5a61b3af | 38 | %py_install \ |
1e3a5ec7 AM |
39 | --install-purelib=%{py_sitedir} \ |
40 | --root=$RPM_BUILD_ROOT \ | |
41 | --optimize=2 | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | # in python-mmpython package | |
49 | # %attr(755,root,root) %{_bindir}/* | |
50 | %{py_sitedir}/*.egg-info | |
51 | %dir %{py_sitedir}/kaa/metadata | |
52 | %attr(755,root,root) %{py_sitedir}/kaa/metadata/*.py[co] | |
53 | %dir %{py_sitedir}/kaa/metadata/audio | |
54 | %{py_sitedir}/kaa/metadata/audio/*.py[co] | |
55 | %dir %{py_sitedir}/kaa/metadata/audio/eyeD3 | |
56 | %{py_sitedir}/kaa/metadata/audio/eyeD3/*.py[co] | |
57 | %dir %{py_sitedir}/kaa/metadata/disc | |
58 | %{py_sitedir}/kaa/metadata/disc/*.py[co] | |
59 | %attr(755,root,root) %{py_sitedir}/kaa/metadata/disc/*.so | |
60 | %dir %{py_sitedir}/kaa/metadata/games | |
61 | %{py_sitedir}/kaa/metadata/games/*.py[co] | |
62 | %dir %{py_sitedir}/kaa/metadata/image | |
63 | %{py_sitedir}/kaa/metadata/image/*.py[co] | |
64 | %dir %{py_sitedir}/kaa/metadata/misc | |
65 | %{py_sitedir}/kaa/metadata/misc/*.py[co] | |
66 | %dir %{py_sitedir}/kaa/metadata/video | |
67 | %{py_sitedir}/kaa/metadata/video/*.py[co] |