]> git.pld-linux.org Git - packages/poppler0.61.git/blob - poppler0.61.spec
- obsolete poppler-qt4-static here; versioned Obsoletes, release 3
[packages/poppler0.61.git] / poppler0.61.spec
1 %define         cairo_ver       1.10.0
2 %define         qt4_ver         4.7.0
3 Summary:        PDF rendering library
4 Summary(pl.UTF-8):      Biblioteka renderująca PDF
5 Name:           poppler0.61
6 Version:        0.61.0
7 Release:        3
8 License:        GPL v2+
9 Group:          Libraries
10 Source0:        https://poppler.freedesktop.org/poppler-%{version}.tar.xz
11 # Source0-md5:  9feff3fb5e2302bb915e9a55da182c57
12 Patch0:         %{name}-gtkdocdir.patch
13 URL:            https://poppler.freedesktop.org/
14 BuildRequires:  QtCore-devel >= %{qt4_ver}
15 BuildRequires:  QtGui-devel >= %{qt4_ver}
16 BuildRequires:  QtTest-devel >= %{qt4_ver}
17 BuildRequires:  QtXml-devel >= %{qt4_ver}
18 BuildRequires:  cairo-devel >= %{cairo_ver}
19 BuildRequires:  cmake >= 3.1.0
20 BuildRequires:  curl-devel
21 BuildRequires:  docbook-dtd412-xml
22 BuildRequires:  fontconfig-devel >= 2.0.0
23 BuildRequires:  freetype-devel >= 2.0
24 BuildRequires:  gettext-tools
25 BuildRequires:  lcms2-devel >= 2
26 BuildRequires:  libjpeg-devel
27 BuildRequires:  libpng-devel
28 BuildRequires:  libstdc++-devel >= 6:4.7
29 BuildRequires:  libtiff-devel
30 BuildRequires:  libxml2-devel >= 2.0
31 BuildRequires:  nss-devel >= 3
32 BuildRequires:  openjpeg2-devel >= 2
33 BuildRequires:  pkgconfig >= 1:0.18
34 # wanted cairo backends
35 BuildRequires:  pkgconfig(cairo-pdf) >= %{cairo_ver}
36 BuildRequires:  pkgconfig(cairo-ps) >= %{cairo_ver}
37 BuildRequires:  pkgconfig(cairo-svg) >= %{cairo_ver}
38 %{?with_qt5:BuildRequires:      qt5-build >= %{qt5_ver}}
39 BuildRequires:  sed >= 4.0
40 BuildRequires:  tar >= 1:1.22
41 BuildRequires:  which
42 BuildRequires:  xz
43 BuildRequires:  zlib-devel
44 Requires:       openjpeg2 >= 2
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 A common PDF rendering library for integrating PDF viewing into
49 desktop applications (based on the xpdf-3.0 code base).
50
51 Minimal compatibility package to support legacy applications which
52 still require Qt4 API.
53
54 %description -l pl.UTF-8
55 Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w
56 aplikacjach desktopowych (oparta na kodzie xpdf-3.0).
57
58 Mały pakiet zapewniający wsparcie dla starszych aplikacji które wciąż
59 wymagają API Qt4.
60
61 %package devel
62 Summary:        Poppler 0.61 header files
63 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Poppler 0.61
64 Group:          Development/Libraries
65 Requires:       %{name} = %{version}-%{release}
66 Requires:       curl-devel
67 Requires:       lcms2-devel >= 2
68 Requires:       libstdc++-devel >= 6:4.7
69 Requires:       nss-devel >= 3
70 Conflicts:      poppler-devel
71
72 %description devel
73 Header files for the Poppler 0.61 library.
74
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe biblioteki Poppler 0.61.
77
78 %package qt4
79 Summary:        Qt4 wrapper for poppler
80 Summary(pl.UTF-8):      Wrapper Qt4 dla popplera
81 Group:          Libraries
82 Requires:       %{name} = %{version}-%{release}
83 Requires:       QtCore >= %{qt4_ver}
84 Requires:       QtGui >= %{qt4_ver}
85 Requires:       QtXml >= %{qt4_ver}
86 Provides:       poppler-Qt = %{version}-%{release}
87 Provides:       poppler-qt4 = %{version}-%{release}
88 Obsoletes:      poppler-Qt < 0.24.4-2
89 Obsoletes:      poppler-qt < 0.18.1
90 Obsoletes:      poppler-qt4 < 0.61.0
91
92 %description qt4
93 Qt4 wrapper for poppler.
94
95 %description qt4 -l pl.UTF-8
96 Wrapper Qt4 dla popplera.
97
98 %package qt4-devel
99 Summary:        Header files for Qt4 wrapper for poppler
100 Summary(pl.UTF-8):      Pliki nagłówkowe wrappera Qt4 dla popplera
101 Group:          Development/Libraries
102 Requires:       %{name}-devel = %{version}-%{release}
103 Requires:       %{name}-qt4 = %{version}-%{release}
104 Requires:       QtCore-devel >= %{qt4_ver}
105 Requires:       QtGui-devel >= %{qt4_ver}
106 Requires:       QtXml-devel >= %{qt4_ver}
107 Provides:       poppler-Qt-devel = %{version}-%{release}
108 Provides:       poppler-qt4-devel = %{version}-%{release}
109 Obsoletes:      poppler-Qt-devel < 0.24.4-2
110 Obsoletes:      poppler-qt-devel < 0.18.1
111 Obsoletes:      poppler-qt4-devel < 0.61.0
112 Obsoletes:      poppler-qt4-static < 0.61.0
113
114 %description qt4-devel
115 Header files for Qt4 wrapper for poppler.
116
117 %description qt4-devel -l pl.UTF-8
118 Pliki nagłówkowe wrapper Qt4 dla popplera.
119
120 %prep
121 %setup -q -n poppler-%{version}
122 %patch0 -p1
123
124 %build
125 install -d build
126 cd build
127 %cmake .. \
128         -DENABLE_GTK_TESTS=OFF \
129         -DENABLE_LIBCURL=ON \
130         -DENABLE_GTK_DOC=OFF \
131         -DWITH_CAIRO=ON \
132         -DENABLE_CPP=OFF \
133         -DENABLE_GLIB=OFF \
134         -DENABLE_QT4=ON \
135         -DENABLE_QT5=OFF \
136         -DENABLE_UTILS=OFF \
137         -DENABLE_XPDF_HEADERS=ON \
138         -DENABLE_ZLIB=ON
139
140 %{__make}
141
142 %install
143 rm -rf $RPM_BUILD_ROOT
144
145 %{__make} -C build install \
146         DESTDIR=$RPM_BUILD_ROOT
147
148 %clean
149 rm -rf $RPM_BUILD_ROOT
150
151 %post   -p /sbin/ldconfig
152 %postun -p /sbin/ldconfig
153
154 %post   qt4 -p /sbin/ldconfig
155 %postun qt4 -p /sbin/ldconfig
156
157 %files
158 %defattr(644,root,root,755)
159 %doc AUTHORS ChangeLog NEWS README*
160 %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.*
161 %attr(755,root,root) %ghost %{_libdir}/libpoppler.so.72
162
163 %files devel
164 %defattr(644,root,root,755)
165 %attr(755,root,root) %{_libdir}/libpoppler.so
166 %dir %{_includedir}/poppler
167 %{_includedir}/poppler/poppler-config.h
168 %{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
169 %{_includedir}/poppler/fofi
170 %{_includedir}/poppler/goo
171 %{_includedir}/poppler/splash
172 %{_pkgconfigdir}/poppler.pc
173 %{_pkgconfigdir}/poppler-cairo.pc
174 %{_pkgconfigdir}/poppler-splash.pc
175
176 %files qt4
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so.*.*.*
179 %attr(755,root,root) %ghost %{_libdir}/libpoppler-qt4.so.4
180
181 %files qt4-devel
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_libdir}/libpoppler-qt4.so
184 %{_includedir}/poppler/qt4
185 %{_pkgconfigdir}/poppler-qt4.pc
This page took 0.245128 seconds and 4 git commands to generate.