|
|
7ac50fb |
Name: latex2rtf
|
|
|
5ac4dcc |
Version: 2.3.18
|
|
|
44b32df |
Release: 4%{?dist}
|
|
|
7ac50fb |
Summary: LaTeX to RTF converter that handles equations, figures, and cross-references
|
|
|
7ac50fb |
License: GPLv2+
|
|
|
7ac50fb |
URL: http://latex2rtf.sourceforge.net/
|
|
|
44b32df |
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}a.tar.gz
|
|
|
7bd5e4b |
# Do not use (non-existent on EL7) a4wide paper style in tests
|
|
|
7bd5e4b |
Patch1: latex2rtf-a4wide.patch
|
|
|
44b32df |
BuildRequires: make
|
|
|
f63acd8 |
BuildRequires: gcc
|
|
|
c6a26d3 |
# For running the tests
|
|
|
7ac50fb |
BuildRequires: ImageMagick
|
|
|
7ac50fb |
BuildRequires: texinfo
|
|
|
7ac50fb |
BuildRequires: texinfo-tex
|
|
|
7ac50fb |
BuildRequires: tex(latex)
|
|
|
7ac50fb |
BuildRequires: texlive-courier
|
|
|
7ac50fb |
BuildRequires: texlive-helvetic
|
|
|
7ac50fb |
BuildRequires: texlive-psfrag
|
|
|
7ac50fb |
BuildRequires: texlive-times
|
|
|
7f88c5f |
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
7ac50fb |
BuildRequires: man
|
|
|
70239e4 |
%else
|
|
|
7ac50fb |
BuildRequires: man2html-core
|
|
|
70239e4 |
%endif
|
|
|
75f8454 |
Requires: gawk
|
|
|
9d4ac1f |
Requires: grep
|
|
|
9d4ac1f |
# For converting images, /usr/bin/convert
|
|
|
7ac50fb |
Requires: ImageMagick
|
|
|
9d4ac1f |
Requires: sed
|
|
|
9d4ac1f |
# For latex2png, ghostscript
|
|
|
9d4ac1f |
Requires: /usr/bin/eps2eps
|
|
|
9d4ac1f |
# Including netpbm, latex2html, some sty files might be missing from userland
|
|
|
9d4ac1f |
Requires: texlive-collection-basic
|
|
|
9d4ac1f |
Requires: texlive-collection-latex
|
|
|
9d4ac1f |
Requires: texlive-collection-latexrecommended
|
|
|
7f88c5f |
%if 0%{?fedora}
|
|
|
7f88c5f |
Requires: texlive-collection-latexextra
|
|
|
7f88c5f |
%endif
|
|
|
c6a26d3 |
|
|
|
c6a26d3 |
%description
|
|
|
c6a26d3 |
LaTeX2rtf is a translator program which is intended to translate a LaTeX
|
|
|
c6a26d3 |
document (precisely: the text and a limited subset of LaTeX tags) into the RTF
|
|
|
99e946c |
format which can be imported by several text processors (including Microsoft
|
|
|
c6a26d3 |
Word for Windows and Word for Macintosh).
|
|
|
c6a26d3 |
|
|
|
c6a26d3 |
%prep
|
|
|
7ac50fb |
%setup -q
|
|
|
7bd5e4b |
%patch1 -p1 -b .a4wide
|
|
|
44b32df |
|
|
|
44b32df |
# fix Makefile
|
|
|
44b32df |
sed -i -e '/^\.PHONY/d' Makefile
|
|
|
7ac50fb |
|
|
|
4609843 |
# Get rid of iffy permissions.
|
|
|
c6a26d3 |
chmod a-x cfg/*.cfg
|
|
|
7ac50fb |
|
|
|
4609843 |
# Delete prebuilt objects in case of subtle failure.
|
|
|
7ac50fb |
find -name "*.o" -delete -print
|
|
|
7ac50fb |
|
|
|
4609843 |
# Fix permissions again for normal files.
|
|
|
c3f83bc |
find . -type f -exec chmod 644 {} \;
|
|
|
7bd5e4b |
chmod 755 test/bracecheck
|
|
|
c3f83bc |
chmod 755 scripts/latex2png
|
|
|
c6a26d3 |
|
|
|
4609843 |
# Change encoding of documentation.
|
|
|
c6a26d3 |
for txtfile in ChangeLog Copyright; do
|
|
|
c6a26d3 |
iconv -f ASCII -t UTF-8 $txtfile >$txtfile.new && \
|
|
|
c6a26d3 |
touch -r $txtfile $txtfile.new && \
|
|
|
c6a26d3 |
mv $txtfile{.new,}
|
|
|
c6a26d3 |
done
|
|
|
c6a26d3 |
|
|
|
d183186 |
%build
|
|
|
d183186 |
# Set the necessary config options, including location of config files
|
|
|
4609843 |
# -fsigned-char is useful for special arches, don't forget it.
|
|
|
44b32df |
%make_build %{name} CFLAGS="%{optflags} -DUNIX -fsigned-char" LDFLAGS="%{?__global_ldflags}" PREFIX=%{_prefix}
|
|
|
d183186 |
|
|
|
c6a26d3 |
%install
|
|
|
44b32df |
%make_install -j1 install-info PREFIX=%{_prefix}
|
|
|
99e946c |
# Remove unnecessary file from infodir
|
|
|
4609843 |
rm -frv %{buildroot}%{_infodir}/dir
|
|
|
c6a26d3 |
|
|
|
7bd5e4b |
%check
|
|
|
44b32df |
RTFPATH=`pwd`/cfg \
|
|
|
44b32df |
%{__make} check
|
|
|
7bd5e4b |
|
|
|
c6a26d3 |
%files
|
|
|
b4a89c8 |
%doc ChangeLog doc/latex2rtf.pdf doc/latex2rtf.html doc/credits
|
|
|
b4a89c8 |
%license Copyright doc/copying.txt
|
|
|
99e946c |
%{_bindir}/latex2png
|
|
|
4609843 |
%{_bindir}/latex2rtf
|
|
|
7ac50fb |
%{_datadir}/latex2rtf/
|
|
|
7ac50fb |
%{_infodir}/latex2rtf.info.*
|
|
|
99e946c |
%{_mandir}/man1/latex2png.1.*
|
|
|
4609843 |
%{_mandir}/man1/latex2rtf.1.*
|
|
|
c6a26d3 |
|
|
|
c6a26d3 |
%changelog
|
|
|
44b32df |
* Thu Jan 07 2021 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.18-4
|
|
|
44b32df |
- Fix build failures (#1863959)
|
|
|
44b32df |
|
|
|
ee44067 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.18-3
|
|
|
ee44067 |
- Second attempt - Rebuilt for
|
|
|
ee44067 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
ee44067 |
|
|
|
6f67900 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.18-2
|
|
|
6f67900 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
6f67900 |
|
|
|
5ac4dcc |
* Fri Jun 12 2020 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.18-1
|
|
|
5ac4dcc |
- Update to 2.3.18 (#1842187)
|
|
|
5ac4dcc |
|
|
|
2531074 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.17-5
|
|
|
2531074 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
2531074 |
|
|
|
6598289 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.17-4
|
|
|
6598289 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6598289 |
|
|
|
868f50a |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.17-3
|
|
|
868f50a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
868f50a |
|
|
|
3ebd359 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.17-2
|
|
|
3ebd359 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
3ebd359 |
|
|
|
59f8e76 |
* Thu Mar 29 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.17-1
|
|
|
59f8e76 |
- Update to 2.3.17 (#1561807)
|
|
|
59f8e76 |
|
|
|
419c16e |
* Tue Mar 20 2018 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.16-5
|
|
|
419c16e |
- Fix build with Perl 5.26 (#1556018)
|
|
|
419c16e |
|
|
|
ffbbbbb |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.16-4
|
|
|
ffbbbbb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
ffbbbbb |
|
|
|
670a7c8 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.16-3
|
|
|
670a7c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
670a7c8 |
|
|
|
c519e9e |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.16-2
|
|
|
c519e9e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c519e9e |
|
|
|
1f06cf0 |
* Sun May 14 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.16-1
|
|
|
1f06cf0 |
- Update to 2.3.16 (#1441438)
|
|
|
1f06cf0 |
|
|
|
815630b |
* Mon May 01 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.15-1
|
|
|
815630b |
- Update to 2.3.15 (#1441438)
|
|
|
815630b |
|
|
|
4fa175b |
* Mon May 01 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.14-1
|
|
|
4fa175b |
- Update to 2.3.14 (#1441438)
|
|
|
4fa175b |
|
|
|
31358dd |
* Tue Mar 28 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.13-1
|
|
|
31358dd |
- Update to 2.3.13 (#1435033)
|
|
|
31358dd |
|
|
|
0dad0e3 |
* Mon Feb 13 2017 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.12-1
|
|
|
0dad0e3 |
- Update to 2.3.12 (#1413326)
|
|
|
0dad0e3 |
|
|
|
8b7c1bf |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.11-2
|
|
|
8b7c1bf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
8b7c1bf |
|
|
|
7bd5e4b |
* Thu Jun 23 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.11-1
|
|
|
7bd5e4b |
- Update to 2.3.11 (#1346517)
|
|
|
7bd5e4b |
- Tests restored to upstream tarball
|
|
|
7bd5e4b |
|
|
|
8678ea6 |
* Thu Mar 31 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.10-1
|
|
|
8678ea6 |
- Update to 2.3.10 (#1289786)
|
|
|
8678ea6 |
- Includes upstream fix for CVE-2015-8106 (#1282492)
|
|
|
8678ea6 |
- Tests removed from upstream tarball
|
|
|
8678ea6 |
|
|
|
a364ce1 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.8-8
|
|
|
a364ce1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a364ce1 |
|
|
|
ae352e7 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-7
|
|
|
ae352e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
ae352e7 |
|
|
Orion Poplawski |
162565b |
* Wed May 13 2015 Orion Poplawski <orion@cora.nwra.com> - 2.3.8-6
|
|
Orion Poplawski |
162565b |
- Do not use (non-existent on EL7) a4wide paper style in tests (bug #1136065)
|
|
Orion Poplawski |
162565b |
- Drop %%make_build for EL7 compatibility
|
|
Orion Poplawski |
162565b |
|
|
|
75f8454 |
* Thu Feb 19 2015 Christopher Meng <rpm@cicku.me> - 2.3.8-5
|
|
|
75f8454 |
- Fix broken requires again.
|
|
|
75f8454 |
|
|
|
9d4ac1f |
* Tue Feb 17 2015 Christopher Meng <rpm@cicku.me> - 2.3.8-4
|
|
|
9d4ac1f |
- Add missing requires again.
|
|
|
9d4ac1f |
|
|
|
0be0ce3 |
* Mon Feb 02 2015 Christopher Meng <rpm@cicku.me> - 2.3.8-3
|
|
|
0be0ce3 |
- Add missing requires for latex2png
|
|
|
0be0ce3 |
|
|
|
4609843 |
* Thu Aug 28 2014 Christopher Meng <rpm@cicku.me> - 2.3.8-2
|
|
|
4609843 |
- Fix FTBFS with texinfo 5.
|
|
|
4609843 |
|
|
|
beeb3dc |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.8-2
|
|
|
beeb3dc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
beeb3dc |
|
|
|
7ac50fb |
* Wed Jul 30 2014 Christopher Meng <rpm@cicku.me> - 2.3.8-1
|
|
|
7ac50fb |
- Update to 2.3.8
|
|
|
7ac50fb |
|
|
|
92d739e |
* Tue Jul 01 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.7a-1
|
|
|
92d739e |
- Update to 2.3.7a.
|
|
|
92d739e |
|
|
|
2dddab8 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-2
|
|
|
2dddab8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
2dddab8 |
|
|
|
f6ff877 |
* Fri Feb 21 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.6-1
|
|
|
f6ff877 |
- Update to 2.3.6.
|
|
|
f6ff877 |
|
|
|
c3f83bc |
* Mon Feb 17 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.5-1
|
|
|
c3f83bc |
- Update to 2.3.5.
|
|
|
c3f83bc |
|
|
|
d183186 |
* Sun Nov 17 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.4-1
|
|
|
d183186 |
- Update to 2.3.4.
|
|
|
d183186 |
|
|
|
e70843d |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3-2
|
|
|
e70843d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
e70843d |
|
|
|
31ffb5c |
* Wed Mar 06 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.3-1
|
|
|
31ffb5c |
- Update to 2.3.3.
|
|
|
31ffb5c |
|
|
|
596a431 |
* Wed Feb 27 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.2a-1
|
|
|
596a431 |
- Update to 2.3.2a.
|
|
|
596a431 |
|
|
|
a97fee3 |
* Fri Feb 15 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.2-1
|
|
|
a97fee3 |
- Update to 2.3.2.
|
|
|
a97fee3 |
|
|
|
7eda9c2 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
|
|
|
7eda9c2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
7eda9c2 |
|
|
|
a443818 |
* Tue Oct 16 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.1-1
|
|
|
a443818 |
- Update to 2.3.1.
|
|
|
a443818 |
|
|
|
70239e4 |
* Tue Oct 16 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.0-2
|
|
|
70239e4 |
- Fixed build in EPEL.
|
|
|
70239e4 |
|
|
|
fb84b4a |
* Tue Oct 16 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.3.0-1
|
|
|
fb84b4a |
- Update to 2.3.0.
|
|
|
fb84b4a |
|
|
|
622ba15 |
* Wed Sep 26 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.2.1c-1
|
|
|
622ba15 |
- Update to 2.2.1c.
|
|
|
622ba15 |
|
|
|
2e33f15 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-3
|
|
|
2e33f15 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
2e33f15 |
|
|
|
7ea5e5e |
* Thu Jun 07 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.2.0-2
|
|
|
7ea5e5e |
- Fix configuration directory location.
|
|
|
7ea5e5e |
|
|
|
d8c9957 |
* Mon Jun 04 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.2.0-1
|
|
|
d8c9957 |
- Update to 2.2.0.
|
|
|
d8c9957 |
|
|
|
4373ca5 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
|
|
|
4373ca5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4373ca5 |
|
|
|
45c48f0 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
|
|
|
45c48f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
45c48f0 |
|
|
|
99e946c |
* Fri Mar 05 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1.0-1
|
|
|
99e946c |
- Update to 2.1.0.
|
|
|
99e946c |
|
|
|
9cbdeec |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.19-9
|
|
|
9cbdeec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
9cbdeec |
|
|
|
99e946c |
* Mon Apr 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-8
|
|
|
a5c5505 |
- Added patch to fix image height on 64-bit architectures.
|
|
|
a5c5505 |
https://bugzilla.redhat.com/show_bug.cgi?id=497752
|
|
|
a5c5505 |
|
|
|
99e946c |
* Wed Mar 25 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-7
|
|
|
a5c5505 |
- Retry EPEL fix: disable check phase which doesn't seem to work
|
|
|
a5c5505 |
for some reason on EPEL 5 ppc (segfault in list.tex).
|
|
|
d35f335 |
|
|
|
99e946c |
* Sun Mar 22 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-6
|
|
|
0b0e153 |
- Fix EPEL build.
|
|
|
0b0e153 |
|
|
|
99e946c |
* Sat Mar 21 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-5
|
|
|
c6a26d3 |
- Keep documentation time stamps when converting encoding.
|
|
|
c6a26d3 |
|
|
|
99e946c |
* Fri Mar 13 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-4
|
|
|
c6a26d3 |
- Added check phase.
|
|
|
c6a26d3 |
|
|
|
99e946c |
* Thu Mar 12 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-3
|
|
|
c6a26d3 |
- Review fixes.
|
|
|
c6a26d3 |
|
|
|
99e946c |
* Sun Dec 21 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-2
|
|
|
c6a26d3 |
- Fix perms on config files.
|
|
|
c6a26d3 |
|
|
|
99e946c |
* Sun Nov 02 2008 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.9.19-1
|
|
|
c6a26d3 |
- First release.
|