Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1571866
 поиск   регистрация   авторизация 
 
Группа :: Графические оболочки/KDE
Пакет: kdegraphics

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define qtdir /usr/lib/qt3

%define unstable 0
%define gphoto 1

%undefine __libtoolize
%add_findprov_lib_path %_libdir/kde3

Name: kdegraphics
Version: 3.3.2
Release: alt3.9.M24

Group: Graphical desktop/KDE
Summary: K Desktop Environment - Graphics
License: GPL
Url: http://www.kde.org/

Requires: %name-kamera = %version-%release
Requires: %name-kcoloredit = %version-%release
Requires: %name-kdvi = %version-%release
Requires: %name-kfax = %version-%release
Requires: %name-kfile = %version-%release
Requires: %name-kgamma = %version-%release
Requires: %name-kghostview = %version-%release
Requires: %name-kiconedit = %version-%release
Requires: %name-kmrml = %version-%release
Requires: %name-kooka = %version-%release
Requires: %name-kolourpaint = %version-%release
Requires: %name-kpdf = %version-%release
Requires: %name-kpovmodeler = %version-%release
Requires: %name-kruler = %version-%release
Requires: %name-ksnapshot = %version-%release
Requires: %name-ksvg = %version-%release
Requires: %name-kuickshow = %version-%release
Requires: %name-kview = %version-%release
Requires: %name-kviewshell = %version-%release
Requires: %name-libkscan = %version-%release

Source: kdegraphics-%version.tar.bz2
#Source: kdegraphics-3.0.98.tar.bz2
Source1: kdegraphics-kghostviewrc
#
Patch0: kdegraphics-3.0-kamera-compile.patch
Patch1: kdegraphics-3.0-kcolorchooser.patch
Patch2: kdegraphics-3.1-gs7.patch
# ALT
Patch100: 3.3-flags.patch

# security

Patch10001: xpdf-3.00pl2.patch
Patch10002: post-3.3.2-kdegraphics-3.diff

# Automatically added by buildreq on Tue Apr 13 2004 (-bi)

#BuildRequires: Mesa XFree86-devel XFree86-libs fontconfig-devel freetype2-devel gcc-c++ gcc-g77 glib2 imlib-devel kde-settings kdelibs-devel libGLU-devel libart_lgpl-devel libarts-devel libgphoto2-devel libieee1284-devel libjpeg-devel liblcms-devel libpng-devel libqt3-devel libsane-devel libstdc++-devel libtiff-devel libungif-devel libusb-devel menu-devel pkgconfig qt3-designer tetex-core xml-utils zlib-devel
BuildRequires: Mesa XFree86-devel XFree86-libs fontconfig-devel freetype2-devel
BuildRequires: gcc-c++ imlib-devel libGLU-devel libart_lgpl-devel
BuildRequires: libarts-devel libieee1284-devel libjpeg-devel
BuildRequires: liblcms-devel libpng-devel libqt3-devel libsane-devel libstdc++-devel
BuildRequires: libtiff-devel libungif-devel libusb-devel menu-devel pkgconfig
BuildRequires: qt3-designer tetex-core xml-utils zlib-devel
BuildRequires: xpdf-common xpdf-utils libfribidi-devel fribidi
BuildRequires: kdelibs-devel-cxx = %__gcc_version_base
BuildRequires: kdelibs > 3.0.0 kdelibs-devel > 3.0.0
%if %gphoto
BuildRequires: libgphoto2 libgphoto2-devel liblockdev-devel
%endif

%description
Graphical tools for the K Desktop Environment.

%package common
Summary: Common empty package for %name
Group: Graphical desktop/KDE
Requires: kde-common >= 3.2
Conflicts: kdegraphics <= 3.0
#
%description common
Common empty package for %name

%package kpdf
Summary: PDF viewer for KDE
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kpdf
A PDF file viewer for KDE.
In addition to being a standalone viewer application,
kpdf acts as a Konqueror plugin.

%package ksvg
Summary: KDE implementation of the SVG
Group: Publishing
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Requires: xpdf-common
#
%description ksvg
KDE implementation of the
Scalable Vector Graphics Specifications.

%package kgamma
Summary: Simple tool for monitor gamma correction
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Provides: kgamma = %version-%release
Obsoletes: kgamma
#
%description kgamma
KGamma allows you to alter the monitor's gamma correction of XFree86.
But that's not all to do. For good results you have to set the
correct brightness, contrast and color balance of your monitor.

