Changeset 994
- Timestamp:
- Feb 15, 2017, 11:06:36 AM (8 years ago)
- Location:
- spec/trunk/SPECS
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/poppler.spec
r918 r994 1 1 Summary: PDF rendering library 2 2 Name: poppler 3 Version: 0. 49.04 Release: 2%{?dist}3 Version: 0.51.0 4 Release: 1%{?dist} 5 5 License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT 6 6 Group: Development/Libraries 7 URL: http://poppler.freedesktop.org/ 8 7 9 Vendor: bww bitwise works GmbH 8 # Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.xz 9 URL: http://poppler.freedesktop.org/ 10 #define svn_url e:/trees/poppler/trunk 11 %define svn_url http://svn.netlabs.org/repos/ports/poppler/trunk 12 %define svn_rev 1827 13 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 15 16 # DEF files to create forwarders for the legacy package 17 Source10: poppler63.def 10 %scm_source svn http://svn.netlabs.org/repos/ports/poppler/trunk 2020 18 11 19 12 Requires: poppler-data >= 0.4.0 … … 21 14 BuildRequires: gcc make subversion zip 22 15 16 BuildRequires: gettext-devel 17 BuildRequires: libjpeg-devel 18 #BuildRequires: openjpeg2-devel 19 BuildRequires: cairo-devel 20 BuildRequires: lcms2-devel 23 21 BuildRequires: libqt4-devel 22 #BuildRequires: libqt5-devel 23 BuildRequires: libtiff-devel 24 BuildRequires: libpng-devel 25 BuildRequires: nss-devel >= 3.23.0 26 BuildRequires: freetype-devel >= 2.5.3 27 BuildRequires: fontconfig-devel >= 2.11.94 28 24 29 BuildRequires: autoconf 25 30 BuildRequires: automake … … 27 32 BuildRequires: pkgconfig 28 33 BuildRequires: zlib-devel 29 BuildRequires: libjpeg-devel30 BuildRequires: libpng-devel31 BuildRequires: libtiff-devel32 BuildRequires: freetype-devel >= 2.5.333 BuildRequires: fontconfig-devel >= 2.11.9434 BuildRequires: lcms2-devel35 BuildRequires: nss-devel >= 3.23.036 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)37 34 38 35 %description 39 Poppler, a PDF rendering library, is a fork of the xpdf PDF 40 viewer developed by Derek Noonburg of Glyph and Cog, LLC. 36 %{name} is a PDF rendering library. 41 37 42 38 %package devel … … 58 54 59 55 %description qt 60 Qt4 wrapper for poppler.56 %{summary}. 61 57 62 58 %package qt-devel … … 70 66 71 67 %description qt-devel 72 Header files for Qt4 wrapper for poppler.68 %{summary}. 73 69 74 70 #%package qt5 … … 112 108 113 109 %description utils 114 Poppler, a PDF rendering library, is a fork of the xpdf PDF 115 viewer developed by Derek Noonburg of Glyph and Cog, LLC. 116 117 This utils package installs a number of command line tools for 118 converting PDF files to a number of other formats. 110 Command line tools for manipulating PDF files and converting them to 111 other formats. 119 112 120 113 %package demos … … 126 119 %{summary}. 127 120 121 %legacy_runtime_packages 122 128 123 %debug_package 129 124 130 125 %prep 131 %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} 132 %setup -q 133 %else 134 %setup -n "%{name}-%{version}" -Tc 135 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 136 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 137 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 138 %endif 139 140 # Prepare forwarder DLLs. 141 for m in %{SOURCE10}; do 142 cp ${m} . 143 done 126 %scm_setup 144 127 145 128 # hammer to nuke rpaths, recheck on new releases … … 181 164 rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.la 182 165 183 # Generate & install forwarder DLLs.184 gcc -Zomf -Zdll -nostdlib poppler63.def -l$RPM_BUILD_ROOT/%{_libdir}/popple65.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/popple63.dll185 186 166 %clean 187 167 rm -rf $RPM_BUILD_ROOT 188 168 189 169 %files 190 %d efattr(644,root,root,755)191 % doc COPYING README170 %doc README 171 %license COPYING 192 172 %attr(755,root,root) %{_libdir}/popple*.dll 193 173 194 174 %files devel 195 %defattr(644,root,root,755)196 175 %attr(755,root,root) %{_libdir}/poppler_dll.a 197 %attr(755,root,root) %{_libdir}/poppler6 5_dll.a176 %attr(755,root,root) %{_libdir}/poppler66_dll.a 198 177 %{_libdir}/pkgconfig/poppler.pc 199 178 %{_libdir}/pkgconfig/poppler-splash.pc 179 %{_libdir}/pkgconfig/poppler-cairo.pc 200 180 %dir %{_includedir}/poppler/ 201 181 # xpdf headers … … 206 186 207 187 %files qt 208 %defattr(644,root,root,755)209 188 %attr(755,root,root) %{_libdir}/poppq4*.dll 210 189 211 190 %files qt-devel 212 %defattr(644,root,root,755)213 191 %attr(755,root,root) %{_libdir}/poppler-qt4*_dll.a 214 192 %{_libdir}/pkgconfig/poppler-qt4.pc … … 216 194 217 195 #%files qt5 218 #%defattr(644,root,root,755)219 196 #%attr(755,root,root) %{_libdir}/poppq5*.dll 220 197 221 198 #%files qt5-devel 222 #%defattr(644,root,root,755)223 199 #%attr(755,root,root) %{_libdir}/poppler-qt5*_dll.a 224 200 #%{_libdir}/pkgconfig/poppler-qt5.pc … … 226 202 227 203 %files cpp 228 %defattr(644,root,root,755)229 204 %attr(755,root,root) %{_libdir}/popplc*.dll 230 205 231 206 %files cpp-devel 232 %defattr(644,root,root,755)233 207 %{_libdir}/pkgconfig/poppler-cpp.pc 234 208 %attr(755,root,root) %{_libdir}/poppler-cpp*_dll.a … … 236 210 237 211 %files utils 238 %defattr(644,root,root,755)239 212 %{_bindir}/pdf*.exe 240 213 %{_bindir}/text2pdf.exe … … 243 216 244 217 %changelog 218 * Tue Feb 14 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.51.0-1 219 - remove forwarders and use the legacy_runtime_package macro instead 220 - adjust spec to scm_ macros usage 221 - update to vendor version 0.51.0 222 245 223 * Wed Nov 30 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.49.0-2 246 224 - add -nostdlib to forwarders, to need less heap
Note:
See TracChangeset
for help on using the changeset viewer.