Add qt and qt-devel subpackages
This commit is contained in:
parent
1ca6d393af
commit
0910f496a3
78
poppler.spec
78
poppler.spec
@ -3,16 +3,17 @@
|
|||||||
Summary: PDF rendering library
|
Summary: PDF rendering library
|
||||||
Name: poppler
|
Name: poppler
|
||||||
Version: 0.5.4
|
Version: 0.5.4
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source0: %{name}-%{version}.tar.gz
|
URL: http://poppler.freedesktop.org/
|
||||||
Source1: %{name}-data-%{dataversion}.tar.gz
|
Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.gz
|
||||||
|
Source1: http://poppler.freedesktop.org/poppler-data-%{dataversion}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: cairo-devel
|
BuildRequires: cairo-devel
|
||||||
Requires: gtk2
|
BuildRequires: qt-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Poppler, a PDF rendering library, it's a fork of the xpdf PDF
|
Poppler, a PDF rendering library, it's a fork of the xpdf PDF
|
||||||
@ -21,7 +22,8 @@ viewer developed by Derek Noonburg of Glyph and Cog, LLC.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries and headers for poppler
|
Summary: Libraries and headers for poppler
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %name = %{version}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Poppler, a PDF rendering library, it's a fork of the xpdf PDF
|
Poppler, a PDF rendering library, it's a fork of the xpdf PDF
|
||||||
@ -30,10 +32,26 @@ viewer developed by Derek Noonburg of Glyph and Cog, LLC.
|
|||||||
You should install the poppler-devel package if you would like to
|
You should install the poppler-devel package if you would like to
|
||||||
compile applications based on poppler.
|
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
|
%package utils
|
||||||
Summary: Command line utilities for converting PDF files.
|
Summary: Command line utilities for converting PDF files.
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
Requires: %name = %{version}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Conflicts: xpdf <= 1:3.01-8
|
Conflicts: xpdf <= 1:3.01-8
|
||||||
# There's an extras package that provides pdftohtml
|
# There's an extras package that provides pdftohtml
|
||||||
Obsoletes: pdftohtml
|
Obsoletes: pdftohtml
|
||||||
@ -49,17 +67,22 @@ converting PDF files to a number of other formats.
|
|||||||
%setup -c -q -a1
|
%setup -c -q -a1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{name}-%{version}
|
( cd %{name}-%{version}
|
||||||
%configure --enable-cairo-output --disable-splash-output
|
%configure \
|
||||||
make
|
--disable-static \
|
||||||
|
--enable-cairo-output \
|
||||||
|
--enable-poppler-qt
|
||||||
|
)
|
||||||
|
make %{?_smp_mflags} -C %{name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%makeinstall -C %{name}-%{version}
|
make -C %{name}-%{version} DESTDIR=$RPM_BUILD_ROOT install
|
||||||
make -C %{name}-data-%{dataversion} \
|
make -C %{name}-data-%{dataversion} \
|
||||||
DESTDIR=$RPM_BUILD_ROOT datadir=%{_datadir} install
|
DESTDIR=$RPM_BUILD_ROOT datadir=%{_datadir} install
|
||||||
|
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -69,23 +92,42 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc %{name}-%{version}/ChangeLog
|
%doc %{name}-%{version}/ChangeLog
|
||||||
%doc %{name}-%{version}/README
|
%doc %{name}-%{version}/README
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/libpoppler-glib.so.*
|
||||||
%{_datadir}/poppler
|
%{_libdir}/libpoppler.so.*
|
||||||
|
%{_datadir}/poppler/
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
%{_libdir}/lib*.a
|
%dir %{_includedir}/poppler/
|
||||||
%{_includedir}/poppler
|
%{_includedir}/poppler/glib/
|
||||||
%{_datadir}/gtk-doc/html/poppler
|
%{_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/poppler-qt.h
|
||||||
|
%{_includedir}/poppler/poppler-link-qt3.h
|
||||||
|
%{_includedir}/poppler/poppler-page-transition.h
|
||||||
|
|
||||||
%files utils
|
%files utils
|
||||||
%defattr(-, root, root)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* 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
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user