Conditionalized guile support

Updated RHEL macros
This commit is contained in:
Jaroslav Škarvada 2021-05-07 20:34:50 +02:00
parent 3ab9cedbca
commit 797f79bf5e

View File

@ -1,7 +1,9 @@
%if 0%{?rhel} == 8 %if 0%{?rhel} >= 8
%bcond_with php %bcond_with php
%bcond_with guile
%else %else
%bcond_without php %bcond_without php
%bcond_without guile
%endif %endif
%bcond_with python2 %bcond_with python2
@ -41,6 +43,12 @@
%global PHP 0 %global PHP 0
%endif %endif
%if %{with guile}
%global GUILE 1
%else
%global GUILE 0
%endif
# Plugins version # Plugins version
%global pluginsver 6 %global pluginsver 6
@ -60,13 +68,16 @@
Name: graphviz Name: graphviz
Summary: Graph Visualization Tools Summary: Graph Visualization Tools
Version: 2.47.1 Version: 2.47.1
Release: 1%{?dist} Release: 2%{?dist}
License: EPL-1.0 License: EPL-1.0
URL: http://www.graphviz.org/ URL: http://www.graphviz.org/
Source0: https://gitlab.com/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 Source0: https://gitlab.com/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2 BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, expat-devel, freetype-devel >= 2
BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig, sed BuildRequires: ksh, bison, m4, flex, tk-devel, tcl-devel >= 8.3, swig, sed
BuildRequires: fontconfig-devel, libtool-ltdl-devel, ruby-devel, ruby, guile22-devel BuildRequires: fontconfig-devel, libtool-ltdl-devel, ruby-devel, ruby
%if %{GUILE}
BuildRequires: guile22-devel
%endif
%if %{with python2} %if %{with python2}
BuildRequires: python2-devel BuildRequires: python2-devel
%endif %endif
@ -157,12 +168,14 @@ Summary: Demo graphs for graphviz
%description graphs %description graphs
Some demo graphs for graphviz. Some demo graphs for graphviz.
%if %{GUILE}
%package guile %package guile
Summary: Guile extension for graphviz Summary: Guile extension for graphviz
Requires: %{name} = %{version}-%{release}, guile Requires: %{name} = %{version}-%{release}, guile
%description guile %description guile
Guile extension for graphviz. Guile extension for graphviz.
%endif
%package java %package java
Summary: Java extension for graphviz Summary: Java extension for graphviz
@ -316,7 +329,12 @@ export CPPFLAGS=-I`ruby -e "puts File.join(RbConfig::CONFIG['includedir'], RbCon
--without-devil \ --without-devil \
%endif %endif
%if ! %{QTAPPS} %if ! %{QTAPPS}
--without-qt --without-qt \
%endif
%if %{GUILE}
--enable-guile=yes
%else
--enable-guile=no
%endif %endif
# drop rpath # drop rpath
@ -499,9 +517,11 @@ php --no-php-ini \
%dir %{_datadir}/graphviz %dir %{_datadir}/graphviz
%{_datadir}/graphviz/graphs %{_datadir}/graphviz/graphs
%if %{GUILE}
%files guile %files guile
%{_libdir}/graphviz/guile/ %{_libdir}/graphviz/guile/
%{_mandir}/man3/gv.3guile* %{_mandir}/man3/gv.3guile*
%endif
%files java %files java
%{_libdir}/graphviz/java/ %{_libdir}/graphviz/java/
@ -573,6 +593,10 @@ php --no-php-ini \
%{_mandir}/man3/*.3tcl* %{_mandir}/man3/*.3tcl*
%changelog %changelog
* Fri May 7 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.47.1-2
- Conditionalized guile support
- Updated RHEL macros
* Mon Apr 19 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.47.1-1 * Mon Apr 19 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.47.1-1
- New version - New version
Resolves: rhbz#1950691 Resolves: rhbz#1950691