# These macros need to match what is in the texlive-texmf package. For # this reason texlive-texmf is a BuildRequires, and it installs an rpm # macro file that defines them. Here we define them in case they're # not set. %{!?_texmf_main: %define _texmf_main %{_datadir}/texmf} %{!?_texmf_conf: %define _texmf_conf %{_sysconfdir}/texmf} %define snapshot 20071115 Name: dvipdfmx Version: 0 Release: 0.20.%{snapshot}cvs%{?dist} Summary: A DVI to PDF translator Group: Applications/Publishing License: GPLv2+ URL: http://project.ktug.or.kr/dvipdfmx/ Source0: http://project.ktug.or.kr/dvipdfmx/snapshot/current/%{name}-%{snapshot}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: kpathsea-devel libpng-devel zlib-devel libpaper-devel texlive-texmf Requires: texlive-texmf-fonts Requires: ghostscript Requires(post): /usr/bin/mktexlsr Requires(postun): /usr/bin/mktexlsr %description The dvipdfmx (formerly dvipdfm-cjk) project provides an eXtended version of the dvipdfm, a DVI to PDF translator developed by Mark A. Wicks. The primary goal of this project is to support multi-byte character encodings and large character sets for East Asian languages. The secondary goal is to support as many features as pdfTeX developed by Han The Thanh. This project is a combined work of the dvipdfm-jpn project by Shunsaku Hirata and its modified one, dvipdfm-kor, by Jin-Hwan Cho. %prep %setup -q -n %{name}-%{snapshot} %build %configure make %{?_smp_mflags} # create customized cid-x.map for dvipdfmx (#418091) cat <> cid-x.map %% %% ASCII pTeX Examples %% %% Ryumin and GothicBBB found in PostScript printers: rml H !Ryumin-Light gbm H !GothicBBB-Medium rmlv V !Ryumin-Light gbmv V !GothicBBB-Medium EOF %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' mkdir -p %{buildroot}%{_texmf_conf}/dvipdfm mv cid-x.map %{buildroot}%{_texmf_conf}/dvipdfm/ %clean rm -rf $RPM_BUILD_ROOT %post /usr/bin/mktexlsr > /dev/null 2>&1 || : %postun /usr/bin/mktexlsr > /dev/null 2>&1 || : %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README %{_bindir}/dvipdfmx %{_bindir}/xbb %dir %{_texmf_conf}/dvipdfm/ %config(noreplace) %{_texmf_conf}/dvipdfm/cid-x.map %{_texmf_main}/dvipdfm %{_texmf_main}/fonts/cmap/EUC-UCS2 %{_texmf_main}/fonts/cmap/UniKSCms-UCS2-H %{_texmf_main}/fonts/cmap/UniKSCms-UCS2-V %{_texmf_main}/fonts/map/dvipdfmx/cid-x.map %{_texmf_main}/fonts/map/glyphlist/glyphlist.txt %{_texmf_main}/fonts/map/glyphlist/pdfglyphlist.txt %changelog * Sun Feb 17 2008 Jonathan G. Underwood - 0-0.20.20071115cvs - Remove obsolete and Provides for dvipdfm - Explicitly list contents of bindir in file list - Fix version and release tags to be guideline conforming - Add INSTALL='install -p' to make install - Add macro definitions from texlive-texmf spec file in case not defined - Remove NEWS and TODO from doc file list * Sun Feb 17 2008 Jonathan G. Underwood - 20071115-1 - Initial separate package - formerly part of texlive