6aeb452
Name:           libtommath
Pokorra, Gerd 7160541
Version:        1.2.0
cce38c8
Release:        7%{?dist}
c79674a
Summary:        A portable number theoretic multiple-precision integer library
6aeb452
License:        Public Domain
71763c3
URL:            http://www.libtom.net/
077a591
7e93531
Source0:        https://github.com/libtom/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
077a591
d265503
BuildRequires:  make
25d7dd7
BuildRequires:  libtool
25d7dd7
25d7dd7
%if ! 0%{?flatpak}
077a591
BuildRequires:  ghostscript
caf5481
BuildRequires:  ghostscript-tools-dvipdf
0e64544
BuildRequires:  libtiff-tools
0e64544
BuildRequires:  tex(amssymb.sty)
c92091c
BuildRequires:  tex(cmr10.tfm)
0e64544
BuildRequires:  tex(epstopdf-base.sty)
0e64544
BuildRequires:  tex(expl3.sty)
c92091c
BuildRequires:  tex(fancyhdr.sty)
c92091c
BuildRequires:  tex(hyphen.tex)
d265503
BuildRequires:  tex(l3backend-dvips.def)
0e64544
BuildRequires:  texlive-appendix
0e64544
BuildRequires:  texlive-dvips-bin
0e64544
BuildRequires:  texlive-kpathsea
0e64544
BuildRequires:  texlive-latex-bin-bin
0e64544
BuildRequires:  texlive-makeindex-bin
0e64544
BuildRequires:  texlive-metafont
0e64544
BuildRequires:  texlive-mfware-bin
25d7dd7
%endif
6aeb452
6aeb452
%description
077a591
A free open source portable number theoretic multiple-precision integer library
077a591
written entirely in C. (phew!). The library is designed to provide a simple to
077a591
work with API that provides fairly efficient routines that build out of the box
077a591
without configuration.
6aeb452
6aeb452
%package        devel
6aeb452
Summary:        Development files for %{name}
fe1e6ed
Requires:       %{name}%{?_isa} = %{version}-%{release}
6aeb452
6aeb452
%description    devel
077a591
The %{name}-devel package contains libraries and header files for developing
077a591
applications that use %{name}.
6aeb452
25d7dd7
%if ! 0%{?flatpak}
c79674a
%package        doc
c79674a
Summary:        Documentation files for %{name}
fe1e6ed
BuildArch:      noarch
fe1e6ed
Provides:       %{name}-doc = %{version}-%{release}
fe1e6ed
Obsoletes:      %{name}-doc < 0.42-1
c79674a
c79674a
%description    doc
077a591
The %{name}-doc package contains PDF documentation for using %{name}.
25d7dd7
%endif
c79674a
6aeb452
%prep
6aeb452
%setup -q
c92091c
# Fix permissions on installed library
c92091c
sed -i -e 's/644 $(LIBNAME)/755 $(LIBNAME)/g' makefile.shared
c92091c
# Fix pkgconfig path
1cf292d
sed -i \
c92091c
    -e 's|^prefix=.*|prefix=%{_prefix}|g' \
c92091c
    -e 's|^libdir=.*|libdir=%{_libdir}|g' \
c92091c
    %{name}.pc.in
