%define name pydub %define version 0.25.2 %define unmangled_version 0.25.2 %define release 1 Summary: Manipulate audio with an simple and easy high level interface Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{unmangled_version}.tar.gz License: MIT Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: James Robert Url: http://pydub.com BuildRequires: python3-devel, python3-setuptools %if 0%{?fedora} Requires: ffmpeg-free %else Requires: ffmpeg %endif %description Manipulate audio with an simple and easy high level interface. See the README file for details, usage info, and a list of gotchas. %prep %setup -n %{name}-%{version} -n %{name}-%{version} %build %py3_build %install %py3_install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS LICENSE %dir %{python3_sitelib}/%{name} %{python3_sitelib}/%{name}/* %{python3_sitelib}/%{name}-*