]> git.pld-linux.org Git - packages/xpdf.git/blame - xpdf.spec
- release 3 (by relup.sh)
[packages/xpdf.git] / xpdf.spec
CommitLineData
9f60ed39 1#
79fd0d56
TP
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#
9f60ed39 7# Conditional build:
cf80ddef 8%bcond_with protections # protections against fair use (printing and copying)
2c9d921c 9%bcond_without x # X-based browser
ca5bcee6 10
93abf3eb 11Summary: Portable Document Format (PDF) file viewer
1b4a9f52
ER
12Summary(es.UTF-8): Visualizador de archivos PDF
13Summary(ja.UTF-8): X Window System での PDF ファイルヴューア
14Summary(pl.UTF-8): Przeglądarka plików w formacie PDF
15Summary(pt_BR.UTF-8): Visualizador de arquivos PDF
16Summary(ru.UTF-8): Программа для просмотра PDF файлов
17Summary(uk.UTF-8): Програма для перегляду PDF файлів
93abf3eb 18Name: xpdf
e24bfd15 19Version: 4.00
f9c3e775 20Release: 3
cf80ddef 21License: GPL v2 or GPL v3
ca5bcee6 22Group: Applications/Publishing
e24bfd15
TP
23Source0: http://www.xpdfreader.com/dl/%{name}-%{version}.tar.gz
24# Source0-md5: 80c8ce77acf1d36de93cecb82bd64a0f
e9d3e07b 25Source1: %{name}.desktop
8ddb316c 26Source2: %{name}.png
48e7efba 27Source3: %{name}rc
9f60ed39 28Patch0: %{name}-remove_protections.patch
631d479b 29Patch1: %{name}-fontdirs.patch
e24bfd15
TP
30URL: http://www.xpdfreader.com/
31BuildRequires: cmake >= 2.8.8
09366f62 32BuildRequires: freetype-devel >= 2.1.0
4148fe2b 33BuildRequires: libpaper-devel
74204cd0 34BuildRequires: libpng-devel
0491d001 35BuildRequires: libstdc++-devel
e24bfd15
TP
36%{?with_x:BuildRequires: QtCore-devel}
37%{?with_x:BuildRequires: QtGui-devel}
38%{?with_x:BuildRequires: qt4-qmake}
ca5bcee6 39BuildRequires: rpmbuild(macros) >= 1.596
ca5bcee6 40Requires: desktop-file-utils
c6c887d4 41Suggests: ghostscript-fonts-std
2785b9fe 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a366f0ee 43
ca5bcee6 44%define specflags_ia32 -fomit-frame-pointer
a9870f41 45
a366f0ee 46%description
88e104c8 47Xpdf is an X Window System based viewer for Portable Document Format
48(PDF) files. PDF files are sometimes called Acrobat files, after Adobe
49Acrobat (Adobe's PDF viewer). Xpdf is a small and efficient program
50which uses standard X fonts.
a0874d43 51%{!?with_protections:This version ignores protections for both: printing and copying.}
a366f0ee 52
f8408aae 53%description -l es.UTF-8
7886ec95 54Xpdf es un visor de archivos PDF (Portable Document Format). (Estos
55son algunas veces llamados de archivos 'Acrobat', nombre del software
f8408aae
JR
56PDF del Adobe. Xpdf fue proyectado para ser pequeño y eficiente. Usa
57fuentes padrón X.
7886ec95 58
f8408aae
JR
59%description -l ja.UTF-8
60xpdf は Portable Document Format (PDF) ファイルの X Window System
61上での ヴューアです。PDF ファイルは Adobe Acrobat (Adobe の PDF
62ヴューア) にちなんで、 時々 Acrobat ファイルと呼ばれます。xpdf
63は小さく、標準的な X のフォントを 使う効果的なプログラムです。 PDF
64ファイルのヴューアが必要ならば、xpdf
65パッケージをインストールしましょう。
8ddb316c 66
f8408aae
JR
67%description -l pl.UTF-8
68Xpdf jest przeglądarką plików zapisanych w formacie PDF (Portable
69Document Format). Xpdf jest zaprojektowany tak, by być małym i
70wydajnym programem. Używa fontów z zasobów X Window.
71%{!?with_protections:Ta wersja ignoruje blokady zarówno drukowania jak i kopiowania.}
93abf3eb 72
f8408aae
JR
73%description -l pt_BR.UTF-8
74Xpdf é um visualizador de arquivos PDF (Portable Document Format).
75(Estes são algumas vezes chamados de arquivos 'Acrobat', nome do
7886ec95 76software PDF da Adobe. Xpdf foi projetado para ser pequeno e
f8408aae 77eficiente. Ele usa fontes padrão X.
7886ec95 78
f8408aae
JR
79%description -l ru.UTF-8
80Xpdf - это программа для просмотра файлов в формате Portable Document
81Format (PDF). Она быстрая и эффективная и использует стандартные
82шрифты X Window.
7750d49b 83
f8408aae
JR
84%description -l uk.UTF-8
85Xpdf - це програма для перегляду файлів в форматі Portable Document
86Format (PDF). Вона швидка й ефективна та використовує стандартні
87шрифти X Window.
7750d49b 88
f54ed77d 89%package tools
90Summary: Set of tools for viewing information and converting PDF files
1b4a9f52 91Summary(pl.UTF-8): Zestaw narzędzi do wyświetlania informacji i konwertowania plików PDF
f54ed77d 92Group: Applications/Publishing
2672519c 93Provides: pdftops
94Obsoletes: pdftohtml-pdftops
f54ed77d 95
96%description tools
97Set of utilities for displaying information about PDF-files (pdfinfo,
98pdffonts, pdfimages) and converting them (pdftopbm, pdftops,
99pdftotext).
100
f8408aae
JR
101%description tools -l pl.UTF-8
102Zestaw programów do wyświetlania informacji o plikach PDF (pdfinfo,
103pdffonts, pdfimages) i konwertowania ich do innych formatów (pdftopbm,
f54ed77d 104pdftops, pdftotext).
105
93abf3eb 106%prep
107%setup -q
a0874d43 108%{!?with_protections:%patch0 -p1}
09366f62 109%patch1 -p1
e24bfd15 110sed -e 's|DESTINATION man/|DESTINATION share/man/|g' -i xpdf{,-qt}/CMakeLists.txt
93abf3eb 111
112%build
e24bfd15
TP
113%cmake . \
114 -DA4_PAPER=ON \
115 -DSPLASH_CMYK=ON \
116 -DOPI_SUPPORT=ON \
62eb63a5 117 -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=1 \
e24bfd15
TP
118 -DCMAKE_CXX_FLAGS="%{rpmcxxflags}" \
119 -DCMAKE_EXE_LINKER_FLAGS="-lpaper %{rpmldflags}"
308001e1 120
deb92fef 121%{__make}
93abf3eb 122
123%install
124rm -rf $RPM_BUILD_ROOT
e24bfd15
TP
125install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/xpdf}
126
09366f62
JB
127%{__make} install \
128 DESTDIR=$RPM_BUILD_ROOT
93abf3eb 129
ca5bcee6
ER
130cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
131cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
132cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
93abf3eb 133
93abf3eb 134%clean
135rm -rf $RPM_BUILD_ROOT
136
7b55ada9 137%post
ca5bcee6 138%update_desktop_database
7b55ada9 139
140%postun
ca5bcee6 141%update_desktop_database
7b55ada9 142
2c9d921c 143%if %{with x}
93abf3eb 144%files
145%defattr(644,root,root,755)
b6e603f9 146%doc ANNOUNCE CHANGES README
f54ed77d 147%attr(755,root,root) %{_bindir}/xpdf
cf80ddef 148%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/xpdfrc
0491d001 149%{_datadir}/xpdf
f54ed77d 150%{_mandir}/man1/xpdf.1*
151%{_mandir}/man5/xpdfrc.5*
cf80ddef
JB
152%{_desktopdir}/xpdf.desktop
153%{_pixmapsdir}/xpdf.png
2c9d921c 154%endif
f54ed77d 155
156%files tools
157%defattr(644,root,root,755)
cf80ddef
JB
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
74204cd0
JB
162%attr(755,root,root) %{_bindir}/pdftohtml
163%attr(755,root,root) %{_bindir}/pdftopng
cf80ddef
JB
164%attr(755,root,root) %{_bindir}/pdftoppm
165%attr(755,root,root) %{_bindir}/pdftops
166%attr(755,root,root) %{_bindir}/pdftotext
167%{_mandir}/man1/pdfdetach.1*
168%{_mandir}/man1/pdffonts.1*
169%{_mandir}/man1/pdfimages.1*
170%{_mandir}/man1/pdfinfo.1*
74204cd0
JB
171%{_mandir}/man1/pdftohtml.1*
172%{_mandir}/man1/pdftopng.1*
cf80ddef
JB
173%{_mandir}/man1/pdftoppm.1*
174%{_mandir}/man1/pdftops.1*
175%{_mandir}/man1/pdftotext.1*
This page took 0.082081 seconds and 4 git commands to generate.