/[packages]/updates/6/poppler/current/SPECS/poppler.spec
ViewVC logotype

Contents of /updates/6/poppler/current/SPECS/poppler.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1191818 - (show annotations) (download)
Tue Jan 9 10:03:40 2018 UTC (11 months, 1 week ago) by ns80
File size: 8299 byte(s)
- add patch for CVE-2017-1000456 (mga#22352)

1 %define major 66
2 %define glibmajor 8
3 %define qt4major 4
4 %define qt5major 1
5 %define cppmajor 0
6 %define girmajor 0.18
7
8 %define libname %mklibname %name %{major}
9 %define libnameglib %mklibname %name-glib %{glibmajor}
10 %define libnameqt4 %mklibname %name-qt4_ %{qt4major}
11 %define libnameqt5 %mklibname %name-qt5_ %{qt5major}
12 %define libnamecpp %mklibname %name-cpp %{cppmajor}
13 %define libnamedev %mklibname -d %{name}
14 %define libnameglibdev %mklibname -d %{name}-glib
15 %define libnameqt4dev %mklibname -d %{name}-qt4
16 %define libnameqt5dev %mklibname -d %{name}-qt5
17 %define libnamecppdev %mklibname -d %{name}-cpp
18 %define libnamegir %mklibname %{name}-gir %{girmajor}
19
20 Name: poppler
21 Summary: PDF rendering library
22 Group: Publishing
23 Version: 0.52.0
24 %define subrel 6
25 Release: %mkrel 3
26 License: GPLv2+
27 URL: http://poppler.freedesktop.org
28 Source: http://poppler.freedesktop.org/%{name}-%{version}.tar.xz
29 Patch0: poppler-CVE-2017-7511.patch
30 Patch1: poppler-0.54.0-CVE-2017-9406.patch
31 Patch2: poppler-0.54.0-CVE-2017-9408.patch
32 Patch3: poppler-0.55.0-CVE-2017-7515.patch
33 Patch4: poppler-0.48.0-CVE-2017-9775.patch
34 Patch5: poppler-0.52.0-CVE-2017-9776.patch
35 Patch6: poppler-0.52.0-CVE-2017-9865.patch
36 Patch7: poppler-0.26.5-CVE-2017-14517.patch
37 Patch8: poppler-0.26.5-CVE-2017-14519.patch
38 Patch9: poppler-0.59.0-CVE-2017-14520.patch
39 Patch10: poppler-0.41.0-CVE-2017-14518.patch
40 Patch11: poppler-0.41.0-CVE-2017-14617.patch
41 Patch12: poppler-0.41.0-CVE-2017-14926.patch
42 Patch13: poppler-0.41.0-CVE-2017-14928.patch
43 Patch14: poppler-0.41.0-CVE-2017-14929.patch
44 Patch15: poppler-0.41.0-CVE-2017-14975.patch
45 Patch16: poppler-0.41.0-CVE-2017-14977.patch
46 Patch17: poppler-0.60.1-CVE-2017-14927.patch
47 Patch18: poppler-0.60.1-CVE-2017-14976.patch
48 Patch19: poppler-0.57.0-CVE-2017-15565.patch
49 Patch20: poppler-0.52.0-CVE-2017-1000456.patch
50 BuildRequires: pkgconfig(cairo) >= 1.10.0
51 BuildRequires: pkgconfig(cairo-ft) >= 1.10.0
52 BuildRequires: pkgconfig(cairo-pdf)
53 BuildRequires: pkgconfig(cairo-ps)
54 BuildRequires: pkgconfig(cairo-svg)
55 BuildRequires: pkgconfig(fontconfig) >= 2.0.0
56 BuildRequires: pkgconfig(freetype2)
57 BuildRequires: pkgconfig(gdk-pixbuf-2.0)
58 BuildRequires: pkgconfig(gio-2.0) >= 2.18
59 BuildRequires: pkgconfig(glib-2.0) >= 2.18
60 BuildRequires: pkgconfig(gobject-2.0) >= 2.18
61 BuildRequires: pkgconfig(gtk+-3.0) >= 3.0
62 BuildRequires: pkgconfig(lcms2)
63 BuildRequires: pkgconfig(libpng)
64 BuildRequires: pkgconfig(nss)
65 BuildRequires: pkgconfig(Qt5Core) >= 5.0.0
66 BuildRequires: pkgconfig(Qt5Gui) >= 5.0.0
67 BuildRequires: pkgconfig(Qt5Test) >= 5.0.0
68 BuildRequires: pkgconfig(Qt5Widgets) >= 5.0.0
69 BuildRequires: pkgconfig(Qt5Xml) >= 5.0.0
70 BuildRequires: pkgconfig(QtCore) >= 4.4.0
71 BuildRequires: pkgconfig(QtGui) >= 4.4.0
72 BuildRequires: pkgconfig(QtTest) >= 4.4.0
73 BuildRequires: pkgconfig(QtXml) >= 4.4.0
74 BuildRequires: jpeg-devel
75 BuildRequires: openjpeg2-devel
76 BuildRequires: pkgconfig(gobject-introspection-1.0)
77 BuildRequires: gettext-devel
78 BuildRequires: gtk-doc
79 BuildRequires: libtiff-devel
80 Obsoletes: xpdf-tools < 3.02-10mdv
81 Provides: xpdf-tools
82 Obsoletes: pdftohtml
83 Provides: pdftohtml
84
85 %description
86 Poppler is a PDF rendering library based on the xpdf-3.0 code base.
87
88 %package -n %{libname}
89 Summary: PDF rendering library
90 Group: System/Libraries
91 Conflicts: %{_lib}poppler12
92 Recommends: poppler-data
93
94 %description -n %{libname}
95 Poppler is a PDF rendering library based on the xpdf-3.0 code base.
96
97 %package -n %{libnamedev}
98 Summary: Development files for %{name}
99 Group: Development/C++
100 Provides: %{name}-devel = %{version}-%{release}
101 Requires: %{libname} = %{version}-%{release}
102 Obsoletes: %{libname}-devel
103
104 %description -n %{libnamedev}
105 Development files for %{name}
106
107 %package -n %{libnamecpp}
108 Summary: PDF rendering library - C++ backend
109 Group: System/Libraries
110
111 %description -n %{libnamecpp}
112 Poppler is a PDF rendering library based on the xpdf-3.0 code base.
113 This is the C++ backend version.
114
115 %package -n %{libnameqt4dev}
116 Summary: Development files for %{name}-qt4
117 Group: Development/KDE and Qt
118 Provides: %{name}-qt4-devel = %{version}-%{release}
119 Requires: %{libnameqt4} = %{version}
120 Requires: %{libnamedev} = %{version}
121 Obsoletes: %{libnameqt4}-devel
122
123 %description -n %{libnameqt4dev}
124 Development files for %{name}-qt4
125
126 %package -n %{libnameqt5dev}
127 Summary: Development files for %{name}-qt5
128 Group: Development/KDE and Qt
129 Provides: %{name}-qt5-devel = %{version}-%{release}
130 Requires: %{libnameqt5} = %{version}
131 Requires: %{libnamedev} = %{version}
132
133 %description -n %{libnameqt5dev}
134 Development files for %{name}-qt5.
135
136 %package -n %{libnameqt4}
137 Summary: PDF rendering library - Qt4 backend
138 Group: System/Libraries
139 Obsoletes: %{_lib}poppler-qt4-4 < 0.20.1-3
140
141 %description -n %{libnameqt4}
142 Poppler is a PDF rendering library based on the xpdf-3.0 code base.
143 This is the Qt4 backend version.
144
145 %package -n %{libnameqt5}
146 Summary: PDF rendering library - Qt5 backend
147 Group: System/Libraries
148
149 %description -n %{libnameqt5}
150 Poppler is a PDF rendering library based on the xpdf-3.0 code base.
151 This is the Qt5 backend version.
152
153 %package -n %{libnameglib}
154 Summary: PDF rendering library - glib binding
155 Group: System/Libraries
156 Conflicts: %{libname} < %{version}-%{release}
157 Conflicts: %{name}-gir0.16 < 0.16.6
158
159 %description -n %{libnameglib}
160 Poppler is a PDF rendering library based on the xpdf-3.0 code base.
161
162 %package -n %{libnamegir}
163 Summary: Gobject-introspection files for %{name}
164 Group: System/Libraries
165 Obsoletes: %{name}-gir0.16 < 0.16.6
166 Requires: %{libnameglib} = %{version}
167
168 %description -n %{libnamegir}
169 Gobject-introspection files for %{name}.
170
171 %package -n %{libnameglibdev}
172 Summary: Development files for %{name}'s glib binding
173 Group: Development/C++
174 Provides: %{name}-glib-devel = %{version}-%{release}
175 Requires: %{libnameglib} = %{version}
176 Requires: %{libnamegir} = %{version}
177 Requires: %{libnamedev} = %{version}
178 Conflicts: %{libnamedev} < %{version}-%{release}
179 Obsoletes: %{libnameglib}-devel
180
181 %description -n %{libnameglibdev}
182 Development files for %{name}'s glib binding.
183
184 %package -n %{libnamecppdev}
185 Summary: Development files for %{name}-cpp
186 Group: Development/C++
187 Provides: %{name}-cpp-devel = %{version}-%{release}
188 Requires: %{libnamecpp} = %{version}
189 Requires: %{libnamedev} = %{version}
190
191 %description -n %{libnamecppdev}
192 Development files for %{name}-cpp.
193
194 %prep
195 %setup -q
196 %autopatch -p1
197
198 %build
199 export MOCQT4=%{_qt4_bindir}/moc
200 export MOCQT5=%{_qt5_bindir}/moc
201 # We need c++11 enforced on older compilers only (< gcc 6)
202 export CXXFLAGS="$CXXFLAGS %{optflags} -std=gnu++11"
203
204 autoreconf -vfi
205 %configure2_5x \
206 --disable-static \
207 --disable-gtk-test \
208 --enable-cairo-output \
209 --enable-libopenjpeg=openjpeg2 \
210 --enable-poppler-qt4 \
211 --enable-xpdf-headers \
212 --enable-gtk-doc
213 %make_build
214
215 %install
216 %make_install
217
218 %{__cp} -a config.h %{buildroot}%{_includedir}/poppler/
219
220 find %{buildroot} -name '*.la' -delete
221
222 %files
223 %doc AUTHORS COPYING NEWS README
224 %{_bindir}/*
225 %{_mandir}/man1/*
226
227 %files -n %{libname}
228 %{_libdir}/libpoppler.so.%{major}{,.*}
229
230 %files -n %{libnamedev}
231 %{_libdir}/libpoppler.so
232 %dir %{_includedir}/poppler/
233 %{_includedir}/poppler/config.h
234 %{_includedir}/poppler/[A-Z]*
235 %{_includedir}/poppler/fofi
236 %{_includedir}/poppler/goo
237 %{_includedir}/poppler/splash
238 %{_includedir}/poppler/poppler-config.h
239 %{_libdir}/pkgconfig/poppler-cairo.pc
240 %{_libdir}/pkgconfig/poppler-splash.pc
241 %{_libdir}/pkgconfig/poppler.pc
242 %{_datadir}/gtk-doc/html/%{name}/
243
244 %files -n %{libnameglib}
245 %{_libdir}/libpoppler-glib.so.%{glibmajor}{,.*}
246
247 %files -n %{libnamegir}
248 %{_libdir}/girepository-1.0/Poppler-%{girmajor}.typelib
249
250 %files -n %{libnameglibdev}
251 %{_libdir}/libpoppler-glib.so
252 %{_libdir}/pkgconfig/poppler-glib.pc
253 %{_includedir}/poppler/glib/
254 %{_datadir}/gir-1.0/Poppler-%{girmajor}.gir
255
256 %files -n %{libnameqt4dev}
257 %{_includedir}/poppler/qt4/
258 %{_libdir}/pkgconfig/poppler-qt4.pc
259 %{_libdir}/libpoppler-qt4.so
260
261 %files -n %{libnameqt4}
262 %{_libdir}/libpoppler-qt4.so.%{qt4major}{,.*}
263
264 %files -n %{libnameqt5dev}
265 %{_includedir}/poppler/qt5/
266 %{_libdir}/pkgconfig/poppler-qt5.pc
267 %{_libdir}/libpoppler-qt5.so
268
269 %files -n %{libnameqt5}
270 %{_libdir}/libpoppler-qt5.so.%{qt5major}{,.*}
271
272 %files -n %{libnamecpp}
273 %{_libdir}/libpoppler-cpp.so.%{cppmajor}{,.*}
274
275 %files -n %{libnamecppdev}
276 %{_libdir}/libpoppler-cpp.so
277 %{_libdir}/pkgconfig/poppler-cpp.pc
278 %{_includedir}/poppler/cpp

  ViewVC Help
Powered by ViewVC 1.1.26