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