|
|
@ -1,24 +1,29 @@
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%global _with_docs 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: libtomcrypt
|
|
|
|
Name: libtomcrypt
|
|
|
|
Version: 1.18.2
|
|
|
|
Version: 1.18.2
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: A comprehensive, portable cryptographic toolkit
|
|
|
|
Summary: A comprehensive, portable cryptographic toolkit
|
|
|
|
License: Public Domain or WTFPL
|
|
|
|
License: Public Domain or WTFPL
|
|
|
|
URL: http://www.libtom.net/
|
|
|
|
URL: http://www.libtom.net/
|
|
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/libtom/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/libtom/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
|
|
|
|
BuildRequires: libtommath-devel >= 1.0
|
|
|
|
BuildRequires: libtommath-devel >= 1.0
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?_with_docs:
|
|
|
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
BuildRequires: texlive-latex-bin-bin
|
|
|
|
BuildRequires: texlive-latex-bin-bin
|
|
|
|
BuildRequires: texlive-makeindex-bin
|
|
|
|
BuildRequires: texlive-makeindex-bin
|
|
|
|
BuildRequires: texlive-mfware-bin
|
|
|
|
BuildRequires: texlive-mfware-bin
|
|
|
|
BuildRequires: tex(cmr10.tfm)
|
|
|
|
BuildRequires: tex(cmr10.tfm)
|
|
|
|
BuildRequires: tex(fancyhdr.sty)
|
|
|
|
BuildRequires: tex(fancyhdr.sty)
|
|
|
|
BuildRequires: tex(hyphen.tex)
|
|
|
|
BuildRequires: tex(hyphen.tex)
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
BuildRequires: tex(mf.mf)
|
|
|
|
BuildRequires: tex(mf.mf)
|
|
|
|
%endif
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
A comprehensive, modular and portable cryptographic toolkit that provides
|
|
|
|
A comprehensive, modular and portable cryptographic toolkit that provides
|
|
|
@ -39,15 +44,16 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?_with_docs:
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
Obsoletes: %{name}-doc < 1.17-19
|
|
|
|
Obsoletes: %{name}-doc < 1.17-19
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description doc
|
|
|
|
The %{name}-doc package contains documentation for use with %{name}.
|
|
|
|
The %{name}-doc package contains documentation for use with %{name}.
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
@ -60,8 +66,10 @@ export LIBPATH="%{_libdir}"
|
|
|
|
export EXTRALIBS="-ltommath"
|
|
|
|
export EXTRALIBS="-ltommath"
|
|
|
|
export CFLAGS="%{build_cflags} -DLTM_DESC -DUSE_LTM"
|
|
|
|
export CFLAGS="%{build_cflags} -DLTM_DESC -DUSE_LTM"
|
|
|
|
%make_build V=1 -f makefile.shared library
|
|
|
|
%make_build V=1 -f makefile.shared library
|
|
|
|
%make_build V=1 -f makefile docs
|
|
|
|
|
|
|
|
%make_build V=1 -f makefile.shared test
|
|
|
|
%make_build V=1 -f makefile.shared test
|
|
|
|
|
|
|
|
%{?_with_docs:
|
|
|
|
|
|
|
|
%make_build V=1 -f makefile docs
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
./test
|
|
|
|
./test
|
|
|
@ -90,10 +98,15 @@ sed -i \
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?_with_docs:
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc doc/crypt.pdf
|
|
|
|
%doc doc/crypt.pdf
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Oct 16 2019 Simone Caronni <negativo17@gmail.com> - 1.18.2-5
|
|
|
|
|
|
|
|
- Do not build documentation on RHEL/CentOS.
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.2-4
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.18.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|