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