commit 8f8af6043ad3a507d25d18bf2a305af6a218a10d Author: zhuchunyi Date: Wed Nov 6 19:40:37 2019 +0800 update code diff --git a/libtommath-1.0.1.tar.gz b/libtommath-1.0.1.tar.gz new file mode 100644 index 0000000..bc6eee1 Binary files /dev/null and b/libtommath-1.0.1.tar.gz differ diff --git a/libtommath.spec b/libtommath.spec new file mode 100644 index 0000000..4491433 --- /dev/null +++ b/libtommath.spec @@ -0,0 +1,71 @@ +Name: libtommath +Version: 1.0.1 +Release: 5 +Summary: A portable number theoretic multiple-precision integer library. +License: Public Domain +URL: http://www.libtom.net/ + +Source0: https://github.com/libtom/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: ghostscript libtiff-tools libtool git texlive-dvips-bin ghostscript-tools-dvipdf +BuildRequires: texlive-latex-bin-bin texlive-makeindex-bin texlive-mfware-bin TeXamator git +BuildRequires: tex(cmr10.tfm) tex(fancyhdr.sty) tex(hyphen.tex) texlive-metafont-bin + +%description +LibTomMath is a free open source portable number theoretic multiple-precision integer +library written entirely in C. The library is designed to provide a simple to work +with API that provides fairly efficient routines that build out of the box without +configuration. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +Libraries and header files of %{name} are all in the %{name}-devel package. + +%package help +Summary: Help manual for %{name} +Provides: %{name}-doc = %{version}-%{release} +Obsoletes: %{name}-doc + +%description help +The %{name}-doc package contains PDF documentation of %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit +# Fix permissions on installed library +sed -i -e 's/644 $(LIBNAME)/755 $(LIBNAME)/g' makefile.shared +# Fix pkgconfig path +sed -i \ + -e 's|^prefix=.*|prefix=%{_prefix}|g' \ + -e 's|^libdir=.*|libdir=%{_libdir}|g' \ + %{name}.pc.in + +%build +%make_build V=1 CFLAGS="%{optflags} -I./" -f makefile.shared +%make_build V=1 -f makefile poster manual docs + +%install +%make_install V=1 CFLAGS="%{optflags} -I./" PREFIX=%{_prefix} LIBPATH=%{_libdir} -f makefile.shared + +find %{buildroot} -name '*.la' -delete +find %{buildroot} -name '*.a' -delete + +%ldconfig_scriptlets + +%files +%license LICENSE +%{_libdir}/*.so.* + +%files devel +%{_includedir}/*.h +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%files help +%doc doc/bn.pdf doc/poster.pdf doc/tommath.pdf + +%changelog +* Fri Oct 18 2019 openEuler Buildteam - 1.0.1-5 +- Package init