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