Пакет digikam: Specfile

%def_enable shared
%def_disable static
%define debug no
%def_with pic
%def_disable rpath
%def_enable warnings
%def_disable profile
%def_enable dependency_tracking
%def_enable pch
%def_enable new_ldflags
%def_disable final
%def_disable closure
%def_disable nmcheck
%def_disable embedded
%def_disable qtopia
%def_disable mac
%def_enable mt
%def_enable threading
%def_enable nfs_hack
%def_with arts
#----------------------------------------------------------------------
%define subst_enable_to() %{expand:%%{?_enable_%{1}:--enable-%{2}}} %{expand:%%{?_disable_%{1}:--disable-%{2}}}

%define Name digiKam
Name: digikam
%define lname lib%name
%define prerel %nil
%define tail %nil
Version: 0.9.3
Release: alt3
Group: Graphics
Summary: A Photo Management Application for KDE
Summary(uk_UA.CP1251): \xcf\xf0\xee\xe3\xf0\xe0\xec\xe0 \xea\xe5\xf0\xf3\xe2\xe0\xed\xed\xff \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xb3\xff\xec\xe8 \xe4\xeb\xff KDE
Summary(ru_RU.CP1251): \xcf\xf0\xee\xe3\xf0\xe0\xec\xec\xe0 \xf3\xef\xf0\xe0\xe2\xeb\xe5\xed\xe8\xff \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xe8\xff\xec\xe8 \xe4\xeb\xff KDE
License: %gpl2plus
URL: http://www.%name.org/
Source: %name-%version%prerel%tail.tar.bz2
Patch: %name-0.9.3-compat.patch
Requires: kdeaddons-konqueror
Requires: %lname = %version-%release

# Automatically added by buildreq on Sat May 12 2007
#BuildRequires: doxygen gcc-c++ graphviz imake kde-i18n-uk kdepim-devel libdnet-devel libgphoto2-devel libjasper-devel libjpeg-devel libkdcraw-devel libkexiv2-devel libkipi-devel liblcms-devel libsqlite3-devel libtiff-devel libXext-devel libXrender-devel libXt-devel qt3-designer qt3-doc-html qtcl xml-utils xorg-cf-files

BuildRequires: doxygen gcc-c++ imake xml-utils
BuildRequires: libgphoto2-devel libjpeg-devel imlib2-devel
BuildRequires: libsqlite3-devel libdnet-devel
BuildRequires: libXext-devel libXrender-devel libXt-devel xorg-cf-files
BuildRequires: autoconf >= 2.5
BuildRequires: automake >= 1.7
BuildRequires: libqt3-devel >= 3.3
BuildRequires: kdelibs-devel >= 3.4
BuildRequires: libkipi-devel >= 0.1
BuildRequires: libtiff-devel >= 3.6
BuildRequires: libpng-devel >= 1.2
BuildRequires: liblcms-devel >= 1.14
BuildRequires: libjasper-devel >= 1.7
BuildRequires: libkexiv2-devel >= 0.1.5
BuildRequires: libkdcraw-devel >= 0.1.2
BuildRequires: desktop-file-utils
BuildRequires: rpm-build-licenses

%description
%Name is an easy to use and powerful digital photo management
application, which makes importing, organizing and manipulating digital
photos a "snap". An easy to use interface is provided to connect to
your digital camera, preview the images and download and/or delete
them.
%Name buildin image editor makes the common photo correction a
simple task. The image editor is extensible via plugins.
%Name can also make use of the KIPI image handling plugins to extend
it's capabilities even further for photo manipulations, import and
export, etc.

%description -l uk_UA.CP1251
%Name - \xef\xf0\xee\xf1\xf2\xe0 \xf3 \xe2\xe8\xea\xee\xf0\xe8\xf1\xf2\xe0\xed\xed\xb3, \xe0\xeb\xe5 \xef\xee\xf2\xf3\xe6\xed\xe0 \xef\xf0\xee\xe3\xf0\xe0\xec\xe0 \xea\xe5\xf0\xf3\xe2\xe0\xed\xed\xff
\xf6\xe8\xf4\xf0\xee\xe2\xe8\xec\xe8 \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xb3\xff\xec\xe8, \xff\xea\xe0 \xf0\xee\xe1\xe8\xf2\xfc  \xb3\xec\xef\xee\xf0\xf2, \xee\xf0\xe3\xe0\xed\xb3\xe7\xe0\xf6\xb3\xfe \xf2\xe0
\xec\xe0\xed\xb3\xef\xf3\xeb\xfe\xe2\xe0\xed\xed\xff \xf6\xe8\xf4\xf0\xee\xe2\xe8\xec\xe8 \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xb3\xff\xec\xe8 "\xec\xe8\xf2\xf2\xba\xe2\xe8\xec". \xcf\xf0\xee\xf1\xf2\xe8\xe9 \xf3 \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0\xf2\xe8 \xef\xeb\xe0\xe3\xb3\xed\xe8 \xef\xb3\xe4\xf2\xf0\xe8\xec\xea\xe8 \xe7\xee\xe1\xf0\xe0\xe6\xe5\xed\xfc KIPI
\xe4\xeb\xff \xf0\xee\xe7\xf8\xe8\xf0\xe5\xed\xed\xff \xf1\xe2\xee\xbf\xf5 \xec\xee\xe6\xeb\xe8\xe2\xee\xf1\xf2\xe5\xe9 \xe2 \xec\xe0\xed\xb3\xef\xf3\xeb\xfe\xe2\xe0\xed\xed\xfb \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xb3\xff\xec\xe8, \xb3\xec\xef\xee\xf0\xf2\xf3
\xf2\xe0 \xe5\xea\xf1\xef\xee\xf0\xf2\xf3, \xf2\xe0 \xb3\xed\xf8\xe5.

