Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d733a4c209 |
1 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
%if 0%{?fedora} >= 31
|
%if 0%{?fedora} >= 31
|
||||||
BuildRequires: /usr/bin/2to3
|
BuildRequires: python3.12
|
||||||
%endif
|
%endif
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|
@ -111,7 +111,7 @@ This package contains additional documentation, such as man pages in html format
|
||||||
# Remove /bin/env deps
|
# Remove /bin/env deps
|
||||||
%if 0%{?fedora} >= 31
|
%if 0%{?fedora} >= 31
|
||||||
sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow*
|
sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow*
|
||||||
2to3 --write --nobackups bin/flow*
|
python3.12 -m lib2to3 --write --nobackups bin/flow*
|
||||||
%else
|
%else
|
||||||
sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow*
|
sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow*
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -120,6 +120,7 @@ sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/*
|
||||||
sed -i s/my_init/mysql_init/g configure
|
sed -i s/my_init/mysql_init/g configure
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="$CFLAGS -std=gnu17"
|
||||||
%configure \
|
%configure \
|
||||||
--localstatedir=%{_localstatedir}/%{name} \
|
--localstatedir=%{_localstatedir}/%{name} \
|
||||||
--sysconfdir=%{_sysconfdir}/%{name} \
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue