3 # - separate subpackage with /etc/xpdfrc file; pdftotext
4 # from xpdf-tools or poppler-progs can use language
5 # support files but don't require entire xpdf
8 %bcond_with protections # protections against fair use (printing and copying)
9 %bcond_without x # X-based browser
11 Summary: Portable Document Format (PDF) file viewer
12 Summary(es.UTF-8): Visualizador de archivos PDF
13 Summary(ja.UTF-8): X Window System での PDF ファイルヴューア
14 Summary(pl.UTF-8): Przeglądarka plików w formacie PDF
15 Summary(pt_BR.UTF-8): Visualizador de arquivos PDF
16 Summary(ru.UTF-8): Программа для просмотра PDF файлов
17 Summary(uk.UTF-8): Програма для перегляду PDF файлів
21 License: GPL v2 or GPL v3
22 Group: Applications/Publishing
23 Source0: ftp://ftp.foolabs.com/pub/xpdf/%{name}-%{version}.tar.gz
24 # Source0-md5: af75f772bee0e5ae4a811ff9d03eac5a
25 Source1: %{name}.desktop
28 Patch0: %{name}-remove_protections.patch
29 Patch1: %{name}-fontdirs.patch
30 URL: http://www.foolabs.com/xpdf/
31 BuildRequires: autoconf
32 BuildRequires: freetype-devel >= 2.1.0
33 BuildRequires: libpaper-devel
34 BuildRequires: libstdc++-devel
35 %{?with_x:BuildRequires: motif-devel >= 2.2}
36 BuildRequires: rpmbuild(macros) >= 1.596
37 %{?with_x:BuildRequires: xorg-lib-libX11-devel}
38 Requires: desktop-file-utils
39 Suggests: ghostscript-fonts-std
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _noautoreqdep libXm.so.1 libXm.so.2
43 %define specflags_ia32 -fomit-frame-pointer
46 Xpdf is an X Window System based viewer for Portable Document Format
47 (PDF) files. PDF files are sometimes called Acrobat files, after Adobe
48 Acrobat (Adobe's PDF viewer). Xpdf is a small and efficient program
49 which uses standard X fonts.
50 %{!?with_protections:This version ignores protections for both: printing and copying.}
52 %description -l es.UTF-8
53 Xpdf es un visor de archivos PDF (Portable Document Format). (Estos
54 son algunas veces llamados de archivos 'Acrobat', nombre del software
55 PDF del Adobe. Xpdf fue proyectado para ser pequeño y eficiente. Usa
58 %description -l ja.UTF-8
59 xpdf は Portable Document Format (PDF) ファイルの X Window System
60 上での ヴューアです。PDF ファイルは Adobe Acrobat (Adobe の PDF
61 ヴューア) にちなんで、 時々 Acrobat ファイルと呼ばれます。xpdf
62 は小さく、標準的な X のフォントを 使う効果的なプログラムです。 PDF
66 %description -l pl.UTF-8
67 Xpdf jest przeglądarką plików zapisanych w formacie PDF (Portable
68 Document Format). Xpdf jest zaprojektowany tak, by być małym i
69 wydajnym programem. Używa fontów z zasobów X Window.
70 %{!?with_protections:Ta wersja ignoruje blokady zarówno drukowania jak i kopiowania.}
72 %description -l pt_BR.UTF-8
73 Xpdf é um visualizador de arquivos PDF (Portable Document Format).
74 (Estes são algumas vezes chamados de arquivos 'Acrobat', nome do
75 software PDF da Adobe. Xpdf foi projetado para ser pequeno e
76 eficiente. Ele usa fontes padrão X.
78 %description -l ru.UTF-8
79 Xpdf - это программа для просмотра файлов в формате Portable Document
80 Format (PDF). Она быстрая и эффективная и использует стандартные
83 %description -l uk.UTF-8
84 Xpdf - це програма для перегляду файлів в форматі Portable Document
85 Format (PDF). Вона швидка й ефективна та використовує стандартні
89 Summary: Set of tools for viewing information and converting PDF files
90 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
91 Group: Applications/Publishing
93 Obsoletes: pdftohtml-pdftops
96 Set of utilities for displaying information about PDF-files (pdfinfo,
97 pdffonts, pdfimages) and converting them (pdftopbm, pdftops,
100 %description tools -l pl.UTF-8
101 Zestaw programów do wyświetlania informacji o plikach PDF (pdfinfo,
102 pdffonts, pdfimages) i konwertowania ich do innych formatów (pdftopbm,
107 %{!?with_protections:%patch0 -p1}
112 %{!?with_x:export no_x=yes}
113 CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti"
117 --enable-multithreaded \
120 --with-freetype2-includes=/usr/include/freetype2
125 rm -rf $RPM_BUILD_ROOT
126 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/xpdf}
128 DESTDIR=$RPM_BUILD_ROOT
130 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
131 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
132 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
135 rm -rf $RPM_BUILD_ROOT
138 %update_desktop_database
141 %update_desktop_database
145 %defattr(644,root,root,755)
146 %doc ANNOUNCE CHANGES README
147 %attr(755,root,root) %{_bindir}/xpdf
148 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/xpdfrc
150 %{_mandir}/man1/xpdf.1*
151 %{_mandir}/man5/xpdfrc.5*
152 %{_desktopdir}/xpdf.desktop
153 %{_pixmapsdir}/xpdf.png
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_bindir}/pdfdetach
159 %attr(755,root,root) %{_bindir}/pdffonts
160 %attr(755,root,root) %{_bindir}/pdfimages
161 %attr(755,root,root) %{_bindir}/pdfinfo
162 %attr(755,root,root) %{_bindir}/pdftoppm
163 %attr(755,root,root) %{_bindir}/pdftops
164 %attr(755,root,root) %{_bindir}/pdftotext
165 %{_mandir}/man1/pdfdetach.1*
166 %{_mandir}/man1/pdffonts.1*
167 %{_mandir}/man1/pdfimages.1*
168 %{_mandir}/man1/pdfinfo.1*
169 %{_mandir}/man1/pdftoppm.1*
170 %{_mandir}/man1/pdftops.1*
171 %{_mandir}/man1/pdftotext.1*