7fb9a05
7fb9a05
Summary: KDE Photo Album 
7fb9a05
Name:	 kphotoalbum
dae45eb
Version: 3.0 
dae45eb
Release: 1%{?dist}
7fb9a05
7fb9a05
License: GPL
7fb9a05
Group:   Applications/Multimedia 
dae45eb
URL:	 http://kphotoalbum.org/
dae45eb
Source:  http://kphotoalbum.org/download/kphotoalbum-%{version}.tar.bz2
7fb9a05
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7fb9a05
7fb9a05
Obsoletes: kimdaba < %{version}
8544454
#Provides:  kimdaba = %{version}
7fb9a05
7fb9a05
BuildRequires: gettext
7fb9a05
BuildRequires: libkipi-devel 
7fb9a05
BuildRequires: qt-devel
7fb9a05
BuildRequires: kdelibs-devel
dae45eb
BuildRequires: exiv2-devel 
7fb9a05
7fb9a05
## Optional, not strictly required.
7fb9a05
#Requires(hint): kipi-plugins
7fb9a05
7fb9a05
%description
7fb9a05
A photo almbum tool.  focuses on three key points:
7fb9a05
  * It must be easy to describe a number of images at a time. 
7fb9a05
  * It must be easy to search for images. 
7fb9a05
  * It must be easy to browse and View the images.
7fb9a05
7fb9a05
Can (optionally) use kipi-plugins
7fb9a05
7fb9a05
7fb9a05
%prep
7fb9a05
%setup -q -n %{name}-%{version}%{?beta}
7fb9a05
7fb9a05
7fb9a05
%build
7fb9a05
unset QTDIR || : ; . /etc/profile.d/qt.sh
7fb9a05
7fb9a05
%configure \
7fb9a05
  --disable-rpath \
7fb9a05
  --disable-gcc-hidden-visibility \
7fb9a05
  --enable-new-ldflags \
7fb9a05
  --disable-debug --disable-warnings \
7fb9a05
  --disable-dependancy-tracking --disable-final
7fb9a05
7fb9a05
make %{?_smp_mflags}
7fb9a05
7fb9a05
7fb9a05
%install
7fb9a05
rm -rf $RPM_BUILD_ROOT
7fb9a05
7fb9a05
make install DESTDIR=$RPM_BUILD_ROOT
7fb9a05
7fb9a05
## File lists
7fb9a05
# locale's
7fb9a05
%find_lang %{name} || touch %{name}.lang
7fb9a05
# HTML (1.0)
7fb9a05
HTML_DIR=$(kde-config --expandvars --install html)
7fb9a05
if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then
7fb9a05
for lang_dir in $RPM_BUILD_ROOT$HTML_DIR/* ; do
7fb9a05
  if [ -d $lang_dir ]; then
7fb9a05
    lang=$(basename $lang_dir)
7fb9a05
    echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
7fb9a05
    # replace absolute symlinks with relative ones
7fb9a05
    pushd $lang_dir
7fb9a05
      for i in *; do
7fb9a05
        [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
7fb9a05
      done
7fb9a05
    popd
7fb9a05
  fi
7fb9a05
done
7fb9a05
fi
7fb9a05
7fb9a05
7fb9a05
%clean
7fb9a05
rm -rf $RPM_BUILD_ROOT
7fb9a05
7fb9a05
7fb9a05
%post
7fb9a05
touch --no-create %{_datadir}/icons/hicolor ||:
7fb9a05
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
7fb9a05
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
7fb9a05
7fb9a05
%postun
7fb9a05
touch --no-create %{_datadir}/icons/hicolor ||:
7fb9a05
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
7fb9a05
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
7fb9a05
7fb9a05
7fb9a05
%files -f %{name}.lang
7fb9a05
%defattr(-,root,root)
7fb9a05
%doc ChangeLog COPYING README TODO
7fb9a05
%{_bindir}/*
7fb9a05
%{_datadir}/apps/kphotoalbum/
7fb9a05
%{_datadir}/applications/kde/*.desktop
7fb9a05
%config %{_datadir}/config/*rc
7fb9a05
%{_datadir}/icons/hicolor/*/*/*
7fb9a05
%{_datadir}/mimelnk/*/*.desktop
7fb9a05
7fb9a05
7fb9a05
%changelog
dae45eb
* Sun Dec 31 2006 Rex Dieter <rdieter[AT]fedoraproject.org> 3.0-1
dae45eb
- kphotoalbum-3.0
dae45eb
bc39e96
* Tue Nov 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-7
bc39e96
- BR: exiv2-devel >= 0.12
bc39e96
8544454
* Wed Oct 04 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-6
8544454
- respin
8544454
- drop deprecated Provides: kimdaba
8544454
1d2c5bb
* Tue Sep 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-5
1d2c5bb
- BR: exiv2-devel >= 0.11
1d2c5bb
61e91f6
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-4
61e91f6
- fc6 respin
61e91f6
374abee
* Sat Jun 03 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-3
374abee
- respin against exiv2-0.10
374abee
dfec6c7
* Thu May 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-2
dfec6c7
- (temporarily) add Provides: kimdaba = %%version
dfec6c7
7fb9a05
* Tue May 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 2.2-1
7fb9a05
- renamed kphotoalbum
7fb9a05
7fb9a05
* Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
7fb9a05
- fc5: gcc/glibc respin
7fb9a05
7fb9a05
* Thu Nov 10 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-6
7fb9a05
- relative symlinks
7fb9a05
- simplify configure
7fb9a05
7fb9a05
* Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-4
7fb9a05
- --add-category Application
7fb9a05
7fb9a05
* Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-3
7fb9a05
- %%doc: COPYING
7fb9a05
- Req(post,postun): update-desktop-database
7fb9a05
- gtk-update-icon-cache
7fb9a05
- remove unused crud (kde-redhat bits)
7fb9a05
- Group: Applications/Multimedia
7fb9a05
- drop %%{?debug_package} conditionals
7fb9a05
7fb9a05
* Sat Oct 22 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-2
7fb9a05
- icon/mime spec
7fb9a05
7fb9a05
* Tue May 3 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-1
7fb9a05
- real-deal 2.1 release (including -i18n bits)
7fb9a05
7fb9a05
* Mon May 2 2005 Rex Dieter <rexdieter[AT]users.sf.net> 2.1-0
7fb9a05
- 2.1 (pre) release
7fb9a05
7fb9a05
* Mon Nov 15 2004 Rex Dieter <rexdieter[AT]users.sf.net> 2.0-0.fdr.1
7fb9a05
- 2.0
7fb9a05
7fb9a05
* Fri Feb 27 2004 Rex Dieter <rexdieter at sf.net> 0:1.1-0.fdr.0
7fb9a05
- first try
7fb9a05