summaryrefslogtreecommitdiff
path: root/python-flac.spec
blob: 60b58f11ae8f065570e7c8401c78ed52c2a59e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%define		module	pyflac
Summary:	A Python module for the FLAC library
Summary(pl.UTF-8):	Moduł Pythona do biblioteki FLAC
Name:		python-%{module}
Version:	0.0.4
Release:	1
License:	GPL v2+
Group:		Libraries/Python
Source0:	http://www.sacredchao.net/~piman/software/%{module}-%{version}.tar.gz
# Source0-md5:	521bd01bf737030381d5c8aa7de62733
URL:		http://www.sacredchao.net/~piman/
BuildRequires:	flac-devel
BuildRequires:	python-devel
BuildRequires:	rpm-pythonprov
BuildRequires:	rpmbuild(macros) >= 1.710
BuildRequires:	swig-python
%pyrequires_eq	python-modules
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
A Python module for the the FLAC library.

%description -l pl.UTF-8
Moduł Pythona do biblioteki FLAC.

%prep
%setup -q -n %{module}-%{version}

%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%py_install \
	--root $RPM_BUILD_ROOT

rm -f $RPM_BUILD_ROOT%{py_sitedir}/flac/*.py

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%dir %{py_sitedir}/flac
%attr(755,root,root) %{py_sitedir}/flac/*.so
%{py_sitedir}/flac/*.py[co]