mirror of
https://abf.rosa.ru/djam/graphviz.git
synced 2025-02-23 15:52:55 +00:00
fix php build
This commit is contained in:
parent
6af42eacb6
commit
a3a858f105
1 changed files with 6 additions and 2 deletions
|
@ -39,14 +39,16 @@ License: Common Public License
|
|||
Group: Graphics
|
||||
Url: http://www.graphviz.org
|
||||
Source0: https://www2.graphviz.org/Packages/stable/portable_source/%{name}-%{version}.tar.gz
|
||||
Patch0: graphviz-2.40.1-link.patch
|
||||
Patch0: graphviz-2.40.1-link.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: libtool
|
||||
BuildRequires: swig
|
||||
BuildRequires: gd-devel
|
||||
BuildRequires: git
|
||||
BuildRequires: groff
|
||||
BuildRequires: gettext-devel
|
||||
BuildRequires: ghostscript
|
||||
# jpeg: No (only required by internal libgd)
|
||||
#BuildRequires: jpeg-devel
|
||||
BuildRequires: libltdl-devel
|
||||
|
@ -220,6 +222,7 @@ This package provides the PHP extension for %{name}.
|
|||
%files -n php-graphviz
|
||||
%{_libdir}/graphviz/php
|
||||
%{_libdir}/php/modules/gv.so
|
||||
%{_libdir}/php/extensions/gv.so
|
||||
%{_datadir}/php/gv.php
|
||||
%endif
|
||||
|
||||
|
@ -407,8 +410,9 @@ rm -rf libltdl
|
|||
./autogen.sh
|
||||
#autoreconf -fi
|
||||
%if %{with php}
|
||||
sed -i -e "s,-php7,php$(rpm -q --qf '%{VERSION}' php-cli | cut -d'.' -f1),g" configure
|
||||
sed -i -e "s,-php5,php$(rpm -q --qf '%{Version}' php-cli | cut -d'.' -f1),g" configure
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--with-x \
|
||||
%if %{without static}
|
||||
|
|
Loading…
Add table
Reference in a new issue