From 253e6a3441d8e8f1adcc6108e869192580612b80 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Thu, 6 Jun 2013 10:05:53 +0200 Subject: [PATCH] Fix build requirements for RHEL 6 and Fedora 17 --- libtomcrypt.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/libtomcrypt.spec b/libtomcrypt.spec index 0f5ae44..e12b52e 100644 --- a/libtomcrypt.spec +++ b/libtomcrypt.spec @@ -1,6 +1,6 @@ Name: libtomcrypt Version: 1.17 -Release: 17%{?dist} +Release: 18%{?dist} Summary: A comprehensive, portable cryptographic toolkit License: Public Domain @@ -9,9 +9,18 @@ Source0: http://www.libtom.org/files/crypt-%{version}.tar.bz2 Patch0: %{name}-makefile.patch Patch1: %{name}-pkgconfig.patch -Requires: libtommath >= 0.41 +BuildRequires: ghostscript BuildRequires: libtommath-devel >= 0.41 BuildRequires: libtool +%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 +BuildRequires: tex(dvips) +BuildRequires: tex(latex) +%else +BuildRequires: tetex-dvips +BuildRequires: tetex-latex +%endif + +Requires: libtommath >= 0.41 %description A comprehensive, modular and portable cryptographic toolkit that provides @@ -36,8 +45,6 @@ developing applications that use %{name}. Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} -BuildRequires: ghostscript -BuildRequires: tex(dvips), tex(latex) %description doc The %{name}-doc package contains documentation for use with %{name}. @@ -95,6 +102,9 @@ find %{buildroot} -name 'libtomcrypt_prof*' -exec rm -f {} ';' %doc LICENSE doc/crypt.pdf %changelog +* Thu Jun 06 2013 Simone Caronni - 1.17-18 +- Fix build requirements for RHEL 6 and Fedora 17. + * Tue Jun 04 2013 David Woodhouse - 1.17-17 - Fix tex/latex BuildRequires