diff --git a/.gitignore b/.gitignore index 7f15703..62fe3f9 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ latex2rtf-2.1.0.tar.gz /latex2rtf-2.3.5.tar.gz /latex2rtf-2.3.6.tar.gz /latex2rtf-2.3.7a.tar.gz +/latex2rtf-2.3.8.tar.gz diff --git a/latex2rtf.spec b/latex2rtf.spec index cd0ccbe..b16c226 100644 --- a/latex2rtf.spec +++ b/latex2rtf.spec @@ -1,45 +1,39 @@ -Name: latex2rtf -Version: 2.3.7a -Release: 1%{?dist} -Summary: LaTeX to RTF converter that handles equations, figures, and cross-references -Group: Applications/File -License: GPLv2+ -URL: http://latex2rtf.sourceforge.net/ -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - +Name: latex2rtf +Version: 2.3.8 +Release: 1%{?dist} +Summary: LaTeX to RTF converter that handles equations, figures, and cross-references +License: GPLv2+ +URL: http://latex2rtf.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # Skip broken docs -Patch0: latex2rtf-2.3.4-docs.patch - +Patch0: latex2rtf-2.3.4-docs.patch # For running the tests -BuildRequires: ImageMagick -BuildRequires: texinfo -BuildRequires: texinfo-tex +BuildRequires: ImageMagick +BuildRequires: texinfo +BuildRequires: texinfo-tex %if 0%{?rhel} == 5 -BuildRequires: tetex-latex +BuildRequires: tetex-latex %else -BuildRequires: tex(latex) +BuildRequires: tex(latex) %endif - %if 0%{?fedora} >= 18 -BuildRequires: texlive-a4wide -BuildRequires: texlive-courier -BuildRequires: texlive-helvetic -BuildRequires: texlive-psfrag -BuildRequires: texlive-times +BuildRequires: texlive-a4wide +BuildRequires: texlive-courier +BuildRequires: texlive-helvetic +BuildRequires: texlive-psfrag +BuildRequires: texlive-times %endif - %if 0%{?rhel} > 0 -BuildRequires: man +BuildRequires: man %else -BuildRequires: man2html-core +BuildRequires: man2html-core %endif # For converting images -Requires: ImageMagick +Requires: ImageMagick # Info file requirement -Requires(post): info -Requires(preun): info +Requires(post): info +Requires(preun):info %description LaTeX2rtf is a translator program which is intended to translate a LaTeX @@ -48,10 +42,13 @@ format which can be imported by several text processors (including Microsoft Word for Windows and Word for Macintosh). %prep -%setup -q -n latex2rtf-2.3.7 +%setup -q %patch0 -p1 -b .doc + chmod a-x cfg/*.cfg -find -name "*.o" -delete + +find -name "*.o" -delete -print + # Fix permissions find . -type f -exec chmod 644 {} \; chmod 755 test/bracecheck @@ -66,10 +63,9 @@ done %build # Set the necessary config options, including location of config files -make CFLAGS="%{optflags} -DUNIX -fsigned-char" DESTDIR=%{_usr} CFGDIR=/share/%{name}/cfg %{?_smp_mflags} +%make_build CFLAGS="%{optflags} -DUNIX -fsigned-char" LDFLAGS="%{?__global_ldflags}" DESTDIR=%{_prefix} CFGDIR=/share/%{name}/cfg %install -rm -rf %{buildroot} make install DESTDIR=%{buildroot}%{_usr} make install-info DESTDIR=%{buildroot}%{_usr} # Remove unnecessary file from infodir @@ -78,28 +74,27 @@ rm -f %{buildroot}%{_infodir}/dir %check make check -%clean -rm -rf %{buildroot} - %post -/sbin/install-info --quiet %{_infodir}/%{name}.info %{_infodir}/dir || : +install-info --quiet %{_infodir}/%{name}.info %{_infodir}/dir || : + %preun if [ $1 = 0 ] ; then -/sbin/install-info --quiet --delete %{_infodir}/%{name}.info %{_infodir}/dir || : + install-info --quiet --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %files -%defattr(-,root,root,-) %doc ChangeLog Copyright doc/latex2rtf.pdf doc/copying.txt doc/credits %{_bindir}/latex2rtf %{_bindir}/latex2png +%{_datadir}/latex2rtf/ +%{_infodir}/latex2rtf.info.* %{_mandir}/man1/latex2rtf.1.* %{_mandir}/man1/latex2png.1.* -%{_infodir}/latex2rtf.info.* -%{_datadir}/latex2rtf/ - %changelog +* Wed Jul 30 2014 Christopher Meng - 2.3.8-1 +- Update to 2.3.8 + * Tue Jul 01 2014 Susi Lehtola - 2.3.7a-1 - Update to 2.3.7a. diff --git a/sources b/sources index 372834c..fe03bcc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ef1d88ceb3894f1ccfce4c30f2a0206d latex2rtf-2.3.7a.tar.gz +19faa256fc35671134b1da524ef57c15 latex2rtf-2.3.8.tar.gz