|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: libtommath
|
|
|
|
|
Version: 1.0
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 1.0.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A portable number theoretic multiple-precision integer library
|
|
|
|
|
License: Public Domain
|
|
|
|
|
URL: http://www.libtom.net/
|
|
|
|
@ -8,21 +8,15 @@ URL: http://www.libtom.net/
|
|
|
|
|
Source0: https://github.com/libtom/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
|
BuildRequires: libtiff
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: libtiff-tools
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
|
BuildRequires: tex(dvips)
|
|
|
|
|
BuildRequires: tex(latex)
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: tetex-dvips
|
|
|
|
|
BuildRequires: tetex-latex
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: texlive-dvips-bin
|
|
|
|
|
BuildRequires: texlive-latex-bin-bin
|
|
|
|
|
BuildRequires: texlive-makeindex-bin
|
|
|
|
|
BuildRequires: texlive-mfware-bin
|
|
|
|
|
BuildRequires: tex(cmr10.tfm)
|
|
|
|
|
BuildRequires: tex(fancyhdr.sty)
|
|
|
|
|
BuildRequires: tex(hyphen.tex)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A free open source portable number theoretic multiple-precision integer library
|
|
|
|
@ -49,22 +43,20 @@ The %{name}-doc package contains PDF documentation for using %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
# Be verbose when calling latex so we can see what's breaking
|
|
|
|
|
sed -i -e 's|> /dev/null||g' makefile
|
|
|
|
|
# Latex syntax update
|
|
|
|
|
# Fix permissions on installed library
|
|
|
|
|
sed -i -e 's/644 $(LIBNAME)/755 $(LIBNAME)/g' makefile.shared
|
|
|
|
|
# Fix pkgconfig path
|
|
|
|
|
sed -i \
|
|
|
|
|
-e 's|\[here\]|\[ht\]|g' \
|
|
|
|
|
-e 's|\[here!\]|\[h!\]|g' \
|
|
|
|
|
-e 's|\[!here\]|\[!ht\]|g' \
|
|
|
|
|
*.{pl,src,tex}
|
|
|
|
|
-e 's|^prefix=.*|prefix=%{_prefix}|g' \
|
|
|
|
|
-e 's|^libdir=.*|libdir=%{_libdir}|g' \
|
|
|
|
|
%{name}.pc.in
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared
|
|
|
|
|
make -f makefile poster manual docs
|
|
|
|
|
%make_build V=1 CFLAGS="%{optflags} -I./" -f makefile.shared
|
|
|
|
|
%make_build V=1 -f makefile poster manual docs
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install LIBPATH=%{_libdir} INCPATH=%{_includedir} -f makefile.shared
|
|
|
|
|
%make_install V=1 CFLAGS="%{optflags} -I./" PREFIX=%{_prefix} LIBPATH=%{_libdir} -f makefile.shared
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
find %{buildroot} -name '*.a' -delete
|
|
|
|
@ -80,11 +72,18 @@ find %{buildroot} -name '*.a' -delete
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc bn.pdf poster.pdf tommath.pdf
|
|
|
|
|
%doc doc/bn.pdf doc/poster.pdf doc/tommath.pdf
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Sep 11 2017 Simone Caronni <negativo17@gmail.com> - 1.0.1-1
|
|
|
|
|
- Update to 1.0.1.
|
|
|
|
|
- Trim changelog.
|
|
|
|
|
- Clean up SPEC file.
|
|
|
|
|
- Remove RHEL 6 support.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
@ -115,80 +114,3 @@ find %{buildroot} -name '*.a' -delete
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.42.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.42.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.42.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.42.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Sep 29 2013 Simone Caronni <negativo17@gmail.com> - 0.42.0-3
|
|
|
|
|
- Move headers to default location.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2013 Simone Caronni <negativo17@gmail.com> - 0.42.0-2
|
|
|
|
|
- Fix changelog entries.
|
|
|
|
|
- Remove executable bits from LICENSE file and source files.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2013 Simone Caronni <negativo17@gmail.com> - 0.42.0-1
|
|
|
|
|
- Update to 0.42.
|
|
|
|
|
- Make doc package noarch and not requiring base package.
|
|
|
|
|
|
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 06 2013 Simone Caronni <negativo17@gmail.com> - 0.41-16
|
|
|
|
|
- SPEC file cleanup, remove obsolete tags.
|
|
|
|
|
- Fix tex/latex BuildRequires.
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.41-11
|
|
|
|
|
- fix bugs #555445 and #591543
|
|
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.41-8
|
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
|
|
|
|
|
* Sun Nov 25 2007 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.41-7
|
|
|
|
|
- Resolve multilib conflicts from Bug #342441 by splitting out
|
|
|
|
|
documentation to libtommath-docs subpackage
|
|
|
|
|
- fix rpmlint Summary: warning
|
|
|
|
|
|
|
|
|
|
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.41-6
|
|
|
|
|
- Rebuild for selinux ppc32 issue.
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-5
|
|
|
|
|
- removed package name from summary
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-4
|
|
|
|
|
- changed patch to honor RPM_OPT_FLAGS
|
|
|
|
|
- changed patch to allow INCPATH to be set externally
|
|
|
|
|
- changed installation of headers to _includedir/tommath
|
|
|
|
|
|
|
|
|
|
* Sun Jun 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-3
|
|
|
|
|
- changed patch to bring it into line with the style of libtomcrypt
|
|
|
|
|
|
|
|
|
|
* Sat Jun 23 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-2
|
|
|
|
|
- add patch to makefile.shared to allow for /usr/lib64 installs
|
|
|
|
|
- update spec to pass libdir build and install process
|
|
|
|
|
|
|
|
|
|
* Fri Jun 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.41-1
|
|
|
|
|
- Initial spec file creation
|
|
|
|
|