]> git.pld-linux.org Git - packages/xpdf.git/blob - xpdf.spec
- up to 3.02pl5 (fixes CVE-2010-3702, CVS-2010-3704)
[packages/xpdf.git] / xpdf.spec
1 #
2 # TODO:
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
6 #
7 # Conditional build:
8 %bcond_with     protections     # remove protections against fair use (printing and copying)
9 %bcond_without  x               # X-based browser
10 #
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 файлів
18 Name:           xpdf
19 Version:        3.02
20 Release:        9
21 License:        GPL
22 Group:          X11/Applications
23 Source0:        ftp://ftp.foolabs.com/pub/xpdf/%{name}-%{version}.tar.gz
24 # Source0-md5:  599dc4cc65a07ee868cf92a667a913d2
25 Source1:        %{name}.desktop
26 Source2:        %{name}.png
27 Source3:        %{name}rc
28 Patch0:         %{name}-remove_protections.patch
29 Patch1:         %{name}-fontdirs.patch
30 Patch2:         %{name}-%{version}pl1.patch
31 Patch3:         %{name}-%{version}pl2.patch
32 Patch4:         %{name}-%{version}pl3.patch
33 Patch5:         %{name}-%{version}pl4.patch
34 Patch6:         %{name}-%{version}pl5.patch
35 URL:            http://www.foolabs.com/xpdf/
36 %{?with_x:BuildRequires:        xorg-lib-libX11-devel}
37 BuildRequires:  autoconf
38 BuildRequires:  freetype-devel >= 2.1.0
39 BuildRequires:  libpaper-devel
40 BuildRequires:  libstdc++-devel
41 %{?with_x:BuildRequires:        motif-devel}
42 BuildRequires:  t1lib-devel >= 1.3.0
43 Suggests:       ghostscript-fonts-std
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %define         _noautoreqdep   libXm.so.1 libXm.so.2
47 %define         specflags_ia32   -fomit-frame-pointer 
48
49 %description
50 Xpdf is an X Window System based viewer for Portable Document Format
51 (PDF) files. PDF files are sometimes called Acrobat files, after Adobe
52 Acrobat (Adobe's PDF viewer). Xpdf is a small and efficient program
53 which uses standard X fonts.
54 %{!?with_protections:This version ignores protections for both: printing and copying.}
55
56 %description -l es.UTF-8
57 Xpdf es un visor de archivos PDF (Portable Document Format). (Estos
58 son algunas veces llamados de archivos 'Acrobat', nombre del software
59 PDF del Adobe. Xpdf fue proyectado para ser pequeño y eficiente. Usa
60 fuentes padrón X.
61
62 %description -l ja.UTF-8
63 xpdf は Portable Document Format (PDF) ファイルの X Window System
64 上での ヴューアです。PDF ファイルは Adobe Acrobat (Adobe の PDF
65 ヴューア) にちなんで、 時々 Acrobat ファイルと呼ばれます。xpdf
66 は小さく、標準的な X のフォントを 使う効果的なプログラムです。 PDF
67 ファイルのヴューアが必要ならば、xpdf
68 パッケージをインストールしましょう。
69
70 %description -l pl.UTF-8
71 Xpdf jest przeglądarką plików zapisanych w formacie PDF (Portable
72 Document Format). Xpdf jest zaprojektowany tak, by być małym i
73 wydajnym programem. Używa fontów z zasobów X Window.
74 %{!?with_protections:Ta wersja ignoruje blokady zarówno drukowania jak i kopiowania.}
75
76 %description -l pt_BR.UTF-8
77 Xpdf é um visualizador de arquivos PDF (Portable Document Format).
78 (Estes são algumas vezes chamados de arquivos 'Acrobat', nome do
79 software PDF da Adobe. Xpdf foi projetado para ser pequeno e
80 eficiente. Ele usa fontes padrão X.
81
82 %description -l ru.UTF-8
83 Xpdf - это программа для просмотра файлов в формате Portable Document
84 Format (PDF). Она быстрая и эффективная и использует стандартные
85 шрифты X Window.
86
87 %description -l uk.UTF-8
88 Xpdf - це програма для перегляду файлів в форматі Portable Document
89 Format (PDF). Вона швидка й ефективна та використовує стандартні
90 шрифти X Window.
91
92 %package tools
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
96 Provides:       pdftops
97 Obsoletes:      pdftohtml-pdftops
98
99 %description tools
100 Set of utilities for displaying information about PDF-files (pdfinfo,
101 pdffonts, pdfimages) and converting them (pdftopbm, pdftops,
102 pdftotext).
103
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,
107 pdftops, pdftotext).
108
109 %prep
110 %setup -q
111 %{!?with_protections:%patch0 -p1}
112 %patch1 -p1
113 %patch2 -p1
114 %patch3 -p1
115 %patch4 -p1
116 %patch5 -p1
117 %patch6 -p1
118
119 %build
120 %{__autoconf}
121 %{!?with_x:export no_x=yes}
122 CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti"
123 %configure \
124         --enable-a4-paper \
125         --enable-freetype2 \
126         --enable-multithreaded \
127         --enable-opi \
128         --enable-wordlist \
129         --with-freetype2-includes=/usr/include/freetype2 \
130         --with-gzip
131
132 %{__make}
133
134 %install
135 rm -rf $RPM_BUILD_ROOT
136 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
137         $RPM_BUILD_ROOT%{_datadir}/xpdf
138
139 %{__make} install \
140         DESTDIR=$RPM_BUILD_ROOT
141
142 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
143 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
144 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
145
146 %clean
147 rm -rf $RPM_BUILD_ROOT
148
149 %post
150 umask 022
151 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
152
153 %postun
154 umask 022
155 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
156
157 %if %{with x}
158 %files
159 %defattr(644,root,root,755)
160 %doc ANNOUNCE CHANGES README
161 %attr(755,root,root) %{_bindir}/xpdf
162 %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/*
163 %{_datadir}/xpdf
164 %{_mandir}/man1/xpdf.1*
165 %{_mandir}/man5/xpdfrc.5*
166 %{_desktopdir}/*.desktop
167 %{_pixmapsdir}/*
168 %endif
169
170 %files tools
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_bindir}/pdf*
173 %{_mandir}/man1/pdf*
This page took 0.072265 seconds and 4 git commands to generate.