%package kamera
Summary: Digital camera support for KDE
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kamera
Kamera adds support for digital cameras to KDE.
After installing kamera, you can access your digital camera just like
a filesystem from KDE applications.

%package kcoloredit
Summary: KDE palette editor and color chooser
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kcoloredit
KDE palette editor and color chooser.
kcoloredit can be used by other programs (and scripts) to pick a color or
edit a palette.

%package kdvi
Summary: KDE DVI (TeX output) file viewer
Group: Publishing
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kdvi
A DVI (TeX output) file viewer for KDE.

%package kfax
Summary: KDE Fax viewer
Group: Communications
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kfax
A KDE viewer for incoming faxes

%package kfile
Summary: KFile module for reading graphical files information
Group: File tools
Requires: %{get_dep kdelibs}
Requires: kdebase-konqueror
Requires: %name-common = %version-%release
Provides: %name-kfile-png = %version-%release
Obsoletes: kdegraphics-kfile-png
#
%description kfile
The KFile plugin allows all applications using KFile (e.g. Konqueror) to view
information on bmp,dvi,gif,ico,jpeg,pcx,pdf,png,pnm,ps,tga,tiff,xbm files.

%package kghostview
Summary: PostScript viewer for KDE
Group: Publishing
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Requires: ghostscript-module-X
#
%description kghostview
A PostScript file viewer for KDE.
In addition to being a standalone viewer application,
kghostview acts as a Konqueror plugin.

%package kiconedit
Summary: An icon editor for creating KDE icons
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kiconedit
An icon editor for creating KDE icons

%package kmrml
Summary: MRML for KDE -- Content based image retrieval
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description 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.

This package consists of an mrml kio-slave that handles
the communication with the MRML server and a KPart to
be embedded e.g. into Konqueror.

%package kooka
Summary: KDE scanner application
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kooka
Kooka is a KDE application for previewing, cutting and receiving images
from a scanner.

%package kolourpaint
Summary: A paint program for KDE
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kolourpaint
A paint program for KDE.

%package kpovmodeler
Summary: A graphical editor for povray scenes for KDE
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Requires: povray
#
%description kpovmodeler
KPovModeler is a graphical editor for povray scenes.

%package kruler
Summary: A screen ruler and color measurement tool
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kruler
A screen ruler and color measurement tool

%package ksnapshot
Summary: A KDE applet for taking snapshots of the desktop
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description ksnapshot
A KDE applet for taking screenshots.
ksnapshot allows both capturing the whole desktop and capturing just
the active window.

%package kuickshow
Summary: Quick picture viewer for KDE
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kuickshow
Kuickshow is a picture viewer for KDE. It displays the directory structure,
displaying images as thumbnails.
Clicking on an image shows the image in its normal size.

%package kview
Summary: KDE Image Viewer
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description kview
KView is a KDE image viewer, supporting a wide range of graphics file formats.

%package kviewshell
Summary: Plugin integration for KView
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
Requires: %name-kview
#
%description kviewshell
KViewShell allows the kview image viewer to be embedded into other KDE
applications.

%package libkscan
Summary: KDE library for scanner support
Group: Graphics
Requires: %{get_dep kdelibs}
Requires: %name-common = %version-%release
#
%description libkscan
KDE library for scanner support.

%package devel
Summary: Include files for kdegraphics
Group: Development/KDE and QT
Requires: %name-common = %version-%release
Requires: %name-ksvg = %version-%release
Requires: %name-kviewshell = %version-%release
Requires: %name-libkscan = %version-%release
#
%description devel
This package contains include files needed to build applications based on kdegraphic.

%prep
%setup -q -n kdegraphics-%version
#%setup -q -n kdegraphics-3.0.98
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
#
%patch100 -p1
# security
pushd kpdf/xpdf
%patch10001 -p0
popd
%patch10002 -p0

subst "s/Wl,--no-undefined/-Wl,--warn-unresolved-symbols/g" admin/acinclude.m4.in
subst "s/\-lkdeui/-lkdeui -lpthread/g" admin/acinclude.m4.in
subst "s/\.la/.so/g" admin/acinclude.m4.in
make -f admin/Makefile.common cvs ||:

%build
rm -rf %buildroot
export QTDIR=%qtdir
export KDEDIR=%prefix

export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH

export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L%buildroot/%_libdir -L%buildroot/%_libdir/kde3 -L%_libdir"

%configure \
%if %unstable
--enable-debug=full \
%else
--disable-debug \
%endif
                   --enable-final \
                   --enable-shared \
                   --disable-static \
   --disable-objprelink \
   --disable-embedded \
   --disable-qtopia \
   --disable-rpath \
   --with-gnu-ld \
   --program-transform-name="" \
   --with-pic \
   --with-xinerama \
%if %gphoto
--with-kamera
%else
   --without-kamera
%endif

%make_build

%install
%if %unstable
%set_strip_method none
%endif

%make_build \
   DESTDIR=%buildroot \
   prefix=%prefix \
   exec_prefix=%prefix \
install
#find %buildroot -type f -name \*.la -exec perl -pi -e "s|%buildroot||g" {} \;

install -d %buildroot/%_datadir/config/
install -m 0644 %SOURCE1 %buildroot/%_datadir/config/kghostviewrc

# Create LMDK menu entries

install -d %Kb_menudir/
export PATH=%_bindir:$PATH

# %%_datadir/applnk/Graphics/

%Kd2m %name-kcoloredit Multimedia/Graphics %Kbmenudir/kcolorchooser.desktop %Kb_menudir/%name-kcolorchooser kde
%Kd2m %name-kcoloredit Multimedia/Graphics %Kbmenudir/kcoloredit.desktop %Kb_menudir/%name-kcoloredit kde
%Kd2m %name-kpovmodeler Multimedia/Graphics %Kbmenudir/kpovmodeler.desktop %Kb_menudir/%name-kpovmodeler
%Kd2m %name-kiconedit Multimedia/Graphics %Kbmenudir/kiconedit.desktop %Kb_menudir/%name-kiconedit
%Kd2m %name-kolourpaint Multimedia/Graphics %Kbmenudir/kolourpaint.desktop %Kb_menudir/%name-kolourpaint
%Kd2m %name-ksnapshot Multimedia/Graphics %Kbmenudir/ksnapshot.desktop %Kb_menudir/%name-ksnapshot kde
%Kd2m %name-kview Multimedia/Graphics %Kbmenudir/kview.desktop %Kb_menudir/%name-kview
%Kd2m %name-kuickshow Multimedia/Graphics %Kbmenudir/kuickshow.desktop %Kb_menudir/%name-kuickshow
%Kd2m %name-kooka Multimedia/Graphics %Kbmenudir/kooka.desktop %Kb_menudir/%name-kooka

%Kd2m %name-kdvi Applications/Publishing %Kbmenudir/kdvi.desktop %Kb_menudir/%name-kdvi
%Kd2m %name-kghostview Applications/Publishing %Kbmenudir/kghostview.desktop %Kb_menudir/%name-kghostview
%Kd2m %name-kpdf Applications/Publishing %Kbmenudir/kpdf.desktop %Kb_menudir/%name-kpdf

%Kd2m %name-kruler Applications/Accessibility %Kbmenudir/kruler.desktop %Kb_menudir/%name-kruler
%Kd2m %name-kfax Applications/Communications %Kbmenudir/kfax.desktop %Kb_menudir/%name-kfax kde
%Kd2m %name-kgamma Configuration/KDE/LookNFeel %Kbmenudir/kgamma.desktop %Kb_menudir/%name-kgamma kde

%if %gphoto
%Kd2m %name-kamera Configuration/KDE/Peripherals %buildroot/%_datadir/applnk/Settings/Peripherals/kamera.desktop %Kb_menudir/%name-kamera kde
%Kd2m %name-kamera Configuration/KDE/System %Kbmenudir/kcmkmrml.desktop %Kb_menudir/%name-kcmkmrml kde
%endif

# David - 2.1-1mdk - kghostview title is "PS/PDF viewer". "PS/" create a new

#                    and non needed submenu. Foolowing command fix that.
perl -pi -e "s|PS/PDF|PS and PDF|" %Kb_menudir/%name-kghostview

%post ksvg
%post_ldconfig
%postun ksvg
%postun_ldconfig

%post kmrml
%post_ldconfig
%update_menus
%postun kmrml
%postun_ldconfig
%clean_menus

%post libkscan
%post_ldconfig
%postun libkscan
%postun_ldconfig

%post kamera
%post_ldconfig
%update_menus
%postun kamera
%postun_ldconfig
%clean_menus

%post kcoloredit
%update_menus
%postun kcoloredit
%clean_menus

%post kdvi
%update_menus
%postun kdvi
%clean_menus

%post kfax
%update_menus
%postun kfax
%clean_menus

