Fix FTBFS due to the move of /usr/bin/python into a separate package

See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
epel9
Guido Aulisi 7 years ago
parent fb64b1ec24
commit 03d39e95bf

@ -3,7 +3,7 @@
Name: sord
Version: 0.16.0
Release: 5%{?dist}
Release: 6%{?dist}
Summary: A lightweight Resource Description Framework (RDF) C library
Group: System Environment/Libraries
@ -16,7 +16,9 @@ BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: glib2-devel
BuildRequires: python2
BuildRequires: python2-rpm-macros
BuildRequires: serd-devel >= 0.22.4
BuildRequires: gcc
BuildRequires: gcc-c++
%description
@ -47,7 +49,7 @@ sed -i -e "s|bld.add_post_fun(autowaf.run_ldconfig)||" \
export CXXFLAGS="%{optflags}"
export CFLAGS="%{optflags}"
export LINKFLAGS="%{__global_ldflags}"
./waf configure \
%{__python2} waf configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
@ -55,10 +57,10 @@ export LINKFLAGS="%{__global_ldflags}"
--docdir=%{_pkgdocdir} \
--test \
--docs
./waf build -v %{?_smp_mflags}
%{__python2} waf build -v %{?_smp_mflags}
%install
DESTDIR=%{buildroot} ./waf install
DESTDIR=%{buildroot} %{__python2} waf install
chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.*
install -pm 644 AUTHORS NEWS README COPYING %{buildroot}%{_pkgdocdir}
@ -84,6 +86,9 @@ install -pm 644 AUTHORS NEWS README COPYING %{buildroot}%{_pkgdocdir}
%{_mandir}/man3/%{name}*.3*
%changelog
* Sun Jul 15 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.16.0-6
- Fix FTBFS due to the move of /usr/bin/python into a separate package
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save