%description -l ru_RU.CP1251
%Name - \xef\xf0\xee\xf1\xf2\xe0\xff \xe2 \xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed\xe8\xe8, \xed\xee \xec\xee\xf9\xed\xe0\xff \xef\xf0\xee\xe3\xf0\xe0\xec\xec\xe0 \xf3\xef\xf0\xe0\xe2\xeb\xe5\xed\xe8\xff
\xf6\xe8\xf4\xf0\xee\xe2\xfb\xec\xe8 \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xe8\xff\xec\xe8, \xea\xee\xf2\xee\xf0\xe0\xff \xe4\xe5\xeb\xe0\xe5\xf2 \xe8\xec\xef\xee\xf0\xf2, \xee\xf0\xe3\xe0\xed\xe8\xe7\xe0\xf6\xe8\xfe \xe8
\xec\xe0\xed\xe8\xef\xf3\xeb\xe8\xf0\xee\xe2\xe0\xed\xe8\xe5 \xf6\xe8\xf4\xf0\xee\xe2\xfb\xec\xe8 \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xe8\xff\xec\xe8 "\xec\xe3\xed\xee\xe2\xe5\xed\xed\xfb\xec". \xcf\xf0\xee\xf1\xf2\xee\xe9 \xe2
\xe8\xf1\xef\xee\xeb\x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xe2\xe0\xf2\xfc \xef\xeb\xe0\xe3\xe8\xed\xfb \xef\xee\xe4\xe4\xe5\xf0\xe6\xea\xe8 \xe8\xe7\xee\xe1\xf0\xe0\xe6\xe5\xed\xe8\xe9 KIPI
\xe4\xeb\xff \xf0\xe0\xf1\xf8\xe8\xf0\xe5\xed\xe8\xff \xf1\xe2\xee\xe8\xf5 \xe2\xee\xe7\xec\xee\xe6\xed\xee\xf1\xf2\xe5\xe9 \xe2 \xec\xe0\xed\xe8\xef\xf3\xeb\xe8\xf0\xee\xe2\xe0\xed\xe8\xe8 \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xe8\xff\xec\xe8,
\xe8\xec\xef\xee\xf0\xf2\xe0 \xe8 \xfd\xea\xef\xee\xf0\xf2\xe0, \xe8 \xe4\xf0\xf3\xe3\xee\xe5.


%if_enabled shared
%package -n %lname
Group: System/Libraries
Summary: %Name library
Summary(uk_UA.CP1251): \xc1\xb3\xe1\xeb\xb3\xee\xf2\xe5\xea\xe0 %Name
Summary(ru_RU.CP1251): \xc1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe0 %Name

%description -n %lname
%Name library.
%endif


%package image-plugins
Group: Graphics
Summary: %Name image plugins
Summary(uk_UA.CP1251): \xc2\xf2\xf3\xeb\xea\xe8 \xee\xe1\xf0\xee\xe1\xea\xe8 \xe7\xee\xe1\xf0\xe0\xe6\xe5\xed\xfc \xe4\xeb\xff %Name
Summary(ru_RU.CP1251): \xcf\xeb\xe0\xe3\xe8\xed\xfb \xee\xe1\xf0\xe0\xe1\xee\xf2\xea\xe8 \xe8\xe7\xee\xe1\xf0\xe0\xe6\xe5\xed\xe8\xe9 \xe4\xeb\xff %Name
Requires: %name = %version-%release

%description image-plugins
%Name plugins for additional functionalities in ImageEditor and
Showfoto.