%post kghostview
%update_menus
%postun kghostview
%clean_menus

%post kiconedit
%update_menus
%postun kiconedit
%clean_menus

%post kooka
%update_menus
%postun kooka
%clean_menus

%post kolourpaint
%update_menus
%postun kolourpaint
%clean_menus

%post kpovmodeler
%post_ldconfig
%update_menus
%postun kpovmodeler
%postun_ldconfig
%clean_menus

%post kruler
%update_menus
%postun kruler
%clean_menus

%post ksnapshot
%update_menus
%postun ksnapshot
%clean_menus

%post kuickshow
%post_ldconfig
%update_menus
%postun kuickshow
%postun_ldconfig
%clean_menus

%post kview
%post_ldconfig
%update_menus
%postun kview
%postun_ldconfig
%clean_menus

%post kviewshell
%post_ldconfig
%postun kviewshell
%postun_ldconfig


%post kgamma
%update_menus
%postun kgamma
%clean_menus

%post kpdf
%update_menus
%postun kpdf
%clean_menus

%files
%files common

%files ksvg
%_bindir/printnodetest
%_bindir/svgdisplay
%_libdir/kde3/libksvgplugin.*
%_libdir/kde3/libksvgrendererlibart.*
%_libdir/kde3/svgthumbnail.*
%_libdir/libksvg.so*
%_libdir/libtext2path.so*
%_datadir/apps/ksvg
%_datadir/services/ksvglibartcanvas.desktop
%_datadir/services/ksvgplugin.desktop
%_datadir/services/svgthumbnail.desktop
%_datadir/servicetypes/ksvgrenderer.desktop

%files kpdf
%_bindir/kpdf
%_libdir/kde3/libkpdfpart.*
%_datadir/apps/kpdf
%_datadir/apps/kpdfpart
%_datadir/services/kpdf_part.desktop
%_iconsdir/*/*/apps/kpdf.png
%_docdir/HTML/en/kpdf
%Kmenudir/kpdf.desktop
%_menudir/%name-kpdf

%files kgamma
%_bindir/xf86gammacfg
%_libdir/kde3/kcm_kgamma.*
%_datadir/apps/kgamma
%_iconsdir/*/*/apps/kgamma.png
%_docdir/HTML/en/kgamma
%Kmenudir/kgamma.desktop
%_menudir/%name-kgamma

%files kamera
%_libdir/kde3/*kamera*
%_datadir/icons/*/*/*/camera*
%_datadir/services/kamera.protocol
%doc %_docdir/HTML/en/kamera
%_datadir/applnk/Settings/Peripherals/kamera.desktop
%_menudir/%name-kamera

%files kcoloredit
%_bindir/kcoloredit
%_bindir/kcolorchooser
#%_libdir/kcolorchooser*
%_datadir/apps/kcoloredit
%_iconsdir/*/*/apps/kcoloredit.png
%_iconsdir/*/*/apps/kcolorchooser.png
%doc %_docdir/HTML/en/kcoloredit
%Kmenudir/kcoloredit.desktop
%Kmenudir/kcolorchooser.desktop
%_menudir/%name-kcoloredit
%_menudir/%name-kcolorchooser

%files kdvi
%_bindir/kdvi
%_libdir/kde3/kdvipart.*
%Kmenudir/kdvi.desktop
%_datadir/apps/kdvi
%_datadir/icons/*/*/*/kdvi.png
%doc %_docdir/HTML/en/kdvi
%_menudir/%name-kdvi

%files kfax
%_bindir/kfax
%_libdir/kde3/kfaxpart.*
%_datadir/icons/*/*/*/kfax.png
%Kmenudir/kfax.desktop
%_datadir/apps/kfax
%_menudir/%name-kfax

%files kfile
%_libdir/kde3/kfile_*.*
%_datadir/services/kfile_*.*

%files kghostview
%_bindir/kghostview
%_libdir/libkghostviewlib.so*
%_libdir/kde3/libkghostviewpart.*
%_libdir/kde3/gsthumbnail.*
#%config %_datadir/config/kghostviewrc
%_datadir/apps/kghostview
%_datadir/services/gsthumbnail.desktop
%_iconsdir/*/*/*/kghostview.png
%Kmenudir/kghostview.desktop
%doc %_docdir/HTML/en/kghostview
%_menudir/%name-kghostview

