fedora python build changes from @dcantrell

This commit is contained in:
nick black 2020-04-20 06:26:58 -04:00
parent 6c131f4860
commit 23e8126b17
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -13,7 +13,7 @@ BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pandoc
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-cffi
BuildRequires: pkgconfig(ncurses)
%description
@ -56,12 +56,14 @@ mkdir build
cd build
%cmake -DUSE_FFMPEG=off -DUSE_TESTS=off ..
%make_build
cd python
%py3_build
%install
cd build
%make_install
cd python
python setup.py install --root=%{buildroot} --optimize=1
%py3_install
%files
%doc CHANGELOG.md README.md