Changeset 994


Ignore:
Timestamp:
Feb 15, 2017, 11:06:36 AM (8 years ago)
Author:
Silvan Scherrer
Message:

spec: poppler: Release version 0.51.0-1.

Location:
spec/trunk/SPECS
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/poppler.spec

    r918 r994  
    11Summary:        PDF rendering library
    22Name:           poppler
    3 Version:        0.49.0
    4 Release:        2%{?dist}
     3Version:        0.51.0
     4Release:        1%{?dist}
    55License:        (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
    66Group:          Development/Libraries
     7URL:            http://poppler.freedesktop.org/
     8
    79Vendor:         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
    1811
    1912Requires: poppler-data >= 0.4.0
     
    2114BuildRequires: gcc make subversion zip
    2215
     16BuildRequires:  gettext-devel
     17BuildRequires:  libjpeg-devel
     18#BuildRequires:  openjpeg2-devel
     19BuildRequires:  cairo-devel
     20BuildRequires:  lcms2-devel
    2321BuildRequires:  libqt4-devel
     22#BuildRequires: libqt5-devel
     23BuildRequires:  libtiff-devel
     24BuildRequires:  libpng-devel
     25BuildRequires:  nss-devel >= 3.23.0
     26BuildRequires:  freetype-devel >= 2.5.3
     27BuildRequires:  fontconfig-devel >= 2.11.94
     28
    2429BuildRequires:  autoconf
    2530BuildRequires:  automake
     
    2732BuildRequires:  pkgconfig
    2833BuildRequires:  zlib-devel
    29 BuildRequires:  libjpeg-devel
    30 BuildRequires:  libpng-devel
    31 BuildRequires:  libtiff-devel
    32 BuildRequires:  freetype-devel >= 2.5.3
    33 BuildRequires:  fontconfig-devel >= 2.11.94
    34 BuildRequires:  lcms2-devel
    35 BuildRequires:  nss-devel >= 3.23.0
    36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
    3734
    3835%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.
    4137
    4238%package devel
     
    5854
    5955%description qt
    60 Qt4 wrapper for poppler.
     56%{summary}.
    6157
    6258%package qt-devel
     
    7066
    7167%description qt-devel
    72 Header files for Qt4 wrapper for poppler.
     68%{summary}.
    7369
    7470#%package qt5
     
    112108
    113109%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.
     110Command line tools for manipulating PDF files and converting them to
     111other formats.
    119112
    120113%package demos
     
    126119%{summary}.
    127120
     121%legacy_runtime_packages
     122
    128123%debug_package
    129124
    130125%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
    144127
    145128# hammer to nuke rpaths, recheck on new releases
     
    181164rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.la
    182165
    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.dll
    185 
    186166%clean
    187167rm -rf $RPM_BUILD_ROOT
    188168
    189169%files
    190 %defattr(644,root,root,755)
    191 %doc COPYING README
     170%doc README
     171%license COPYING
    192172%attr(755,root,root) %{_libdir}/popple*.dll
    193173
    194174%files devel
    195 %defattr(644,root,root,755)
    196175%attr(755,root,root) %{_libdir}/poppler_dll.a
    197 %attr(755,root,root) %{_libdir}/poppler65_dll.a
     176%attr(755,root,root) %{_libdir}/poppler66_dll.a
    198177%{_libdir}/pkgconfig/poppler.pc
    199178%{_libdir}/pkgconfig/poppler-splash.pc
     179%{_libdir}/pkgconfig/poppler-cairo.pc
    200180%dir %{_includedir}/poppler/
    201181# xpdf headers
     
    206186
    207187%files qt
    208 %defattr(644,root,root,755)
    209188%attr(755,root,root) %{_libdir}/poppq4*.dll
    210189
    211190%files qt-devel
    212 %defattr(644,root,root,755)
    213191%attr(755,root,root) %{_libdir}/poppler-qt4*_dll.a
    214192%{_libdir}/pkgconfig/poppler-qt4.pc
     
    216194
    217195#%files qt5
    218 #%defattr(644,root,root,755)
    219196#%attr(755,root,root) %{_libdir}/poppq5*.dll
    220197
    221198#%files qt5-devel
    222 #%defattr(644,root,root,755)
    223199#%attr(755,root,root) %{_libdir}/poppler-qt5*_dll.a
    224200#%{_libdir}/pkgconfig/poppler-qt5.pc
     
    226202
    227203%files cpp
    228 %defattr(644,root,root,755)
    229204%attr(755,root,root) %{_libdir}/popplc*.dll
    230205
    231206%files cpp-devel
    232 %defattr(644,root,root,755)
    233207%{_libdir}/pkgconfig/poppler-cpp.pc
    234208%attr(755,root,root) %{_libdir}/poppler-cpp*_dll.a
     
    236210
    237211%files utils
    238 %defattr(644,root,root,755)
    239212%{_bindir}/pdf*.exe
    240213%{_bindir}/text2pdf.exe
     
    243216
    244217%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
    245223* Wed Nov 30 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.49.0-2
    246224- add -nostdlib to forwarders, to need less heap
Note: See TracChangeset for help on using the changeset viewer.