Commit c4defc75 authored by Luca Boccassi's avatar Luca Boccassi

Problem: RPM does not support PGM

Solution: build-depend on the libraries and add parameters in the
spec file
parent 373b63de
...@@ -9,6 +9,16 @@ Source: http://download.zeromq.org/%{name}-%{version}.tar.gz ...@@ -9,6 +9,16 @@ Source: http://download.zeromq.org/%{name}-%{version}.tar.gz
Prefix: %{_prefix} Prefix: %{_prefix}
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: autoconf automake libtool libsodium-devel glib2-devel BuildRequires: autoconf automake libtool libsodium-devel glib2-devel
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
BuildRequires: e2fsprogs-devel
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%else
BuildRequires: libuuid-devel
%endif
%if %{with pgm}
BuildRequires: openpgm-devel
BuildRequires: krb5-devel
%endif
BuildRequires: gcc, make, gcc-c++, libstdc++-devel, asciidoc, xmlto BuildRequires: gcc, make, gcc-c++, libstdc++-devel, asciidoc, xmlto
Requires: libstdc++ Requires: libstdc++
...@@ -72,6 +82,11 @@ This package contains ZeroMQ related development libraries and header files. ...@@ -72,6 +82,11 @@ This package contains ZeroMQ related development libraries and header files.
%prep %prep
%setup -q %setup -q
# Sed version number of openpgm into configure
%global openpgm_pc $(basename %{_libdir}/pkgconfig/openpgm*.pc .pc)
sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \
configure*
%build %build
autoreconf -fi autoreconf -fi
%configure \ %configure \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment