summaryrefslogtreecommitdiffstats
path: root/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec')
-rw-r--r--redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec931
1 files changed, 751 insertions, 180 deletions
diff --git a/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec b/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
index 8e06d25fc..d1e2fc01d 100644
--- a/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
+++ b/redhat/kdegraphics/trinity-kdegraphics-3.5.13.spec
@@ -5,14 +5,15 @@
%endif
# TDE 3.5.13 specific building variables
+%define tde_appdir %{_datadir}/applications/kde
%define tde_docdir %{_docdir}/kde
%define tde_includedir %{_includedir}/kde
%define tde_libdir %{_libdir}/trinity
-Name: trinity-kdegraphics
+Name: trinity-tdegraphics
Version: 3.5.13
-Release: 4%{?dist}%{_variant}
+Release: 5%{?dist}%{_variant}
License: GPL
Summary: Trinity Desktop Environment - Graphics Applications
@@ -43,6 +44,8 @@ Patch4: kdegraphics-3.5.13-kpovmodeler_missing_gl_ldflags.patch
Patch5: kdegraphics-3.5.13-fix_gcc47_compilation.patch
# [kdegraphics] Fix FTBFS due to poppler-tqt
Patch6: kdegraphics-3.5.13-fix_poppler_support.patch
+# [tdegraphics] Fix corrupt image file. [Commit #d655a9f8]
+Patch7: kdegraphics-3.5.13-fix_corrupt_image_file.patch
BuildRequires: cmake >= 2.8
BuildRequires: tqtinterface-devel
@@ -86,65 +89,769 @@ BuildRequires: libGL-devel libGLU-devel libXi-devel
# kuickshow
BuildRequires: imlib-devel
-
BuildRequires: fribidi-devel
-Requires: tqtinterface
-Requires: trinity-arts
-Requires: trinity-kdelibs
-Requires: ghostscript
-Requires: %{name}-libs = %{version}-%{release}
-
-%if "%{_prefix}" == "/usr"
-Provides: kdegraphics3 = %{version}-%{release}
-Conflicts: kdegraphics
-%endif
+#Requires: tqtinterface
+#Requires: trinity-arts
+#Requires: trinity-kdelibs
+
+
+Obsoletes: trinity-kdegraphics < %{version}-%{release}
+Provides: trinity-kdegraphics = %{version}-%{release}
+Obsoletes: trinity-kdegraphics-libs < %{version}-%{release}
+Provides: trinity-kdegraphics-libs = %{version}-%{release}
+Obsoletes: trinity-kdegraphics-extras < %{version}-%{release}
+Provides: trinity-kdegraphics-extras = %{version}-%{release}
+
+
+Requires: trinity-kamera = %{version}-%{release}
+Requires: trinity-kcoloredit = %{version}-%{release}
+Requires: %{name}-kfile-plugins = %{version}-%{release}
+Requires: trinity-kdvi = %{version}-%{release}
+Requires: trinity-kfax = %{version}-%{release}
+Requires: trinity-kfaxview = %{version}-%{release}
+Requires: trinity-kgamma = %{version}-%{release}
+Requires: trinity-kghostview = %{version}-%{release}
+Requires: trinity-kiconedit = %{version}-%{release}
+Requires: trinity-kmrml = %{version}-%{release}
+Requires: trinity-kolourpaint = %{version}-%{release}
+Requires: trinity-kooka = %{version}-%{release}
+Requires: trinity-kpdf = %{version}-%{release}
+Requires: trinity-kpovmodeler = %{version}-%{release}
+Requires: trinity-kruler = %{version}-%{release}
+Requires: trinity-ksnapshot = %{version}-%{release}
+Requires: trinity-ksvg = %{version}-%{release}
+Requires: trinity-kview = %{version}-%{release}
+Requires: trinity-kviewshell = %{version}-%{release}
+Requires: trinity-libkscan = %{version}-%{release}
+Requires: %{name}-libpoppler-tqt = %{version}-%{release}
%description
Graphics applications for the Trinity Desktop Environment, including
* kamera (digital camera support)
* kcoloredit (palette editor and color chooser)
* kdvi (displays TeX .dvi files)
+* kfax
+* kfaxview
* kghostview (displays postscript files)
* kiconedit (icon editor)
* kooka (scanner application)
* kpdf (displays PDF files)
+* kpovmodler
* kruler (screen ruler and color measurement tool)
* ksnapshot (screen capture utility)
* kview (image viewer for GIF, JPEG, TIFF, etc.)
+%files
+
+##########
+
+%package -n trinity-kamera
+Summary: Digital camera io_slave for Konqueror
+Group: Applications/Graphics
+
+%description -n trinity-kamera
+This is a digital camera io_slave for TDE which uses gphoto2 and libgpio
+to allow access to your camera's pictures with the URL camera:/
+
+%post -n trinity-kamera
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%postun -n trinity-kamera
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%files -n trinity-kamera
+%defattr(-,root,root,-)
+%{tde_libdir}/kcm_kamera.la
+%{tde_libdir}/kcm_kamera.so
+%{tde_libdir}/kio_kamera.la
+%{tde_libdir}/kio_kamera.so
+%{tde_appdir}/kamera.desktop
+%{_datadir}/icons/crystalsvg/*/actions/camera_test.png
+%{_datadir}/icons/crystalsvg/*/apps/camera.png
+%{_datadir}/icons/crystalsvg/*/devices/camera.png
+%{_datadir}/icons/crystalsvg/*/filesystems/camera.png
+%{_datadir}/services/camera.protocol
+%{tde_docdir}/HTML/en/kamera/
+
+##########
+
+%package -n trinity-kcoloredit
+Summary: A color palette editor and color picker for TDE
+Group: Applications/Graphics
+
+%description -n trinity-kcoloredit
+This package contains two programs, a color palette editor and also a color
+picker.
+
+%files -n trinity-kcoloredit
+%defattr(-,root,root,-)
+%{_bindir}/kcolorchooser
+%{_bindir}/kcoloredit
+%{tde_appdir}/kcolorchooser.desktop
+%{tde_appdir}/kcoloredit.desktop
+%{_datadir}/apps/kcoloredit/kcoloreditui.rc
+%{_datadir}/icons/hicolor/*/apps/kcolorchooser.png
+%{_datadir}/icons/hicolor/*/apps/kcoloredit.png
+%{tde_docdir}/HTML/en/kcoloredit/
+
+##########
+
+%package kfile-plugins
+Summary: TDE metainfo plugins for graphic files
+Group: Environment/Libraries
+
+%description kfile-plugins
+This packages provides meta information for graphic files (file sizes,
+tags, etc. all from within the file manager).
+
+%files kfile-plugins
+%defattr(-,root,root,-)
+%{tde_libdir}/gsthumbnail.la
+%{tde_libdir}/gsthumbnail.so
+%{tde_libdir}/kfile_bmp.la
+%{tde_libdir}/kfile_bmp.so
+%{tde_libdir}/kfile_dds.la
+%{tde_libdir}/kfile_dds.so
+%{tde_libdir}/kfile_dvi.la
+%{tde_libdir}/kfile_dvi.so
+%{tde_libdir}/kfile_exr.la
+%{tde_libdir}/kfile_exr.so
+%{tde_libdir}/kfile_gif.la
+%{tde_libdir}/kfile_gif.so
+%{tde_libdir}/kfile_ico.la
+%{tde_libdir}/kfile_ico.so
+%{tde_libdir}/kfile_jpeg.la
+%{tde_libdir}/kfile_jpeg.so
+%{tde_libdir}/kfile_pcx.la
+%{tde_libdir}/kfile_pcx.so
+%{tde_libdir}/kfile_pdf.la
+%{tde_libdir}/kfile_pdf.so
+%{tde_libdir}/kfile_png.la
+%{tde_libdir}/kfile_png.so
+%{tde_libdir}/kfile_pnm.la
+%{tde_libdir}/kfile_pnm.so
+%{tde_libdir}/kfile_ps.la
+%{tde_libdir}/kfile_ps.so
+%{tde_libdir}/kfile_raw.la
+%{tde_libdir}/kfile_raw.so
+%{tde_libdir}/kfile_rgb.la
+%{tde_libdir}/kfile_rgb.so
+%{tde_libdir}/kfile_tga.la
+%{tde_libdir}/kfile_tga.so
+%{tde_libdir}/kfile_tiff.la
+%{tde_libdir}/kfile_tiff.so
+%{tde_libdir}/kfile_xbm.la
+%{tde_libdir}/kfile_xbm.so
+%{tde_libdir}/kfile_xpm.la
+%{tde_libdir}/kfile_xpm.so
+%{_datadir}/services/gsthumbnail.desktop
+%{_datadir}/services/kfile_bmp.desktop
+%{_datadir}/services/kfile_dds.desktop
+%{_datadir}/services/kfile_dvi.desktop
+%{_datadir}/services/kfile_exr.desktop
+%{_datadir}/services/kfile_gif.desktop
+%{_datadir}/services/kfile_ico.desktop
+%{_datadir}/services/kfile_jpeg.desktop
+%{_datadir}/services/kfile_pcx.desktop
+%{_datadir}/services/kfile_pdf.desktop
+%{_datadir}/services/kfile_png.desktop
+%{_datadir}/services/kfile_pnm.desktop
+%{_datadir}/services/kfile_ps.desktop
+%{_datadir}/services/kfile_raw.desktop
+%{_datadir}/services/kfile_rgb.desktop
+%{_datadir}/services/kfile_tga.desktop
+%{_datadir}/services/kfile_tiff.desktop
+%{_datadir}/services/kfile_xbm.desktop
+%{_datadir}/services/kfile_xpm.desktop
+
+##########
+
+%package -n trinity-kdvi
+Summary: Dvi viewer for TDE
+Group: Applications/Graphics
+
+%description -n trinity-kdvi
+This program and KPart allow the user to display *.DVI files from TeX.
+
+%files -n trinity-kdvi
+%defattr(-,root,root,-)
+%{_bindir}/kdvi
+%{tde_libdir}/kdvipart.la
+%{tde_libdir}/kdvipart.so
+%{tde_appdir}/kdvi.desktop
+%{_datadir}/apps/kdvi/
+%{_datadir}/config.kcfg/kdvi.kcfg
+%{_datadir}/icons/hicolor/*/apps/kdvi.png
+%{_datadir}/icons/hicolor/scalable/apps/kdvi.svgz
+%{_datadir}/services/kdvimultipage.desktop
+%{tde_docdir}/HTML/en/kdvi/
+
+##########
+
+%package -n trinity-kfax
+Summary: G3/G4 fax viewer for Trinity
+Group: Applications/Graphics
+Requires: libtiff
+
+%description -n trinity-kfax
+A fax viewer for Trinity, supporting the display of raw and tiffed fax images
+(g3, g3-2d, g4).
+
+%files -n trinity-kfax
+%defattr(-,root,root,-)
+%doc rpmdocs/kfax/
+%{_bindir}/kfax
+%{tde_appdir}/kfax.desktop
+%{_datadir}/apps/kfax/
+%{_datadir}/icons/hicolor/??x??/apps/kfax.png
+%{_datadir}/icons/hicolor/scalable/apps/kfax.svgz
+
+##########
+
+%package -n trinity-kfaxview
+Summary: G3/G4 fax viewer for Trinity using kviewshell
+Group: Applications/Graphics
+
+%description -n trinity-kfaxview
+A fax viewer for Trinity, supporting the display of raw and tiffed fax images
+(g3, g3-2d, g4).
+
+This faxviewer uses kviewshell and is intended to replace the standalone
+kfax application once it reproduces all of kfax's features.
+
+%files -n trinity-kfaxview
+%defattr(-,root,root,-)
+%{_bindir}/kfaxview
+%{_libdir}/libkfaximage.so.*
+%{_libdir}/libkfaximage.so
+%{_libdir}/libkfaximage.la
+%{tde_libdir}/kfaxviewpart.*
+%{tde_appdir}/kfaxview.desktop
+%{_datadir}/apps/kfaxview/
+%{_datadir}/icons/hicolor/??x??/apps/kfaxview.png
+%{_datadir}/icons/hicolor/scalable/apps/kfaxview.svgz
+%{_datadir}/services/kfaxmultipage.desktop
+%{_datadir}/services/kfaxmultipage_tiff.desktop
+
+##########
+
+%package -n trinity-kgamma
+Summary: Gamma correction module for the Trinity Control Center
+Group: Applications/Graphics
+
+%description -n trinity-kgamma
+KGamma is a Trinity Control Center module for gamma calibration/correction
+of XFree86. With proper gamma settings, your display (websites, images,
+etc.) will look the same on your monitor as on other monitors.
+
+Homepage: http://kgamma.berlios.de/index2.php
+
+%files -n trinity-kgamma
+%defattr(-,root,root,-)
+%{_bindir}/xf86gammacfg
+%{tde_libdir}/kcm_kgamma.la
+%{tde_libdir}/kcm_kgamma.so
+%{tde_appdir}/kgamma.desktop
+%{_datadir}/apps/kgamma/
+%{_datadir}/icons/hicolor/*/apps/kgamma.png
+%{tde_docdir}/HTML/en/kgamma/
+
+##########
+
+%package -n trinity-kghostview
+Summary: PostScript viewer for Trinity
+Group: Applications/Graphics
+Requires: ghostscript
+
+%description -n trinity-kghostview
+KGhostview is Trinity's PostScript viewer. It is a port of Tim Theisen's
+Ghostview program which is used to view documents prepared in Adobe's
+PostScript page description language. PostScript is the major page
+description language for printing on UNIX systems, and this application is
+useful to preview material intended for printing, or for reading documents
+online.
+
+%files -n trinity-kghostview
+%defattr(-,root,root,-)
+%{_bindir}/kghostview
+%{tde_libdir}/libkghostviewpart.la
+%{tde_libdir}/libkghostviewpart.so
+%{_libdir}/libkghostviewlib.so.*
+%{tde_appdir}/kghostview.desktop
+%{_datadir}/apps/kconf_update/kghostview.upd
+%{_datadir}/apps/kconf_update/update-to-xt-names.pl
+%{_datadir}/apps/kghostview/
+%{_datadir}/config.kcfg/kghostview.kcfg
+%{_datadir}/icons/hicolor/*/apps/kghostview.png
+%{_datadir}/services/kghostview_part.desktop
+%{tde_docdir}/HTML/en/kghostview/
+
+##########
+
+%package -n trinity-kiconedit
+Summary: An icon editor for Trinity
+Group: Applications/Graphics
+
+%description -n trinity-kiconedit
+KIconedit allows you easily to create and edit icons.
+
+%files -n trinity-kiconedit
+%defattr(-,root,root,-)
+%{_bindir}/kiconedit
+%{tde_appdir}/kiconedit.desktop
+%{_datadir}/apps/kiconedit/
+%{_datadir}/icons/hicolor/*/apps/kiconedit.png
+%{tde_docdir}/HTML/en/kiconedit/
+
+##########
+
+%package -n trinity-kmrml
+Summary: A Konqueror plugin for searching pictures
+Group: Applications/Graphics
+
+%description -n trinity-kmrml
+MRML is short for Multimedia Retrieval Markup Language, which defines a
+protocol for querying a server for images based on their content. See
+http://www.mrml.net about MRML and the GNU Image Finding Tool (GIFT), an
+MRML server.
+
+%files -n trinity-kmrml
+%defattr(-,root,root,-)
+%{_bindir}/mrmlsearch
+%{tde_libdir}/kcm_kmrml.la
+%{tde_libdir}/kcm_kmrml.so
+%{tde_libdir}/kded_daemonwatcher.la
+%{tde_libdir}/kded_daemonwatcher.so
+%{tde_libdir}/kio_mrml.la
+%{tde_libdir}/kio_mrml.so
+%{tde_libdir}/libkmrmlpart.la
+%{tde_libdir}/libkmrmlpart.so
+%{tde_libdir}/mrmlsearch.la
+%{tde_libdir}/mrmlsearch.so
+%{_libdir}/lib[kt]deinit_mrmlsearch.so
+%{tde_appdir}/kcmkmrml.desktop
+%{_datadir}/apps/konqueror/servicemenus/mrml-servicemenu.desktop
+%{_datadir}/mimelnk/text/mrml.desktop
+%{_datadir}/services/kded/daemonwatcher.desktop
+%{_datadir}/services/mrml.protocol
+%{_datadir}/services/mrml_part.desktop
+
+##########
+
+%package -n trinity-kolourpaint
+Summary: A simple paint program for Trinity
+Group: Applications/Graphics
+
+%description -n trinity-kolourpaint
+KolourPaint is a very simple paint program for Trinity. It aims to be
+conceptually simple to understand; providing a level of functionality
+targeted towards the average user. It's designed for daily tasks like:
+
+* Painting - drawing diagrams and "finger painting"
+* Image Manipulation - editing screenshots and photos; applying effects
+* Icon Editing - drawing clipart and logos with transparency
+
+It's not an unusable and monolithic program where simple tasks like
+drawing lines become near impossible. Nor is it so simple that it lacks
+essential features like Undo/Redo.
+
+Homepage: http://kolourpaint.sourceforge.net
+
+%files -n trinity-kolourpaint
+%defattr(-,root,root,-)
+%{_bindir}/kolourpaint
+%{tde_appdir}/kolourpaint.desktop
+%{_datadir}/apps/kolourpaint/
+%{_datadir}/icons/hicolor/*/apps/kolourpaint.png
+%{_datadir}/icons/hicolor/scalable/apps/kolourpaint.svgz
+%{tde_docdir}/HTML/en/kolourpaint/
+
+##########
+
+%package -n trinity-kooka
+Summary: Scanner program for Trinity
+Group: Applications/Graphics
+
+%description -n trinity-kooka
+Kooka is an open source GNU/Linux scan program based on SANE and
+KScan library.
+
+Kooka helps you to handle the most important scan parameters, find the
+correct image file format to save and manage your scanned images. It
+offers support for different OCR modules. Libkscan, a autonomous part
+of Kooka, provides a scan service for easy and consistent use to all
+KDE applications.
+
+Install ocrad or gocr if you wish to enable optical character recognition
+in kooka.
+
+Homepage: http://kooka.kde.org/
+
+%files -n trinity-kooka
+%defattr(-,root,root,-)
+%{_datadir}/config/kookarc
+%{_bindir}/kooka
+%{tde_appdir}/kooka.desktop
+%{_datadir}/apps/kooka/
+%{tde_docdir}/HTML/en/kooka/
+
+##########
+
+%package -n trinity-kpdf
+Summary: PDF viewer for Trinity
+Group: Applications/Graphics
+#Recommends: kghostview-trinity (= ${binary:Version})
+
+%description -n trinity-kpdf
+KPDF allows you to view PDF (Portable Document Format) files. This package
+includes kpdfpart so you can embed in konqueror or run as a standalone
+application.
+
+%files -n trinity-kpdf
+%defattr(-,root,root,-)
+%{_bindir}/kpdf
+%{tde_libdir}/libkpdfpart.la
+%{tde_libdir}/libkpdfpart.so
+%{tde_appdir}/kpdf.desktop
+%{_datadir}/apps/kpdf/shell.rc
+%{_datadir}/apps/kpdfpart/part.rc
+%{_datadir}/config.kcfg/kpdf.kcfg
+%{tde_docdir}/HTML/en/kpdf/
+%{_datadir}/icons/hicolor/*/apps/kpdf.png
+%{_datadir}/icons/hicolor/scalable/apps/kpdf.svgz
+%{_datadir}/services/kpdf_part.desktop
+
+##########
+
+%package -n trinity-kpovmodeler
+Summary: A graphical editor for povray scenes
+Group: Applications/Graphics
+#Requires: povray
+
+%description -n trinity-kpovmodeler
+KPovmodeler is KDE's graphical editor for povray scenes. KPovModeler is a
+modeling and composition program for creating POV-Ray scenes in KDE.
+
+For most modelers, POV-Ray is nothing but a rendering engine. This greatly
+limits the innate possibilities of the POV-Ray scripted language. This
+is not the case for KPovModeler, which allows you to use all the features
+of POV-Ray through the translation of POV-Ray language into a graphical
+tree.
+
+kpovmodeler uses the povray package, currently available only in Debian's
+non-free, unsupported repository.
+
+Homepage: http://www.kpovmodeler.org
+
+%files -n trinity-kpovmodeler
+%defattr(-,root,root,-)
+%doc rpmdocs/kpovmodeler/
+%{_bindir}/kpovmodeler
+%{_libdir}/libkpovmodeler.so.*
+%{_libdir}/libkpovmodeler.la
+%{tde_libdir}/libkpovmodelerpart.*
+%{tde_appdir}/kpovmodeler.desktop
+%{_datadir}/apps/kpovmodeler/
+%{_datadir}/icons/crystalsvg/*/mimetypes/kpovmodeler_doc.*
+%{_datadir}/icons/hicolor/*/apps/kpovmodeler.*
+%doc %{tde_docdir}/HTML/en/kpovmodeler/
+
+##########
+
+%package -n trinity-kruler
+Summary: A screen ruler and color measurement tool for Trinity
+Group: Applications/Graphics
+
+%description -n trinity-kruler
+Kruler is a screen ruler (using pixels) and color measurement tool for KDE.
+
+%files -n trinity-kruler
+%defattr(-,root,root,-)
+%{_bindir}/kruler
+%{tde_appdir}/kruler.desktop
+%{_datadir}/applnk/Graphics/kruler.desktop
+%{_datadir}/apps/kruler/
+%{_datadir}/icons/hicolor/*/apps/kruler.png
+%{tde_docdir}/HTML/en/kruler/
+
+##########
+
+%package -n trinity-ksnapshot
+Summary: Screenshot utility for Trinity
+Group: Applications/Graphics
+
+%description -n trinity-ksnapshot
+KSnapshot is a simple applet for taking screenshots. It is capable of
+capturing images of either the whole desktop or just a single window.
+The images can then be saved in a variety of formats.
+
+%files -n trinity-ksnapshot
+%defattr(-,root,root,-)
+%{_bindir}/ksnapshot
+%{tde_appdir}/ksnapshot.desktop
+%{tde_docdir}/HTML/en/ksnapshot/
+%{_datadir}/icons/hicolor/*/apps/ksnapshot.png
+%{_datadir}/icons/hicolor/scalable/apps/ksnapshot.svgz
+
+##########
+
+%package -n trinity-ksvg
+Summary: SVG viewer for Trinity
+Group: Applications/Graphics
+
+%description -n trinity-ksvg
+KSVG allows you view SVG (scalable vector graphics) files. This package
+includes kpart so you can embed it in konqueror and a standalone
+application.
+
+%files -n trinity-ksvg
+%defattr(-,root,root,-)
+%{_bindir}/printnodetest
+%{_bindir}/svgdisplay
+%{tde_libdir}/libksvgplugin.la
+%{tde_libdir}/libksvgplugin.so
+%{tde_libdir}/libksvgrendererlibart.la
+%{tde_libdir}/libksvgrendererlibart.so
+%{tde_libdir}/svgthumbnail.la
+%{tde_libdir}/svgthumbnail.so
+%{_libdir}/libksvg.so.0
+%{_libdir}/libksvg.so.0.0.1
+%{_libdir}/libtext2path.so.0
+%{_libdir}/libtext2path.so.0.0.0
+%{_datadir}/apps/ksvg/ksvgplugin.rc
+%{_datadir}/services/ksvglibartcanvas.desktop
+%{_datadir}/services/ksvgplugin.desktop
+%{_datadir}/services/svgthumbnail.desktop
+%{_datadir}/servicetypes/ksvgrenderer.desktop
+
+##########
+
+%package -n trinity-kview
+Summary: Simple image viewer/converter for Trinity
+Group: Applications/Graphics
+
+%description -n trinity-kview
+KView is a simple image viewer and converter application. It supports
+a number of plugins, which add an array of basic editing capabilities
+as well.
+
+%files -n trinity-kview
+%defattr(-,root,root,-)
+%{_bindir}/kview
+%{tde_libdir}/kcm_kviewcanvasconfig.la
+%{tde_libdir}/kcm_kviewcanvasconfig.so
+%{tde_libdir}/kcm_kviewgeneralconfig.la
+%{tde_libdir}/kcm_kviewgeneralconfig.so
+%{tde_libdir}/kcm_kviewpluginsconfig.la
+%{tde_libdir}/kcm_kviewpluginsconfig.so
+%{tde_libdir}/kcm_kviewpresenterconfig.la
+%{tde_libdir}/kcm_kviewpresenterconfig.so
+%{tde_libdir}/kcm_kviewviewerpluginsconfig.la
+%{tde_libdir}/kcm_kviewviewerpluginsconfig.so
+%{tde_libdir}/kview.la
+%{tde_libdir}/kview.so
+%{tde_libdir}/kview_browserplugin.la
+%{tde_libdir}/kview_browserplugin.so
+%{tde_libdir}/kview_effectsplugin.la
+%{tde_libdir}/kview_effectsplugin.so
+%{tde_libdir}/kview_presenterplugin.la
+%{tde_libdir}/kview_presenterplugin.so
+%{tde_libdir}/kview_scannerplugin.la
+%{tde_libdir}/kview_scannerplugin.so
+%{tde_libdir}/libkviewcanvas.la
+%{tde_libdir}/libkviewcanvas.so
+%{tde_libdir}/libkviewviewer.la
+%{tde_libdir}/libkviewviewer.so
+%{_libdir}/lib[kt]deinit_kview.so
+%{_libdir}/libkimageviewer.so.*
+%{tde_libdir}/libphotobook.la
+%{tde_libdir}/libphotobook.so
+%{tde_appdir}/kview.desktop
+%{_datadir}/apps/kview/
+%{_datadir}/apps/kviewviewer/
+%{_datadir}/apps/photobook/photobookui.rc
+%{_datadir}/icons/crystalsvg/*/apps/photobook.png
+%{_datadir}/icons/hicolor/*/apps/kview.png
+%{_datadir}/services/kconfiguredialog/kviewcanvasconfig.desktop
+%{_datadir}/services/kconfiguredialog/kviewgeneralconfig.desktop
+%{_datadir}/services/kconfiguredialog/kviewpluginsconfig.desktop
+%{_datadir}/services/kconfiguredialog/kviewpresenterconfig.desktop
+%{_datadir}/services/kconfiguredialog/kviewviewerpluginsconfig.desktop
+%{_datadir}/services/kviewcanvas.desktop
+%{_datadir}/services/kviewviewer.desktop
+%{_datadir}/services/photobook.desktop
+%{_datadir}/servicetypes/kimageviewer.desktop
+%{_datadir}/servicetypes/kimageviewercanvas.desktop
+%{tde_docdir}/HTML/en/kview/
+
+##########
+
+%package -n trinity-kviewshell
+Summary: Generic framework for viewer applications in Trinity
+Group: Applications/Graphics
+
+%description -n trinity-kviewshell
+KViewShell is a generic viewing framework that allows the graphical
+applications, such as the kview image viewer, to be embedded in other
+KDE applications, such as Konqueror.
+
+KViewShell comes with a djvuviewpart plugin included, for viewing
+DjVu images.
+
+%files -n trinity-kviewshell
+%defattr(-,root,root,-)
+%{_bindir}/kviewshell
+%{_libdir}/libdjvu.la
+%{_libdir}/libdjvu.so
+%{tde_libdir}/djvuviewpart.so
+%{tde_libdir}/djvuviewpart.la
+%{tde_libdir}/emptymultipagepart.la
+%{tde_libdir}/emptymultipagepart.so
+%{tde_libdir}/kviewerpart.la
+%{tde_libdir}/kviewerpart.so
+%{_libdir}/libkmultipage.so.*
+%{_datadir}/apps/djvumultipage.rc
+%{_datadir}/apps/kviewerpart/
+%{_datadir}/apps/kviewshell/kviewshell.rc
+%{_datadir}/config.kcfg/djvumultipage.kcfg
+%{_datadir}/config.kcfg/kviewshell.kcfg
+%{_datadir}/icons/crystalsvg/*/apps/kviewshell.png
+%{_datadir}/services/emptymultipage.desktop
+%{_datadir}/services/djvumultipage.desktop
+%{_datadir}/servicetypes/kmultipage.desktop
+
+##########
+
+%package -n trinity-libkscan
+Summary: Scanner library for Trinity
+Group: Environment/Libraries
+
+%description -n trinity-libkscan
+KScan is TDE's scanner library. It's used by kooka and by koffice currently.
+It provides an easy-to-use library, which allows you to access your scanner
+(as long as it's sane compatible).
+
+%files -n trinity-libkscan
+%defattr(-,root,root,-)
+%{_libdir}/libkscan.so.*
+%{_datadir}/icons/crystalsvg/16x16/actions/palette_color.png
+%{_datadir}/icons/crystalsvg/16x16/actions/palette_gray.png
+%{_datadir}/icons/crystalsvg/16x16/actions/palette_halftone.png
+%{_datadir}/icons/crystalsvg/16x16/actions/palette_lineart.png
+%{_datadir}/services/scanservice.desktop
+
+##########
+
+%package -n trinity-libkscan-devel
+Summary: Development files for the Trinity scanner library
+Group: Development/Libraries
+
+%description -n trinity-libkscan-devel
+This package contains development files for Trinity's scanner library.
+
+%files -n trinity-libkscan-devel
+%defattr(-,root,root,-)
+%{_libdir}/libkscan.la
+%{_libdir}/libkscan.so
+
+##########
+
+%package libpoppler-tqt
+Summary: TQt support for Poppler
+Group: Environment/Libraries
+
+%description libpoppler-tqt
+TQt support library for Poppler.
+This library is used by the Trinity graphics file plugins for PDF support.
+
+%files libpoppler-tqt
+%defattr(-,root,root,-)
+%{_libdir}/libpoppler-tqt.so.*
+
+##########
+
+%package libpoppler-tqt-devel
+Summary: Development files for TQt support for Poppler
+Group: Development/Libraries
+Requires: %{name}-libpoppler-tqt
+
+%description libpoppler-tqt-devel
+Development files of TQt support library for Poppler.
+This package contains the development files needed to compile applications against poppler-tqt.
+
+%files libpoppler-tqt-devel
+%defattr(-,root,root,-)
+%{tde_includedir}/poppler-link-qt3.h
+%{tde_includedir}/poppler-page-transition.h
+%{tde_includedir}/poppler-qt.h
+%{_libdir}/libpoppler-tqt.la
+%{_libdir}/libpoppler-tqt.so
+#%{_libdir}/pkgconfig/poppler-tqt.pc
+
+##########
+
%package devel
-Summary: Development files for %{name}
-Provides: kdegraphics3-devel = %{version}-%{release}
-Requires: %{name}-libs = %{version}-%{release}
-Group: Development/Libraries
-%description devel
-%{summary}.
+Summary: Development files for %{name}
+Group: Development/Libraries
-## FIXME: move more stuff to -extras
-%package extras
-Summary: Extra applications from %{name}
-Group: Applications/Multimedia
-Requires: %{name}-libs = %{version}-%{release}
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
+Obsoletes: trinity-kdegraphics-devel < %{version}-%{release}
+Provides: trinity-kdegraphics-devel = %{version}-%{release}
-%description extras
-%{summary}, including:
-* kfax
-* kfaxview
-* kpovmodler
+Requires: trinity-libkscan-devel = %{version}-%{release}
+Requires: %{name}-libpoppler-tqt-devel = %{version}-%{release}
-%package libs
-Summary: %{name} runtime libraries
-Group: System Environment/Libraries
-Requires: trinity-kdelibs >= %{version}
-# include to be paranoid, installing libs-only is still mostly untested -- Rex
-Requires: %{name} = %{version}-%{release}
-%description libs
+%description devel
%{summary}.
-
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/dom/
+#%{_includedir}/kfaximage.h
+%{_includedir}/kmultipageInterface.h
+%{_includedir}/ksvg/
+%{_includedir}/kviewshell/
+%{_includedir}/libtext2path-0.1/BezierPath.h
+%{_includedir}/libtext2path-0.1/Glyph.h
+%{_includedir}/libtext2path-0.1/GlyphTracer.h
+%{_libdir}/lib[kt]deinit_kview.la
+%{_libdir}/lib[kt]deinit_mrmlsearch.la
+%{_libdir}/libkghostviewlib.la
+%{_libdir}/libkghostviewlib.so
+%{_libdir}/libkimageviewer.la
+%{_libdir}/libkimageviewer.so
+%{_libdir}/libkmultipage.la
+%{_libdir}/libkmultipage.so
+%{_libdir}/libkpovmodeler.la
+%{_libdir}/libkpovmodeler.so
+%{_libdir}/libksvg.la
+%{_libdir}/libksvg.so
+%{_libdir}/libtext2path.la
+%{_libdir}/libtext2path.so
+%{_datadir}/cmake/*
+
+############
+
+# Excludes kuickshow (built separately)
+%exclude %{_bindir}/kuickshow
+%exclude %{tde_libdir}/kuickshow.la
+%exclude %{tde_libdir}/kuickshow.so
+%exclude %{_libdir}/lib[kt]deinit_kuickshow.la
+%exclude %{_libdir}/lib[kt]deinit_kuickshow.so
+%exclude %{tde_appdir}/kuickshow.desktop
+%exclude %{_datadir}/apps/kuickshow/
+%exclude %{_datadir}/icons/hicolor/*/apps/kuickshow.png
+%exclude %{tde_docdir}/HTML/en/kuickshow/
+
+##########
%prep
%setup -q -n kdegraphics
@@ -157,8 +864,8 @@ Requires: %{name} = %{version}-%{release}
%patch4 -p1
%patch5 -p1 -b .gcc47
%patch6 -p1 -b .poppler
+%patch7 -p1
-# Hardcoded path
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
@@ -223,148 +930,12 @@ rm -f %{buildroot}/libkpovmodeler.so
%__rm -rf %{buildroot}
-%post
-for f in crystalsvg hicolor ; do
- touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
- gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
-done
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
-
-%postun
-for f in crystalsvg hicolor ; do
- touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
- gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
-done
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
-
-%post libs -p /sbin/ldconfig
-
-%postun libs -p /sbin/ldconfig
-
-%post extras
-/sbin/ldconfig ||:
-for f in crystalsvg hicolor ; do
- touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
- gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
-done
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
-
-%postun extras
-/sbin/ldconfig ||:
-for f in crystalsvg hicolor ; do
- touch --no-create %{_datadir}/icons/${f} 2> /dev/null ||:
- gtk-update-icon-cache -q %{_datadir}/icons/${f} 2> /dev/null ||:
-done
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
-
-
-%files extras
-%defattr(-,root,root,-)
-
-# kfax
-%doc rpmdocs/kfax/
-%{_bindir}/kfax
-%{_datadir}/applications/kde/kfax.desktop
-%{_datadir}/apps/kfax/
-%{_datadir}/icons/hicolor/??x??/apps/kfax.png
-%{_datadir}/icons/hicolor/scalable/apps/kfax.svgz
-
-# kfaxview
-%{_bindir}/kfaxview
-%{_libdir}/libkfaximage.so
-%{_libdir}/libkfaximage.la
-%{tde_libdir}/kfaxviewpart.*
-%{_datadir}/applications/kde/kfaxview.desktop
-%{_datadir}/apps/kfaxview/
-%{_datadir}/icons/hicolor/??x??/apps/kfaxview.png
-%{_datadir}/icons/hicolor/scalable/apps/kfaxview.svgz
-%{_datadir}/services/kfaxmultipage.desktop
-%{_datadir}/services/kfaxmultipage_tiff.desktop
-
-# kpovmodeler
-%doc rpmdocs/kpovmodeler/
-%doc %{tde_docdir}/HTML/en/kpovmodeler/
-%{_bindir}/kpovmodeler
-%{_libdir}/libkpovmodeler.so.*
-%{_libdir}/libkpovmodeler.la
-%{tde_libdir}/libkpovmodelerpart.*
-%{_datadir}/applications/kde/kpovmodeler.desktop
-%{_datadir}/apps/kpovmodeler/
-%{_datadir}/icons/crystalsvg/*/mimetypes/kpovmodeler_doc.*
-%{_datadir}/icons/hicolor/*/apps/kpovmodeler.*
-
-%files -f %{name}.lang
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING README
-%doc rpmdocs/*
-
-# kfax
-%exclude %{_bindir}/kfax
-%exclude %{_datadir}/applications/kde/kfax.desktop
-%exclude %{_datadir}/apps/kfax/
-%exclude %{_datadir}/icons/hicolor/*/apps/kfax.*
-
-# kfaxview
-%exclude %{_bindir}/kfaxview
-%exclude %{_libdir}/libkfaximage.so
-%exclude %{_libdir}/libkfaximage.la
-%exclude %{tde_libdir}/kfaxviewpart.*
-%exclude %{_datadir}/applications/kde/kfaxview.desktop
-%exclude %{_datadir}/apps/kfaxview/
-%exclude %{_datadir}/icons/hicolor/*/apps/kfaxview.*
-%exclude %{_datadir}/services/kfaxmultipage.desktop
-%exclude %{_datadir}/services/kfaxmultipage_tiff.desktop
-
-# kpovmodeler
-%exclude %{tde_docdir}/HTML/en/kpovmodeler/
-%exclude %{_bindir}/kpovmodeler
-%exclude %{_libdir}/libkpovmodeler.*
-%exclude %{tde_libdir}/libkpovmodelerpart.*
-%exclude %{_datadir}/applications/kde/kpovmodeler.desktop
-%exclude %{_datadir}/apps/kpovmodeler/
-%exclude %{_datadir}/icons/crystalsvg/*/mimetypes/kpovmodeler_doc.*
-%exclude %{_datadir}/icons/hicolor/*/apps/kpovmodeler.*
-
-%{_bindir}/*
-%{_datadir}/applications/kde/*.desktop
-%{_datadir}/applnk/Graphics/*kruler.desktop
-%{_datadir}/apps/*
-%{_datadir}/icons/crystalsvg/*/*/*
-%{_datadir}/icons/hicolor/*/*/*
-%{_datadir}/config*/*
-%{_datadir}/service*/*
-%{_datadir}/mimelnk/*/*
-%{_libdir}/libkdeinit_*.so
-%{tde_libdir}/*
-
-%files libs
-%defattr(-,root,root,-)
-%exclude %{_libdir}/libkfaximage.la
-%exclude %{_libdir}/libkpovmodeler.la
-%exclude %{_libdir}/libkpovmodeler.so.*
-%{_libdir}/lib*.so.*
-%{_libdir}/lib*.la
-# Why ???
-%{_libdir}/libdjvu.so
-
-%files devel
-%defattr(-,root,root,-)
-%{tde_includedir}/poppler-link-qt3.h
-%{tde_includedir}/poppler-page-transition.h
-%{tde_includedir}/poppler-qt.h
-%{_includedir}/dom/*
-%{_includedir}/ksvg/*
-%{_includedir}/kviewshell/*
-%{_includedir}/libtext2path-0.1/*
-%{_includedir}/kmultipageInterface.h
-%{_datadir}/cmake/*.cmake
-%{_libdir}/lib*.so
-#exclude %{_libdir}/libkpovmodeler.so
-%exclude %{_libdir}/libkfaximage.so
-%exclude %{_libdir}/libkdeinit_*.so
-%exclude %{_libdir}/libdjvu.so
%changelog
+* Mon Jul 09 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-5
+- Renames 'kdegraphics' to 'tdegraphics'
+- Split in several packages
+
* Tue Nov 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-4
- Rebuild with poppler 0.12 for RHEL 5
- Re-adds qt-poppler include files