258 lines
7.3 KiB
RPMSpec
258 lines
7.3 KiB
RPMSpec
%define dataversion 0.1
|
|
|
|
Summary: PDF rendering library
|
|
Name: poppler
|
|
Version: 0.5.91
|
|
Release: 2%{?dist}
|
|
License: GPLv2 and Redistributable, no modification permitted
|
|
# the code is GPLv2
|
|
# the charmap data in /usr/share/poppler is redistributable
|
|
Group: Development/Libraries
|
|
URL: http://poppler.freedesktop.org/
|
|
Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.gz
|
|
Source1: http://poppler.freedesktop.org/poppler-data-%{dataversion}.tar.gz
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=12016
|
|
Patch0: debug-spew.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: cairo-devel
|
|
BuildRequires: qt-devel
|
|
|
|
%description
|
|
Poppler, a PDF rendering library, it's a fork of the xpdf PDF
|
|
viewer developed by Derek Noonburg of Glyph and Cog, LLC.
|
|
|
|
%package devel
|
|
Summary: Libraries and headers for poppler
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
Requires: gtk-doc
|
|
|
|
%description devel
|
|
Poppler, a PDF rendering library, it's a fork of the xpdf PDF
|
|
viewer developed by Derek Noonburg of Glyph and Cog, LLC.
|
|
|
|
You should install the poppler-devel package if you would like to
|
|
compile applications based on poppler.
|
|
|
|
%package qt
|
|
Summary: Qt wrapper for poppler
|
|
Group: System Environment/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
%description qt
|
|
%{summary}.
|
|
|
|
%package qt-devel
|
|
Summary: Development files for Qt wrapper
|
|
Group: Development/Libraries
|
|
Requires: %{name}-qt = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: qt-devel
|
|
%description qt-devel
|
|
%{summary}.
|
|
|
|
%package utils
|
|
Summary: Command line utilities for converting PDF files.
|
|
Group: Applications/Text
|
|
Requires: %{name} = %{version}-%{release}
|
|
Conflicts: xpdf <= 1:3.01-8
|
|
# There's an extras package that provides pdftohtml
|
|
|
|
Provides: pdftohtml
|
|
Obsoletes: pdftohtml
|
|
|
|
Provides: xpdf-utils = 1:3.01-27.fc7
|
|
Obsoletes: xpdf-utils <= 1:3.01-26.fc7
|
|
|
|
%description utils
|
|
Poppler, a PDF rendering library, it's a fork of the xpdf PDF
|
|
viewer developed by Derek Noonburg of Glyph and Cog, LLC.
|
|
|
|
This utils package installs a number of command line tools for
|
|
converting PDF files to a number of other formats.
|
|
|
|
%prep
|
|
%setup -c -q -a1
|
|
%patch -p1 -b .debug-spew
|
|
|
|
%build
|
|
( cd %{name}-%{version}
|
|
%configure \
|
|
--disable-static \
|
|
--enable-cairo-output \
|
|
--enable-poppler-qt
|
|
)
|
|
make %{?_smp_mflags} -C %{name}-%{version}
|
|
|
|
pushd poppler-data-%{dataversion}
|
|
cp COPYING COPYING-poppler-data
|
|
cp README README-poppler-data
|
|
popd
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make -C %{name}-%{version} DESTDIR=$RPM_BUILD_ROOT install
|
|
make -C %{name}-data-%{dataversion} \
|
|
DESTDIR=$RPM_BUILD_ROOT datadir=%{_datadir} install
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc %{name}-%{version}/README
|
|
%doc %{name}-%{version}/COPYING
|
|
%doc poppler-data-%{dataversion}/README-poppler-data
|
|
%doc poppler-data-%{dataversion}/COPYING-poppler-data
|
|
%{_libdir}/libpoppler-glib.so.*
|
|
%{_libdir}/libpoppler.so.*
|
|
%{_datadir}/poppler/
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%exclude %{_libdir}/pkgconfig/poppler-qt.pc
|
|
%{_libdir}/pkgconfig/*
|
|
%exclude %{_libdir}/libpoppler-qt.so
|
|
%{_libdir}/lib*.so
|
|
%dir %{_includedir}/poppler/
|
|
%{_includedir}/poppler/glib/
|
|
%{_datadir}/gtk-doc/html/poppler
|
|
|
|
%files qt
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libpoppler-qt.so.*
|
|
|
|
%files qt-devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libpoppler-qt.so
|
|
%{_libdir}/pkgconfig/poppler-qt.pc
|
|
%{_includedir}/poppler/qt3
|
|
|
|
%files utils
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/*
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Wed Aug 15 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.91-2
|
|
- Remove debug spew
|
|
|
|
* Tue Aug 14 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.91-1
|
|
- Update to 0.5.91
|
|
|
|
* Wed Aug 8 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.9-2
|
|
- Update the license field
|
|
|
|
* Mon Jun 18 2007 Matthias Clasen <mclasen@redhat.com> - 0.5.9-1
|
|
- Update to 0.5.9
|
|
|
|
* Thu Mar 1 2007 Bill Nottingham <notting@redhat.com> - 0.5.4-7
|
|
- fix it so the qt pkgconfig/.so aren't in the main poppler-devel
|
|
|
|
* Fri Dec 15 2006 Matthias Clasen <mclasen@redhat.com> - 0.5.4-5
|
|
- Include epoch in the Provides/Obsoletes for xpdf-utils
|
|
|
|
* Wed Dec 13 2006 Matthias Clasen <mclasen@redhat.com> - 0.5.4-4
|
|
- Add Provides/Obsoletes for xpdf-utils (#219033)
|
|
|
|
* Fri Dec 08 2006 Rex Dieter <rexdieter[AT]users.sf.net> - 0.5.4-3
|
|
- drop hard-wired: Req: gtk2
|
|
- --disable-static
|
|
- enable qt wrapper
|
|
- -devel: Requires: pkgconfig
|
|
|
|
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.5.4-2
|
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
|
* Thu Sep 21 2006 Kristian Høgsberg <krh@redhat.com> - 0.5.4-1.fc6
|
|
- Rebase to 0.5.4, drop poppler-0.5.3-libs.patch, fixes #205813,
|
|
#205549, #200613, #172137, #172138, #161293 and more.
|
|
|
|
* Wed Sep 13 2006 Kristian Høgsberg <krh@redhat.com> - 0.5.3-3.fc6
|
|
- Move .so to -devel (#203637).
|
|
|
|
* Mon Aug 14 2006 Matthias Clasen <mclasen@redhat.com> - 0.5.3-2.fc6
|
|
- link against fontconfig (see bug 202256)
|
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.5.3-1.1
|
|
- rebuild
|
|
|
|
* Wed May 31 2006 Kristian Høgsberg <krh@redhat.com> 0.5.3-1
|
|
- Update to 0.5.3.
|
|
|
|
* Mon May 22 2006 Kristian Høgsberg <krh@redhat.com> 0.5.2-1
|
|
- Update to 0.5.2.
|
|
|
|
* Wed Mar 1 2006 Kristian Høgsberg <krh@redhat.com> 0.5.1-2
|
|
- Rebuild the get rid of old soname dependency.
|
|
|
|
* Tue Feb 28 2006 Kristian Høgsberg <krh@redhat.com> 0.5.1-1
|
|
- Update to version 0.5.1.
|
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.5.0-4.2
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.5.0-4.1
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
* Wed Jan 18 2006 Ray Strode <rstrode@redhat.com> - 0.5.0-4
|
|
- change xpdf conflict version to be <= instead of <
|
|
|
|
* Wed Jan 18 2006 Ray Strode <rstrode@redhat.com> - 0.5.0-3
|
|
- update conflicts: xpdf line to be versioned
|
|
|
|
* Wed Jan 11 2006 Kristian Høgsberg <krh@redhat.com> - 0.5.0-2.0
|
|
- Update to 0.5.0 and add poppler-utils subpackage.
|
|
- Flesh out poppler-utils subpackage.
|
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
- rebuilt
|
|
|
|
* Sun Sep 4 2005 Kristian Høgsberg <krh@redhat.com> - 0.4.2-1
|
|
- Update to 0.4.2 and disable splash backend so we don't build it.
|
|
|
|
* Fri Aug 26 2005 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.1-2
|
|
- Rebuild
|
|
|
|
* Fri Aug 26 2005 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.1-1
|
|
- Update to 0.4.1
|
|
|
|
* Wed Aug 17 2005 Kristian Høgsberg <krh@redhat.com> - 0.4.0-2
|
|
- Bump release and rebuild.
|
|
|
|
* Wed Aug 17 2005 Marco Pesenti gritti <mpg@redhat.com> - 0.4.0-1
|
|
- Update to 0.4.0
|
|
|
|
* Mon Aug 15 2005 Kristian Høgsberg <krh@redhat.com> - 0.3.3-2
|
|
- Rebuild to pick up new cairo soname.
|
|
|
|
* Mon Jun 20 2005 Kristian Høgsberg <krh@redhat.com> - 0.3.3-1
|
|
- Update to 0.3.3 and change to build cairo backend.
|
|
|
|
* Sun May 22 2005 Marco Pesenti gritti <mpg@redhat.com> - 0.3.2-1
|
|
- Update to 0.3.2
|
|
|
|
* Sat May 7 2005 Marco Pesenti Gritti <mpg@redhat.com> - 0.3.1
|
|
- Update to 0.3.1
|
|
|
|
* Sat Apr 23 2005 Marco Pesenti Gritti <mpg@redhat.com> - 0.3.0
|
|
- Update to 0.3.0
|
|
|
|
* Wed Apr 13 2005 Florian La Roche <laroche@redhat.com>
|
|
- remove empty post/postun scripts
|
|
|
|
* Wed Apr 6 2005 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1
|
|
- Update to 0.2.0
|
|
|
|
* Sat Mar 12 2005 Marco Pesenti Gritti <mpg@redhat.com> - 0.1.2-1
|
|
- Update to 0.1.2
|
|
- Use tar.gz because there are not bz of poppler
|
|
|
|
* Sat Mar 2 2005 Marco Pesenti Gritti <mpg@redhat.com> - 0.1.1-1
|
|
- Initial build
|