2 %bcond_with protections # protections against fair use (printing and copying)
3 %bcond_without x # X-based browser
5 Summary: Portable Document Format (PDF) file viewer
6 Summary(es.UTF-8): Visualizador de archivos PDF
7 Summary(ja.UTF-8): X Window System での PDF ファイルヴューア
8 Summary(pl.UTF-8): Przeglądarka plików w formacie PDF
9 Summary(pt_BR.UTF-8): Visualizador de arquivos PDF
10 Summary(ru.UTF-8): Программа для просмотра PDF файлов
11 Summary(uk.UTF-8): Програма для перегляду PDF файлів
16 Group: Applications/Publishing
17 Source0: http://www.xpdfreader.com/dl/%{name}-%{version}.tar.gz
18 # Source0-md5: 80c8ce77acf1d36de93cecb82bd64a0f
19 Source1: %{name}.desktop
22 Patch0: %{name}-remove_protections.patch
23 Patch1: %{name}-fontdirs.patch
24 Patch2: dynamic_private.patch
25 URL: http://www.xpdfreader.com/
26 BuildRequires: cmake >= 2.8.8
27 BuildRequires: freetype-devel >= 2.1.0
28 BuildRequires: libpaper-devel
29 BuildRequires: libpng-devel
30 BuildRequires: libstdc++-devel
31 %{?with_x:BuildRequires: QtCore-devel}
32 %{?with_x:BuildRequires: QtGui-devel}
33 %{?with_x:BuildRequires: qt4-qmake}
34 BuildRequires: rpmbuild(macros) >= 1.596
35 Requires: desktop-file-utils
36 Suggests: ghostscript-fonts-std
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define specflags_ia32 -fomit-frame-pointer
42 Xpdf is an X Window System based viewer for Portable Document Format
43 (PDF) files. PDF files are sometimes called Acrobat files, after Adobe
44 Acrobat (Adobe's PDF viewer). Xpdf is a small and efficient program
45 which uses standard X fonts.
46 %{!?with_protections:This version ignores protections for both: printing and copying.}
48 %description -l es.UTF-8
49 Xpdf es un visor de archivos PDF (Portable Document Format). (Estos
50 son algunas veces llamados de archivos 'Acrobat', nombre del software
51 PDF del Adobe. Xpdf fue proyectado para ser pequeño y eficiente. Usa
54 %description -l ja.UTF-8
55 xpdf は Portable Document Format (PDF) ファイルの X Window System
56 上での ヴューアです。PDF ファイルは Adobe Acrobat (Adobe の PDF
57 ヴューア) にちなんで、 時々 Acrobat ファイルと呼ばれます。xpdf
58 は小さく、標準的な X のフォントを 使う効果的なプログラムです。 PDF
62 %description -l pl.UTF-8
63 Xpdf jest przeglądarką plików zapisanych w formacie PDF (Portable
64 Document Format). Xpdf jest zaprojektowany tak, by być małym i
65 wydajnym programem. Używa fontów z zasobów X Window.
66 %{!?with_protections:Ta wersja ignoruje blokady zarówno drukowania jak i kopiowania.}
68 %description -l pt_BR.UTF-8
69 Xpdf é um visualizador de arquivos PDF (Portable Document Format).
70 (Estes são algumas vezes chamados de arquivos 'Acrobat', nome do
71 software PDF da Adobe. Xpdf foi projetado para ser pequeno e
72 eficiente. Ele usa fontes padrão X.
74 %description -l ru.UTF-8
75 Xpdf - это программа для просмотра файлов в формате Portable Document
76 Format (PDF). Она быстрая и эффективная и использует стандартные
79 %description -l uk.UTF-8
80 Xpdf - це програма для перегляду файлів в форматі Portable Document
81 Format (PDF). Вона швидка й ефективна та використовує стандартні
85 Summary: Common xpdf files
86 Summary(pl.UTF-8): Wspólne pliki xpdf
87 Group: Applications/Publishing
90 Private libraries used by xpdf GUI and CLI tools and xpdfrc file.
93 Summary: Set of tools for viewing information and converting PDF files
94 Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
95 Group: Applications/Publishing
97 Obsoletes: pdftohtml-pdftops
100 Set of utilities for displaying information about PDF-files (pdfinfo,
101 pdffonts, pdfimages) and converting them (pdftopbm, pdftops,
104 %description tools -l pl.UTF-8
105 Zestaw programów do wyświetlania informacji o plikach PDF (pdfinfo,
106 pdffonts, pdfimages) i konwertowania ich do innych formatów (pdftopbm,
111 %{!?with_protections:%patch0 -p1}
114 sed -e 's|DESTINATION man/|DESTINATION share/man/|g' -i xpdf{,-qt}/CMakeLists.txt
121 -DSYSTEM_XPDFRC="%{_sysconfdir}/%{name}rc" \
122 -DXPDFWIDGET_PRINTING=ON \
123 -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=1 \
124 -DCMAKE_CXX_FLAGS="%{rpmcxxflags}" \
125 -DCMAKE_INSTALL_RPATH="%{_libexecdir}/%{name}" \
126 -DCMAKE_EXE_LINKER_FLAGS="-lpaper %{rpmldflags}"
131 rm -rf $RPM_BUILD_ROOT
132 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_desktopdir},%{_pixmapsdir},{%{_datadir},%{_libexecdir}}/%{name}}
135 DESTDIR=$RPM_BUILD_ROOT
137 install {fofi/libfofi,goo/libgoo,splash/libsplash}.so $RPM_BUILD_ROOT%{_libexecdir}/%{name}
139 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
140 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
141 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
144 rm -rf $RPM_BUILD_ROOT
147 %update_desktop_database
150 %update_desktop_database
154 %defattr(644,root,root,755)
155 %attr(755,root,root) %{_bindir}/xpdf
156 %{_desktopdir}/%{name}.desktop
157 %{_pixmapsdir}/%{name}.png
158 %{_mandir}/man1/xpdf.1*
162 %doc ANNOUNCE CHANGES README
163 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/%{name}rc
164 %dir %{_libexecdir}/%{name}
165 %attr(755,root,root) %{_libexecdir}/%{name}/lib*.so
167 %{_mandir}/man5/xpdfrc.5*
170 %defattr(644,root,root,755)
171 %attr(755,root,root) %{_bindir}/pdfdetach
172 %attr(755,root,root) %{_bindir}/pdffonts
173 %attr(755,root,root) %{_bindir}/pdfimages
174 %attr(755,root,root) %{_bindir}/pdfinfo
175 %attr(755,root,root) %{_bindir}/pdftohtml
176 %attr(755,root,root) %{_bindir}/pdftopng
177 %attr(755,root,root) %{_bindir}/pdftoppm
178 %attr(755,root,root) %{_bindir}/pdftops
179 %attr(755,root,root) %{_bindir}/pdftotext
180 %{_mandir}/man1/pdfdetach.1*
181 %{_mandir}/man1/pdffonts.1*
182 %{_mandir}/man1/pdfimages.1*
183 %{_mandir}/man1/pdfinfo.1*
184 %{_mandir}/man1/pdftohtml.1*
185 %{_mandir}/man1/pdftopng.1*
186 %{_mandir}/man1/pdftoppm.1*
187 %{_mandir}/man1/pdftops.1*
188 %{_mandir}/man1/pdftotext.1*