]>
Commit | Line | Data |
---|---|---|
d279805c | 1 | # |
aa3ac0e1 AF |
2 | %define module mutagen |
3 | # | |
4 | Summary: Audio metadata reader/writer | |
5 | Name: python-%{module} | |
6 | Version: 1.1 | |
d279805c | 7 | Release: 1 |
aa3ac0e1 AF |
8 | License: GPL v2 |
9 | Group: X11/Applications/Multimedia | |
10 | Source0: http://www.sacredchao.net/~piman/software/%{module}-%{version}.tar.gz | |
11 | # Source0-md5: 3c6d77bed3009e039459945613b05474 | |
12 | URL: http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen | |
13 | BuildRequires: intltool | |
14 | BuildRequires: pkgconfig | |
15 | BuildRequires: python-devel | |
16 | %pyrequires_eq python-modules | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Mutagen is an audio metadata tag reader and writer implemented in pure Python. | |
21 | It supports reading ID3v1.1, ID3v2.2, ID3v2.3, ID3v2.4, APEv2, and FLAC, and | |
22 | writing ID3v1.1, ID3v2.4, APEv2, and FLAC. | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{module}-%{version} | |
26 | ||
27 | %build | |
d279805c | 28 | python setup.py build |
aa3ac0e1 AF |
29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
d279805c | 33 | python setup.py install \ |
34 | --root=$RPM_BUILD_ROOT \ | |
35 | --optimize=2 | |
aa3ac0e1 | 36 | |
d279805c | 37 | find $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module} -name '*.py' -exec rm -f {} \; |
aa3ac0e1 AF |
38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
d279805c | 42 | %files |
aa3ac0e1 | 43 | %defattr(644,root,root,755) |
d279805c | 44 | %doc NEWS README TODO |
45 | %{py_sitescriptdir}/%{module} |