6aeb452
6aeb452
%build
0c2ccf0
%set_build_flags
0c2ccf0
%make_build V=1 CFLAGS="$CFLAGS -I./" -f makefile.shared
25d7dd7
%if ! 0%{?flatpak}
Pokorra, Gerd 7160541
make V=1 -f makefile manual docs
25d7dd7
%endif
6aeb452
6aeb452
%install
0c2ccf0
%make_install V=1 CFLAGS="$CFLAGS -I./" PREFIX=%{_prefix} LIBPATH=%{_libdir} -f makefile.shared
54c3dd9
fe1e6ed
find %{buildroot} -name '*.la' -delete
fe1e6ed
find %{buildroot} -name '*.a' -delete
6aeb452
e7206f5
%ldconfig_scriptlets
6aeb452
6aeb452
%files
1cf292d
%license LICENSE
6aeb452
%{_libdir}/*.so.*
6aeb452
6aeb452
%files devel
ec40d2f
%{_includedir}/*.h
6aeb452
%{_libdir}/*.so
c92091c
%{_libdir}/pkgconfig/*.pc
6aeb452
25d7dd7
%if ! 0%{?flatpak}
c79674a
%files doc
Pokorra, Gerd 7160541
%doc doc/bn.pdf
25d7dd7
%endif
c79674a
6aeb452
%changelog
cce38c8
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7
cce38c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cce38c8
0e64544
* Mon Dec 13 2021 Frantisek Sumsal <frantisek@sumsal.cz> - 1.2.0-6
0e64544
- Add a couple of missing BRs (texlive-kpathsea and texlive-metafont)
0e64544
b084538
* Wed Nov 03 2021 Frantisek Sumsal <frantisek@sumsal.cz> - 1.2.0-5
b084538
- Drop an obsoleted texlive-updmap-map build dependency (#1999507, #1987664)
b084538
- (see: #1965446)
b084538
2cd88be
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
2cd88be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2cd88be
d265503
* Mon Jan 25 2021 Than Ngo <than@redhat.com> - 1.2.0-3
d265503
- Add missing BRs
d265503
3a24832
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
3a24832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3a24832
Pokorra, Gerd 7160541
* Thu Apr 09 2020 Gerd Pokorra <gp@zimt.uni-siegen.de> - 1.2.0-1
Pokorra, Gerd 7160541
- Update to 1.2.0.
Pokorra, Gerd 7160541
- Remove poster make tag
Pokorra, Gerd 7160541
- Add BuildRequires texlive-appendix
Pokorra, Gerd 7160541
3d440f6
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
3d440f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3d440f6
f70ef9a
* Wed Oct 16 2019 Simone Caronni <negativo17@gmail.com> - 1.1.0-1
f70ef9a
- Update to 1.1.0.
f70ef9a
a5e79a2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-10
a5e79a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a5e79a2
46165f9
* Sun Jun 02 2019 Leigh Scott <leigh123linux@googlemail.com> - 1.0.1-9
46165f9
- Disable parallel build for docs
46165f9
5e35edf
* Tue May 14 2019 Scott Talbert <swt@techie.net> - 1.0.1-8
5e35edf
- Add BR texlive-updmap-map to fix FTBFS when building docs (#1675313)
5e35edf
012269f
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
012269f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
012269f
9afd93e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
9afd93e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9afd93e
0c2ccf0
* Thu Apr 05 2018 Rafael Santos <rdossant@redhat.com> - 1.0.1-5
0c2ccf0
- Resolves #1548832 - Fix Fedora build flags injection
0c2ccf0
caf5481
* Sun Feb 25 2018 Florian Weimer <fweimer@redhat.com> - 1.0.1-4
caf5481
- Add BuildRequires: ghostscript-tools-dvipdf
caf5481
5c9638a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
5c9638a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5c9638a
e7206f5
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-2
e7206f5
- Switch to %%ldconfig_scriptlets
e7206f5
c92091c
* Mon Sep 11 2017 Simone Caronni <negativo17@gmail.com> - 1.0.1-1
c92091c
- Update to 1.0.1.
c92091c
- Trim changelog.
c92091c
- Clean up SPEC file.
c92091c
- Remove RHEL 6 support.
c92091c
c2c4f36
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
c2c4f36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c2c4f36
81d50fd
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-9
81d50fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
81d50fd
71763c3
* Sun Jun 25 2017 Simone Caronni <negativo17@gmail.com> - 1.0-7
baf704e
- Update URL (#1463608, #1463547).
baf704e
2ebfe6d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
2ebfe6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2ebfe6d
55f9fab
* Tue Feb 23 2016 Simone Caronni <negativo17@gmail.com> - 1.0-4
55f9fab
- Fix installs with non-standard buildroots (#1299860).
55f9fab
f09990a
* Tue Feb 23 2016 Simone Caronni <negativo17@gmail.com> - 1.0-3
f09990a
- Remove useless latex build requirements.
f09990a
7e93531
* Tue Feb 23 2016 Simone Caronni <negativo17@gmail.com> - 1.0-2
7e93531
- Use proper source URL.
7e93531
- Cleanup SPEC file.
7e93531
1cf292d
* Tue Feb 23 2016 Simone Caronni <negativo17@gmail.com> - 1.0-1
1cf292d
- Fix FTBFS (#1307741).
1cf292d
- Update to 1.0.
1cf292d
- Update URL.
1cf292d
- Use license macro.
1cf292d
c5a0a5e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.42.0-7
c5a0a5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild