%define monolithic 1 Summary: A PDF file viewer for the X Window System. Name: xpdf Version: 3.01 Release: 2 License: GPL URL: http://www.foolabs.com/xpdf/ Group: Applications/Publishing Source0: ftp://ftp.foolabs.com/pub/xpdf/%{name}-%{version}.tar.gz Source1: xpdf-xpdfrc.tar.gz Source2: ftp://ftp.foolabs.com/pub/xpdf/xpdf-arabic.tar.gz Source3: ftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-simplified.tar.gz Source4: ftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-traditional.tar.gz Source5: ftp://ftp.foolabs.com/pub/xpdf/xpdf-cyrillic.tar.gz Source6: ftp://ftp.foolabs.com/pub/xpdf/xpdf-greek.tar.gz Source7: ftp://ftp.foolabs.com/pub/xpdf/xpdf-hebrew.tar.gz Source8: ftp://ftp.foolabs.com/pub/xpdf/xpdf-japanese.tar.gz Source9: ftp://ftp.foolabs.com/pub/xpdf/xpdf-korean.tar.gz Source10: ftp://ftp.foolabs.com/pub/xpdf/xpdf-latin2.tar.gz Source11: ftp://ftp.foolabs.com/pub/xpdf/xpdf-thai.tar.gz Source12: ftp://ftp.foolabs.com/pub/xpdf/xpdf-turkish.tar.gz Source13: xpdf.desktop Patch0: xpdf-3.01pl2.patch Requires: urw-fonts t1lib xpm Requires: freetype2 >= 2.1.7 BuildRequires: t1lib-devel xpm-devel BuildRequires: freetype2-devel >= 2.1.7 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %package arabic Summary: Arabic support Requires: %{name} >= 1.00 Group: Applications/Publishing %package chinese-simplified Summary: Chinese Simplified support Requires: %{name} >= 1.00 Group: Applications/Publishing %package chinese-traditional Summary: Chinese Traditional support Requires: %{name} >= 1.00 Group: Applications/Publishing %package cyrillic Summary: Cyrillic support Requires: %{name} >= 1.00 Group: Applications/Publishing %package greek Summary: Greek support Requires: %{name} >= 1.00 Group: Applications/Publishing %package hebrew Summary: Hebrew support Requires: %{name} >= 1.00 Group: Applications/Publishing %package japanese Summary: Japanese support Requires: %{name} >= 1.00 Group: Applications/Publishing %package korean Summary: Korean support Requires: %{name} >= 1.00 Group: Applications/Publishing %package latin2 Summary: Latin2 support Requires: %{name} >= 1.00 Group: Applications/Publishing %package thai Summary: Thai support Requires: %{name} >= 1.00 Group: Applications/Publishing %package turkish Summary: Turkish support Requires: %{name} >= 1.00 Group: Applications/Publishing %description Xpdf is an X Window System based viewer for Portable Document Format (PDF) files. Xpdf is a small and efficient program which uses standard X fonts. %description arabic This package provides support files needed to use the Xpdf tools with Arabic PDF files. %description chinese-simplified This package provides support files needed to use the Xpdf tools with Chinese (Simplified) PDF files. Contents include: Adobe-GB1 character collection support, ISO-2022-CN encoding, and EUC-CN encoding %description chinese-traditional This package provides support files needed to use the Xpdf tools with Chinese (Traditional) PDF files. Contents include: Adobe-CNS1 character collection support and Big5 encoding %description japanese This package provides support files needed to use the Xpdf tools with Japanese PDF files. Contents include: Adobe-Japan1 character collection support, ISO-2022-JP encoding, and EUC-JP encoding Shift-JIS encoding %description cyrillic This package provides support files needed to use the Xpdf tools with Cyrillic PDF files. %description greek This package provides support files needed to use the Xpdf tools with Greek PDF files. %description hebrew This package provides support files needed to use the Xpdf tools with Hebrew PDF files. %description japanese This package provides support files needed to use the Xpdf tools with Japanese PDF files. %description korean This package provides support files needed to use the Xpdf tools with Korean PDF files. Contents include: Adobe-Korea1 character collection support and KSX1001 encoding %description latin2 This package provides support files needed to use the Xpdf tools with Latin2 PDF files. %description thai This package provides support files needed to use the Xpdf tools with Thai PDF files. %description turkish This package provides support files needed to use the Xpdf tools with Turkish PDF files. %prep %setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 %patch0 -p1 ### The following option worked previously, not anymore, there I omitted it ### --enable-multithreaded \ %build export CC=xlc_r export CC=xlC_r export CFLAGS="-O2" export CXXFLAGS="-O2" ./configure --prefix=/opt/freeware \ --enable-a4-paper \ --enable-opi \ --enable-wordlist \ --with-x \ --with-gzip \ --with-appdef-dir=/usr/lib/X11/app-defaults/ \ --with-freetype2-includes=/opt/freeware/include/freetype2 \ --with-freetype2-library=/opt/freeware/lib \ --with-t1-includes=/opt/freeware/include \ --with-t1-library=/opt/freeware/lib make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/X11/applnk/Graphics \ $RPM_BUILD_ROOT%{_datadir}/xpdf/arabic \ $RPM_BUILD_ROOT%{_datadir}/xpdf/chinese-simplified \ $RPM_BUILD_ROOT%{_datadir}/xpdf/chinese-traditional \ $RPM_BUILD_ROOT%{_datadir}/xpdf/cyrillic \ $RPM_BUILD_ROOT%{_datadir}/xpdf/greek \ $RPM_BUILD_ROOT%{_datadir}/xpdf/hebrew \ $RPM_BUILD_ROOT%{_datadir}/xpdf/japanese \ $RPM_BUILD_ROOT%{_datadir}/xpdf/korean \ $RPM_BUILD_ROOT%{_datadir}/xpdf/latin2 \ $RPM_BUILD_ROOT%{_datadir}/xpdf/thai \ $RPM_BUILD_ROOT%{_datadir}/xpdf/turkish \ make install DESTDIR=$RPM_BUILD_ROOT install -m 0644 %{SOURCE13} $RPM_BUILD_ROOT/etc/X11/applnk/Graphics/ cp -rf xpdf-arabic/* $RPM_BUILD_ROOT%{_datadir}/xpdf/arabic/ cp -rf xpdf-chinese-simplified/* $RPM_BUILD_ROOT%{_datadir}/xpdf/chinese-simplified/ cp -rf xpdf-chinese-traditional/* $RPM_BUILD_ROOT%{_datadir}/xpdf/chinese-traditional/ cp -rf xpdf-cyrillic/* $RPM_BUILD_ROOT%{_datadir}/xpdf/cyrillic/ cp -rf xpdf-greek/* $RPM_BUILD_ROOT%{_datadir}/xpdf/greek/ cp -rf xpdf-hebrew/* $RPM_BUILD_ROOT%{_datadir}/xpdf/hebrew/ cp -rf xpdf-japanese/* $RPM_BUILD_ROOT%{_datadir}/xpdf/japanese/ cp -rf xpdf-korean/* $RPM_BUILD_ROOT%{_datadir}/xpdf/korean/ cp -rf xpdf-latin2/* $RPM_BUILD_ROOT%{_datadir}/xpdf/latin2/ cp -rf xpdf-thai/* $RPM_BUILD_ROOT%{_datadir}/xpdf/thai/ cp -rf xpdf-turkish/* $RPM_BUILD_ROOT%{_datadir}/xpdf/turkish/ %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES README %{_bindir}/* %{_mandir}/*/* %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xpdfrc %dir %{_datadir}/xpdf %attr(0644,root,root) /etc/X11/applnk/Graphics/xpdf.desktop %if !%{monolithic} %files arabic %defattr(-,root,root) %endif %lang(xx_XX) %{_datadir}/xpdf/arabic %if !%{monolithic} %files chinese-simplified %defattr(-,root,root) %endif %lang(zh_CN) %{_datadir}/xpdf/chinese-simplified %if !%{monolithic} %files chinese-traditional %defattr(-,root,root) %endif %lang(zh_TW) %{_datadir}/xpdf/chinese-traditional %if !%{monolithic} %files cyrillic %defattr(-,root,root) %endif %lang(xx_XX) %{_datadir}/xpdf/cyrillic %if !%{monolithic} %files greek %defattr(-,root,root) %endif %lang(xx_XX) %{_datadir}/xpdf/greek %if !%{monolithic} %files hebrew %defattr(-,root,root) %endif %lang(xx_XX) %{_datadir}/xpdf/hebrew %if !%{monolithic} %files japanese %defattr(-,root,root) %endif %lang(ja) %{_datadir}/xpdf/japanese %if !%{monolithic} %files korean %defattr(-,root,root) %endif %lang(ko) %{_datadir}/xpdf/korean %if !%{monolithic} %files latin2 %defattr(-,root,root) %endif %lang(xx_XX) %{_datadir}/xpdf/latin2 %if !%{monolithic} %files thai %defattr(-,root,root) %endif %lang(xx_XX) %{_datadir}/xpdf/thai %if !%{monolithic} %files turkish %defattr(-,root,root) %endif %lang(xx_XX) %{_datadir}/xpdf/turkish %changelog * Wed Nov 22 2006 Michael Perzl - incorporated security fix xpdf-3.01pl2 * Wed Jan 04 2006 Michael Perzl - first version for AIX V5.1 and higher