Update to 1.0

epel9
Simone Caronni 9 years ago
parent c5a0a5e61b
commit 1cf292d419

1
.gitignore vendored

@ -1,2 +1,3 @@
ltm-0.41.tar.bz2
/ltm-0.42.0.tar.bz2
/ltm-1.0.tar.xz

@ -1,37 +0,0 @@
--- libtommath-0.41.orig/makefile.shared 2007-03-10 16:45:11.000000000 -0700
+++ libtommath-0.41/makefile.shared 2007-06-27 22:07:28.000000000 -0600
@@ -10,13 +10,15 @@
ifndef IGNORE_SPEED
#for speed
-CFLAGS += -O3 -funroll-loops
+# commented out for building in Fedora
+#CFLAGS += -O3 -funroll-loops
#for size
#CFLAGS += -Os
#x86 optimizations [should be valid for any GCC install though]
-CFLAGS += -fomit-frame-pointer
+# commented out for rpm building in Fedora
+#CFLAGS += -fomit-frame-pointer
endif
@@ -48,8 +50,14 @@
#INCPATH-The directory to install the header files for libtommath.
#DATAPATH-The directory to install the pdf docs.
DESTDIR=
-LIBPATH=/usr/lib
-INCPATH=/usr/include
+
+ifndef LIBPATH
+ LIBPATH=/usr/lib
+endif
+
+ifndef INCPATH
+ INCPATH=/usr/include
+endif
DATAPATH=/usr/share/doc/libtommath/pdf
OBJECTS=bncore.o bn_mp_init.o bn_mp_clear.o bn_mp_exch.o bn_mp_grow.o bn_mp_shrink.o \

File diff suppressed because it is too large Load Diff

@ -1,12 +1,11 @@
Name: libtommath
Version: 0.42.0
Release: 7%{?dist}
Version: 1.0
Release: 1%{?dist}
Summary: A portable number theoretic multiple-precision integer library
License: Public Domain
URL: http://www.libtom.org/?page=features&newsitems=5&whatfile=ltm
URL: http://www.libtom.org/
Source0: http://www.libtom.org/files/ltm-%{version}.tar.bz2
Patch0: %{name}-makefile.patch
Source0: https://github.com/libtom/%{name}/releases/download/v%{version}/ltm-%{version}.tar.xz
BuildRequires: ghostscript
BuildRequires: libtool
@ -18,8 +17,22 @@ BuildRequires: libtiff-tools
%endif
%if 0%{?fedora} || 0%{?rhel} >= 7
BuildRequires: tex(cmex10.pfb)
BuildRequires: tex(cmmi10.pfb)
BuildRequires: tex(cmmi5.pfb)
BuildRequires: tex(cmmi7.pfb)
BuildRequires: tex(cmr10.pfb)
BuildRequires: tex(cmr5.pfb)
BuildRequires: tex(cmr7.pfb)
BuildRequires: tex(cmsy10.pfb)
BuildRequires: tex(cmsy5.pfb)
BuildRequires: tex(cmsy7.pfb)
BuildRequires: tex(dvips)
BuildRequires: tex(fmtutil.cnf)
BuildRequires: tex(latex)
BuildRequires: tex(pd1enc.def)
BuildRequires: tex(pdftex.map)
BuildRequires: texlive-latex-bin-bin
%else
BuildRequires: tetex-dvips
BuildRequires: tetex-latex
@ -50,13 +63,20 @@ The %{name}-doc package contains PDF documentation for using %{name}.
%prep
%setup -q
%patch0 -p1 -b .makefile
# Be verbose when calling latex so we can see what's breaking
sed -i -e 's|> /dev/null||g' makefile
# Latex syntax update
sed -i \
-e 's|\[here\]|\[ht\]|g' \
-e 's|\[here!\]|\[h!\]|g' \
-e 's|\[!here\]|\[!ht\]|g' \
*.{pl,src,tex}
%build
# no configure script ships with libtommath. Its only requirement is ANSI C.
export CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags} LIBPATH=%{_libdir} -f makefile.shared
make %{?_smp_mflags} -f makefile poster manual docs
make -f makefile poster manual docs
%install
# There is no configure script that ships with libtommath but it does understand
@ -77,7 +97,8 @@ find %{buildroot} -name '*.a' -delete
%postun -p /sbin/ldconfig
%files
%doc LICENSE
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/*.so.*
%files devel
@ -88,6 +109,12 @@ find %{buildroot} -name '*.a' -delete
%doc bn.pdf poster.pdf tommath.pdf
%changelog
* Tue Feb 23 2016 Simone Caronni <negativo17@gmail.com> - 1.0-1
- Fix FTBFS (#1307741).
- Update to 1.0.
- Update URL.
- Use license macro.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.42.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

@ -1 +1 @@
7380da904b020301be7045cb3a89039b ltm-0.42.0.tar.bz2
a95dc984d8409a6f355efb0831009a66 ltm-1.0.tar.xz

Loading…
Cancel
Save