%package -n %lname-devel
Group: Development/KDE and QT
Summary: Development files for %Name
Summary(uk_UA.CP1251): \xd4\xe0\xe9\xeb\xe8 \xf0\xee\xe7\xf0\xee\xe1\xea\xe8 \xe4\xeb\xff %Name
Summary(ru_RU.CP1251): \xd4\xe0\xe9\xeb\xfb \xf0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xea\xe8 \xe4\xeb\xff %Name
Requires: %lname = %version-%release

%description -n %lname-devel
Development files for %Name.

%description -n %lname-devel -l uk_UA.CP1251
\xd4\xe0\xe9\xeb\xe8 \xf0\xee\xe7\xf0\xee\xe1\xea\xe8 \xe4\xeb\xff %Name.

%description -n %lname-devel -l ru_RU.CP1251
\xd4\xe0\xe9\xeb\xfb \xf0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xea\xe8 \xe4\xeb\xff %Name.


%prep
%setup -n %name-%version%prerel%tail
%patch -p1


%build
%undefine __libtoolize
%configure \
    %{subst_enable shared} \
    %{subst_enable static} \
    %{?debug:--enable-debug=%debug} \
    %{subst_with pic} \
    %{subst_enable rpath} \
    %{subst_enable warnings} \
    %{subst_enable profile} \
    %{subst_enable_to dependency_tracking dependency-tracking} \
    %{subst_enable pch} \
    %{subst_enable_to new_ldflags new-ldflags} \
    %{subst_enable final} \
    %{subst_enable closure} \
    %{subst_enable nmcheck} \
    %{subst_enable embedded} \
    %{subst_enable qtopia} \
    %{subst_enable mac} \
    %{subst_enable mt} \
    %{subst_enable threading} \
    %{subst_enable_to nfs_hack nfs-hack} \
    %{subst_enable gcc-hidden-visibility} \
    %{subst_with arts}

%make_build

bzip --best --force --keep ChangeLog


%install
%make DESTDIR=%buildroot install

# menu
iconv -f cp1251 -t utf-8 >> %buildroot/%_desktopdir/kde/%name.desktop <<__MENU__
Comment[uk]=\xca\xe5\xf0\xf3\xe2\xe0\xed\xed\xff \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xb3\xff\xec\xe8 \xe2 KDE
GenericName[uk]=\xca\xe5\xf0\xf3\xe2\xe0\xed\xed\xff \xf4\xee\xf2\xee\xe3\xf0\xe0\xf4\xb3\xff\xec\xe8
__MENU__
iconv -f cp1251 -t utf-8 >> %buildroot/%_desktopdir/kde/showfoto.desktop <<__MENU__
Comment[uk]=\xcf\xe5\xf0\xe5\xe3\xeb\xff\xe4\xe0\xf7 \xf4\xee\xf2\xee %Name
GenericName[uk]=\xcf\xe5\xf0\xe5\xe3\xeb\xff\xe4\xe0\xf7 \xe7\xee\xe1\xf0\xe0\xe6\xe5\xed\xfc
__MENU__

%find_lang --with-kde %name


%post
%update_menus
%update_desktopdb

%postun
%clean_menus
%clean_desktopdb


%if_enabled shared
%post -n %lname -p %post_ldconfig
%postun -n %lname -p %postun_ldconfig
%endif