%files kiconedit
%_datadir/apps/kiconedit
%_datadir/icons/*/*/*/kiconedit.png
%Kmenudir/kiconedit.desktop
%_bindir/kiconedit
%doc %_docdir/HTML/en/kiconedit
%_menudir/%name-kiconedit

%files kmrml
%_bindir/mrmlsearch
%_libdir/libkdeinit_mrmlsearch.so*
%_libdir/kde3/kcm_kmrml.*
%_libdir/kde3/kded_daemonwatcher.*
%_libdir/kde3/kio_mrml.*
%_libdir/kde3/libkmrmlpart.*
%_libdir/kde3/mrmlsearch.*
%_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
%Kmenudir/kcmkmrml.desktop
%_menudir/%name-kcmkmrml

%files kooka
%_bindir/kooka
#%_datadir/config/kookarc
%_datadir/apps/kooka
%Kmenudir/kooka.desktop
%doc %_docdir/HTML/en/kooka
%_menudir/%name-kooka

%files kolourpaint
%doc kolourpaint/COPYING kolourpaint/NEWS kolourpaint/README kolourpaint/TODO kolourpaint/VERSION
%_bindir/kolourpaint
%_datadir/apps/kolourpaint
%_datadir/icons/*/*/*/kolourpaint.png
%Kmenudir/kolourpaint.desktop
%doc %_docdir/HTML/en/kolourpaint
%_menudir/%name-kolourpaint

%files kpovmodeler
%_bindir/kpovmodeler
%_libdir/libkpovmodeler.so*
%_libdir/kde3/libkpovmodelerpart.*
%_datadir/apps/kpovmodeler
%doc %_docdir/HTML/en/kpovmodeler
%_iconsdir/*/*/*/kpovmodeler.png
%_iconsdir/*/*/*/kpovmodeler_doc.png
%Kmenudir/kpovmodeler.desktop
%_menudir/%name-kpovmodeler

%files kruler
%_datadir/icons/*/*/*/kruler.png
%_datadir/apps/kruler
%_bindir/kruler
%doc %_docdir/HTML/en/kruler
%Kapplnk/Graphics/kruler.desktop
%Kmenudir/kruler.desktop
%_menudir/%name-kruler

%files ksnapshot
%_bindir/ksnapshot
%_datadir/icons/*/*/*/ksnapshot.png
%Kmenudir/ksnapshot.desktop
%doc %_docdir/HTML/en/ksnapshot
%_menudir/%name-ksnapshot

%files kuickshow
%_bindir/kuickshow
%_libdir/libkdeinit_kuickshow.so*
%_libdir/kde3/kuickshow.*
%_datadir/icons/*/*/*/kuickshow.png
%Kmenudir/kuickshow.desktop
%_datadir/apps/kuickshow
%doc %_docdir/HTML/en/kuickshow
%_menudir/%name-kuickshow

%files kview
%_bindir/kview
%_libdir/libkimageviewer.so*
%_libdir/libkdeinit_kview.so*
%_libdir/kde3/kview.*
%_libdir/kde3/kcm_kview*
#%_libdir/libkviewsupport.*
%_libdir/kde3/kviewerpart.*
%_libdir/kde3/kview_*plugin.*
%_libdir/kde3/libkviewcanvas.*
%_libdir/kde3/libkviewviewer.*
%_datadir/apps/kview
%_datadir/apps/kviewviewer
%_datadir/icons/*/*/*/kview.png
%_datadir/services/kviewviewer.desktop
%_datadir/services/kviewcanvas.desktop
%_datadir/services/kconfiguredialog/kview*
%_datadir/servicetypes/kimageviewer.desktop
%_datadir/servicetypes/kimageviewercanvas.desktop
%doc %_docdir/HTML/en/kview
%Kmenudir/kview.desktop
%_menudir/%name-kview

%files kviewshell
%_bindir/kviewshell
%_libdir/libkmultipage*
#%_libdir/libkpagetest*
%_datadir/apps/kviewshell
%_datadir/apps/kviewerpart
%_datadir/icons/*/*/*/kviewshell.png

%files libkscan
%_libdir/libkscan*.*
%_datadir/icons/*/*/*/palette_color.png
%_datadir/icons/*/*/*/palette_gray.png
%_datadir/icons/*/*/*/palette_halftone.png
%_datadir/icons/*/*/*/palette_lineart.png
%_datadir/services/scanservice.desktop

%files devel
%_includedir/*.h
%_includedir/dom/*.h
%_includedir/ksvg/
%_includedir/libtext2path*/

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005