diff --git a/.cvsignore b/.cvsignore index e69de29..78fe9ac 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +OOoLatexEmf_noarch_src.tar.gz diff --git a/latex2emf.spec b/latex2emf.spec new file mode 100644 index 0000000..ebfea52 --- /dev/null +++ b/latex2emf.spec @@ -0,0 +1,45 @@ +Name: latex2emf +Version: 1.0.0 +Release: 1 +Summary: Create an EMF file from LaTeX source + +Group: Applications/Productivity +License: GPLv2+ +URL: http://ooolatex.sourceforge.net/ +Source0: http://downloads.sourceforge.net/ooolatex/OOoLatexEmf_noarch_src.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: libEMF-devel + +%description +This program creates EMF files from LaTeX source. It is used by the +OpenOffice.org extension "ooolatex" to allow display of LaTeX +equations inside Writer and Impress documents + +%prep +%setup -q -n OOoLatexEmf_noarch_src + +%build +# bypass the included Makefile which is very short and not designed +# with system-installation in mind +g++ $RPM_OPT_FLAGS latex2emf.cpp -I%{_includedir}/libEMF -o latex2emf -lEMF + +%install +rm -rf $RPM_BUILD_ROOT +%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir} +%{__install} latex2emf $RPM_BUILD_ROOT/%{_bindir} + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc License README +%{_bindir}/latex2emf + + +%changelog +* Wed Apr 2 2008 Alex Lancaster - 1.0.0-1 +- Initial Fedora package + diff --git a/sources b/sources index e69de29..a3dd206 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ad1ab04077828e91a4df906a850bc013 OOoLatexEmf_noarch_src.tar.gz