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