%files -f %name.lang
%doc AUTHORS ChangeLog.* NEWS README TODO
%_bindir/*
%_libdir/kde3/kio_%{name}*.so
%dir %_datadir/apps/%name
%_datadir/apps/%name/about
%_datadir/apps/%name/data
%_datadir/apps/%name/icons
%_datadir/apps/%name/profiles
%_datadir/apps/%name/themes
%_datadir/apps/%name/utils
%_datadir/apps/%name/%name-splash.png
%_datadir/apps/%name/%{name}imagewindowui.rc
%_datadir/apps/%name/%{name}ui.rc
%_datadir/apps/%name/lighttablewindowui.rc
%_datadir/apps/%name/tips
%_datadir/apps/showfoto
%_datadir/apps/konqueror/servicemenus/*
%_datadir/services/%{name}*.protocol
%_iconsdir/*/*/apps/*
%_desktopdir/kde/*
%_man1dir/*


%if_enabled shared
%files -n %lname
%_libdir/%lname.so.*
%endif


%files image-plugins
%_libdir/kde3/%{name}imageplugin_*.so
%_datadir/services/%{name}imageplugin_*.desktop
%_datadir/servicetypes/*
%_datadir/apps/%name/%{name}imageplugin_*_ui.rc


%files -n %lname-devel
%doc HACKING
%_libdir/%lname.so
%_includedir/*


%changelog
* Fri Apr 04 2008 Led <led@altlinux.ru> 0.9.3-alt3
- fixed License
- fixes desktop-mime-entry

* Sat Mar 15 2008 Led <led@altlinux.ru> 0.9.3-alt2
- added %name-0.9.3-compat.patch
- rebuild with new libkdcraw and libgphoto

* Sat Dec 22 2007 Led <led@altlinux.ru> 0.9.3-alt1
- 0.9.3 release

* Wed Dec 19 2007 Led <led@altlinux.ru> 0.9.3-alt0.4
- 0.9.3-rc1

* Sat Dec 08 2007 Led <led@altlinux.ru> 0.9.3-alt0.3
- 0.9.3-beta3

* Tue Nov 06 2007 Led <led@altlinux.ru> 0.9.3-alt0.2
- 0.9.3-beta2
- removed %name-0.9.3-beta1-po.patch

* Thu Oct 11 2007 Led <led@altlinux.ru> 0.9.3-alt0.1
- 0.9.3-beta1
- added %name-0.9.3-beta1-po.patch

* Sat Sep 22 2007 Led <led@altlinux.ru> 0.9.2-alt2
- rebuild with new libkdcraw.so.2 and libkexiv2.so.3

* Thu Jun 14 2007 Led <led@altlinux.ru> 0.9.2-alt1
- 0.9.2 release

* Mon Jun 04 2007 Led <led@altlinux.ru> 0.9.2-alt0.2
- 0.9.2-beta3
- cleaned up %%files

* Sat May 12 2007 Led <led@altlinux.ru> 0.9.2-alt0.1
- 0.9.2-beta1
- removed %name-0.9.0-include.patch
- updated BuildRequires
- cleaned up spec
- added %name-image-plugins subpackage
- renamed subpackage %name-devel to %lname-devel
- fixed %%description

* Mon May 07 2007 Led <led@altlinux.ru> 0.9.1-alt2
- rebuild with libkexiv2.so.0.2.0

* Wed Mar 07 2007 Led <led@altlinux.ru> 0.9.1-alt1
- 0.9.1
- updated BuildRequires

* Wed Dec 20 2006 Led <led@altlinux.ru> 0.9.0-alt1
- fixed %name-0.9.0-include.patch

* Mon Dec 18 2006 Led <led@altlinux.ru> 0.9.0-alt0.1
- 0.9.0
- removed %name-0.8.0-kgamma.patch (fixed in upstream)
- added %name-0.9.0-include.patch

* Thu Nov 23 2006 Led <led@altlinux.ru> 0.8.2-alt0.1
- 0.8.2
- cleaned up spec
- removed separate uk translation (in upstream now)

* Thu Mar 16 2006 Led <led@altlinux.ru> 0.8.1-alt1
- 0.8.1
- added uk translation
- fix %name.desktop
- update %%description

* Thu Dec 29 2005 Sergey V Turchin <zerg at altlinux dot org> 0.8.0-alt1
- new version

* Wed Aug 17 2005 Sergey V Turchin <zerg at altlinux dot org> 0.7.3-alt1
- new version

* Fri Jan 21 2005 Sergey V Turchin <zerg at altlinux dot org> 0.7.1-alt1
- new version

* Tue Dec 07 2004 Sergey V Turchin <zerg at altlinux dot org> 0.7-alt1
- new version

* Tue Jul 06 2004 Sergey V Turchin <zerg at altlinux dot org> 0.6.2-alt1
- new version

* Wed May 12 2004 Sergey V Turchin <zerg at altlinux dot org> 0.6.1-alt1
- new version

* Mon Mar 22 2004 Sergey V Turchin <zerg at altlinux dot org> 0.6-alt1
- new version

* Tue Sep 16 2003 Sergey V Turchin <zerg at altlinux dot org> 0.5.1-alt4
- rebuild with new libexif

* Thu Apr 03 2003 Sergey V Turchin <zerg@altlinux.ru> 0.5.1-alt3
- rebuild with new libexif

* Thu Oct 24 2002 Sergey V Turchin <zerg@altlinux.ru> 0.5.1-alt2
- rebuild with new gphoto2 && KDE3.1

* Thu Sep 12 2002 Sergey V Turchin <zerg@altlinux.ru> 0.5.1-alt1
- build for ALT

* Fri Aug 23 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5-4mdk
- from Xavier Granier <xavier.granier@laposte.net> :
	- Move menu to Multimedia/Graphics
	- add BuildRequires:            libexif7-devel

* Tue Jul 23 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5-3mdk
- add in-spec-menu

* Tue Jul 23 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5-2mdk
- adjust buildrequires

* Wed Jul 17 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5-1mdk
- from Gilles CAULIER <caulier.gilles@free.fr> :
	- Update release 0.5.0 : KDE3 port. Update spec file.

* Fri Jul 12 2002 Gilles CAULIER <caulier.gilles@free.fr> 0.4.1-2mdk
- Fix some bugs on 'spec' file

* Mon Jul 08 2002 Gilles CAULIER <caulier.gilles@free.fr> 0.4.1-1mdk
- Original release