| 1 | Summary: PDF rendering library
|
|---|
| 2 | Name: poppler
|
|---|
| 3 | Version: 0.31.0
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | # Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.xz
|
|---|
| 8 | URL: http://poppler.freedesktop.org/
|
|---|
| 9 | #define svn_url e:/trees/poppler/trunk
|
|---|
| 10 | %define svn_url http://svn.netlabs.org/repos/ports/poppler/trunk
|
|---|
| 11 | %define svn_rev 1022
|
|---|
| 12 |
|
|---|
| 13 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 14 |
|
|---|
| 15 | Requires: poppler-data >= 0.4.0
|
|---|
| 16 | BuildRequires: gcc make subversion zip
|
|---|
| 17 |
|
|---|
| 18 | BuildRequires: libqt4-devel
|
|---|
| 19 | BuildRequires: autoconf
|
|---|
| 20 | BuildRequires: automake
|
|---|
| 21 | BuildRequires: libtool
|
|---|
| 22 | BuildRequires: pkgconfig
|
|---|
| 23 | BuildRequires: zlib-devel
|
|---|
| 24 | BuildRequires: libjpeg-devel
|
|---|
| 25 | BuildRequires: libpng-devel
|
|---|
| 26 | BuildRequires: libtiff-devel
|
|---|
| 27 | BuildRequires: freetype-devel >= 2.5.3
|
|---|
| 28 | BuildRequires: fontconfig-devel >= 2.8.0
|
|---|
| 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
|---|
| 30 |
|
|---|
| 31 | %description
|
|---|
| 32 | Poppler, a PDF rendering library, is a fork of the xpdf PDF
|
|---|
| 33 | viewer developed by Derek Noonburg of Glyph and Cog, LLC.
|
|---|
| 34 |
|
|---|
| 35 | %package devel
|
|---|
| 36 | Summary: Libraries and headers for poppler
|
|---|
| 37 | Group: Development/Libraries
|
|---|
| 38 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 39 |
|
|---|
| 40 | %description devel
|
|---|
| 41 | You should install the poppler-devel package if you would like to
|
|---|
| 42 | compile applications based on poppler.
|
|---|
| 43 |
|
|---|
| 44 | %package qt
|
|---|
| 45 | Summary: Qt4 wrapper for poppler
|
|---|
| 46 | Group: System Environment/Libraries
|
|---|
| 47 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 48 | %{?_qt4:Requires: qt4%{?_isa} >= %{_qt4_version}}
|
|---|
| 49 | Obsoletes: poppler-qt4 < 0.16.0-3
|
|---|
| 50 | Provides: poppler-qt4 = %{version}-%{release}
|
|---|
| 51 |
|
|---|
| 52 | %description qt
|
|---|
| 53 | Qt4 wrapper for poppler.
|
|---|
| 54 |
|
|---|
| 55 | %package qt-devel
|
|---|
| 56 | Summary: Development files for Qt4 wrapper
|
|---|
| 57 | Group: Development/Libraries
|
|---|
| 58 | Requires: %{name}-qt%{?_isa} = %{version}-%{release}
|
|---|
| 59 | Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|---|
| 60 | Obsoletes: poppler-qt4-devel < 0.16.0-3
|
|---|
| 61 | Provides: poppler-qt4-devel = %{version}-%{release}
|
|---|
| 62 | Requires: qt4-devel-kit
|
|---|
| 63 |
|
|---|
| 64 | %description qt-devel
|
|---|
| 65 | Header files for Qt4 wrapper for poppler.
|
|---|
| 66 |
|
|---|
| 67 | #%package qt5
|
|---|
| 68 | #Summary: Qt5 wrapper for poppler
|
|---|
| 69 | #Group: System Environment/Libraries
|
|---|
| 70 | #Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 71 | #%{?_qt5:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
|
|---|
| 72 | #%description qt5
|
|---|
| 73 | #%{summary}.
|
|---|
| 74 |
|
|---|
| 75 | #%package qt5-devel
|
|---|
| 76 | #Summary: Development files for Qt5 wrapper
|
|---|
| 77 | #Group: Development/Libraries
|
|---|
| 78 | #Requires: %{name}-qt5%{?_isa} = %{version}-%{release}
|
|---|
| 79 | #Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|---|
| 80 | #Requires: qt5-qtbase-devel
|
|---|
| 81 | #%description qt5-devel
|
|---|
| 82 | #%{summary}.
|
|---|
| 83 |
|
|---|
| 84 | %package cpp
|
|---|
| 85 | Summary: Pure C++ wrapper for poppler
|
|---|
| 86 | Group: Development/Libraries
|
|---|
| 87 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 88 |
|
|---|
| 89 | %description cpp
|
|---|
| 90 | %{summary}.
|
|---|
| 91 |
|
|---|
| 92 | %package cpp-devel
|
|---|
| 93 | Summary: Development files for C++ wrapper
|
|---|
| 94 | Group: Development/Libraries
|
|---|
| 95 | Requires: %{name}-cpp%{?_isa} = %{version}-%{release}
|
|---|
| 96 | Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|---|
| 97 |
|
|---|
| 98 | %description cpp-devel
|
|---|
| 99 | %{summary}.
|
|---|
| 100 |
|
|---|
| 101 | %package utils
|
|---|
| 102 | Summary: Command line utilities for converting PDF files
|
|---|
| 103 | Group: Applications/Text
|
|---|
| 104 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 105 |
|
|---|
| 106 | %description utils
|
|---|
| 107 | Poppler, a PDF rendering library, is a fork of the xpdf PDF
|
|---|
| 108 | viewer developed by Derek Noonburg of Glyph and Cog, LLC.
|
|---|
| 109 |
|
|---|
| 110 | This utils package installs a number of command line tools for
|
|---|
| 111 | converting PDF files to a number of other formats.
|
|---|
| 112 |
|
|---|
| 113 | %package demos
|
|---|
| 114 | Summary: Demos for poppler
|
|---|
| 115 | Group: Applications/Text
|
|---|
| 116 | Requires: %{name}-glib%{?_isa} = %{version}-%{release}
|
|---|
| 117 |
|
|---|
| 118 | %description demos
|
|---|
| 119 | %{summary}.
|
|---|
| 120 |
|
|---|
| 121 | %package debug
|
|---|
| 122 | Summary: HLL debug data for exception handling support
|
|---|
| 123 |
|
|---|
| 124 | %description debug
|
|---|
| 125 | %{summary}.
|
|---|
| 126 |
|
|---|
| 127 | %prep
|
|---|
| 128 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
|
|---|
| 129 | %setup -q
|
|---|
| 130 | %else
|
|---|
| 131 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 132 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 133 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 134 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 135 | %endif
|
|---|
| 136 |
|
|---|
| 137 | # hammer to nuke rpaths, recheck on new releases
|
|---|
| 138 | autoreconf -f -i
|
|---|
| 139 |
|
|---|
| 140 | %build
|
|---|
| 141 |
|
|---|
| 142 | # these defines needs to go, as soon as we have a pkg-conf for qt
|
|---|
| 143 | POPPLER_QT4_CFLAGS='-D__OS2__'
|
|---|
| 144 | POPPLER_QT4_LIBS='-lQtCore4 -lQtGui4 -lQtNetwork4 -lQtXml4'
|
|---|
| 145 | POPPLER_QT4_TEST_CFLAGS=$POPPLER_QT4_CFLAGS
|
|---|
| 146 | POPPLER_QT4_TEST_LIBS=$POPPLER_QT4_LIBS
|
|---|
| 147 | LDFLAGS='-Zomf -Zhigh-mem'
|
|---|
| 148 |
|
|---|
| 149 | export LDFLAGS
|
|---|
| 150 | export POPPLER_QT4_CFLAGS
|
|---|
| 151 | export POPPLER_QT4_LIBS
|
|---|
| 152 | export POPPLER_QT4_TEST_CFLAGS
|
|---|
| 153 | export POPPLER_QT4_TEST_LIBS
|
|---|
| 154 |
|
|---|
| 155 | %configure \
|
|---|
| 156 | --enable-poppler-qt4=yes --enable-zlib=yes \
|
|---|
| 157 | --enable-libopenjpeg=none \
|
|---|
| 158 | --enable-shared --disable-static \
|
|---|
| 159 | --enable-xpdf-headers
|
|---|
| 160 |
|
|---|
| 161 | %{__make} %{?_smp_mflags}
|
|---|
| 162 |
|
|---|
| 163 | %install
|
|---|
| 164 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 165 |
|
|---|
| 166 | %{__make} install \
|
|---|
| 167 | DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 168 |
|
|---|
| 169 | rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|---|
| 170 |
|
|---|
| 171 | %clean
|
|---|
| 172 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 173 |
|
|---|
| 174 | %files
|
|---|
| 175 | %defattr(644,root,root,755)
|
|---|
| 176 | %doc COPYING README
|
|---|
| 177 | %attr(755,root,root) %{_libdir}/popple*.dll
|
|---|
| 178 |
|
|---|
| 179 | %files devel
|
|---|
| 180 | %defattr(644,root,root,755)
|
|---|
| 181 | %attr(755,root,root) %{_libdir}/poppler_dll.a
|
|---|
| 182 | %attr(755,root,root) %{_libdir}/poppler50_dll.a
|
|---|
| 183 | %{_libdir}/pkgconfig/poppler.pc
|
|---|
| 184 | %{_libdir}/pkgconfig/poppler-splash.pc
|
|---|
| 185 | %dir %{_includedir}/poppler/
|
|---|
| 186 | # xpdf headers
|
|---|
| 187 | %{_includedir}/poppler/*.h
|
|---|
| 188 | %{_includedir}/poppler/fofi/
|
|---|
| 189 | %{_includedir}/poppler/goo/
|
|---|
| 190 | %{_includedir}/poppler/splash/
|
|---|
| 191 |
|
|---|
| 192 | %files qt
|
|---|
| 193 | %defattr(644,root,root,755)
|
|---|
| 194 | %attr(755,root,root) %{_libdir}/poppq4*.dll
|
|---|
| 195 |
|
|---|
| 196 | %files qt-devel
|
|---|
| 197 | %defattr(644,root,root,755)
|
|---|
| 198 | %attr(755,root,root) %{_libdir}/poppler-qt4*_dll.a
|
|---|
| 199 | %{_libdir}/pkgconfig/poppler-qt4.pc
|
|---|
| 200 | %{_includedir}/poppler/qt4/
|
|---|
| 201 |
|
|---|
| 202 | #%files qt5
|
|---|
| 203 | #%defattr(644,root,root,755)
|
|---|
| 204 | #%attr(755,root,root) %{_libdir}/poppq5*.dll
|
|---|
| 205 |
|
|---|
| 206 | #%files qt5-devel
|
|---|
| 207 | #%defattr(644,root,root,755)
|
|---|
| 208 | #%attr(755,root,root) %{_libdir}/poppler-qt5*_dll.a
|
|---|
| 209 | #%{_libdir}/pkgconfig/poppler-qt5.pc
|
|---|
| 210 | #%{_includedir}/poppler/qt5/
|
|---|
| 211 |
|
|---|
| 212 | %files cpp
|
|---|
| 213 | %defattr(644,root,root,755)
|
|---|
| 214 | %attr(755,root,root) %{_libdir}/popplc*.dll
|
|---|
| 215 |
|
|---|
| 216 | %files cpp-devel
|
|---|
| 217 | %defattr(644,root,root,755)
|
|---|
| 218 | %{_libdir}/pkgconfig/poppler-cpp.pc
|
|---|
| 219 | %attr(755,root,root) %{_libdir}/poppler-cpp*_dll.a
|
|---|
| 220 | %{_includedir}/poppler/cpp
|
|---|
| 221 |
|
|---|
| 222 | %files utils
|
|---|
| 223 | %defattr(644,root,root,755)
|
|---|
| 224 | %{_bindir}/pdf*.exe
|
|---|
| 225 | %{_mandir}/man1/*
|
|---|
| 226 |
|
|---|
| 227 | %files debug
|
|---|
| 228 | %defattr(-,root,root)
|
|---|
| 229 | %{_bindir}/*.dbg
|
|---|
| 230 | %{_libdir}/*.dbg
|
|---|
| 231 |
|
|---|
| 232 | %changelog
|
|---|
| 233 | * Wed Feb 11 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.31.0-1
|
|---|
| 234 | - updated poppler to 0.31.0
|
|---|
| 235 | - added .dbg files
|
|---|
| 236 |
|
|---|
| 237 | * Mon Dec 15 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.29.0
|
|---|
| 238 | - updated poppler to 0.29.0
|
|---|
| 239 | - added poppler-data as requirement
|
|---|
| 240 |
|
|---|
| 241 | * Mon Oct 9 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.26.5-3
|
|---|
| 242 | - fixed opening of files bin vs text due to bogous ifdef
|
|---|
| 243 |
|
|---|
| 244 | * Mon Oct 6 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.26.5-2
|
|---|
| 245 | - rebuilt with new libtool, which gave new dll names
|
|---|
| 246 |
|
|---|
| 247 | * Tue Sep 30 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.26.5-1
|
|---|
| 248 | - update poppler to 0.26.5
|
|---|
| 249 | - added cpp part
|
|---|
| 250 | - added qt5 part as comment
|
|---|
| 251 |
|
|---|
| 252 | * Fri Sep 26 2014 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.26.0
|
|---|
| 253 | - first rpm version
|
|---|