File imgSeek.spec of Package imgSeek

#
# spec file for package imgSeek (Version 0.8.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           imgSeek
BuildRequires:  ImageMagick libdrm-devel libjpeg-devel python-devel python-imaging python-qt qt3-devel update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Graphics/Viewers
Requires:       PyQt, ImageMagick, python-imaging
AutoReqProv:    on
Version:        0.8.6
Release:        143
Summary:        Photo Collection Manager and Viewer with Content-Based Query
Url:            http://www.imgseek.net/
Source:         %{name}-%{version}.tar.bz2
Patch:          %name.diff
Patch1:         %{name}-uninitialized.patch
Patch2:         %name-gcc43.patch
Patch3:         imgSeek-0.8.6-with-keyword.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
imgSeek is a photo collection manager and viewer with content-based
search and many other features. The query is expressed either as a
rough sketch painted by the user or as another image you supply (or an
image in your collection).



Authors:
--------
    Ricardo Niederberger Cabral <nieder@mail.ru>
    Steffen Neumann <sneumann@TechFak.Uni-Bielefeld.DE>

%prep
%setup -q
%patch
%patch1
%patch2
%patch3
# we want python distutils
rm -rf distutils
# lib64 fix
if [ %{_lib} != lib ] ; then
    sed -i 's/"lib"/"%{_lib}"/' setup.py
fi

%build
export CFLAGS="$RPM_OPT_FLAGS" 
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%suse_update_desktop_file -i %name Graphics Viewer
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
install -m 0644 imgSeek.png $RPM_BUILD_ROOT/usr/share/pixmaps/

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES 
%defattr(-,root,root)
%doc ChangeLog README THANKS AUTHORS COPYING TODO
/usr/share/applications/*
/usr/share/pixmaps/*

%changelog
* Fri Sep 12 2008 matejcik@suse.cz
- renamed "self.with" member, because "with" is now a keyword
* Thu Oct 11 2007 matejcik@suse.cz
- update to 0.8.6
    - apparently a bugfix-only release, no changelog was included
- added missing includes for gcc4.3
* Wed Jan 03 2007 jmatejek@suse.cz
- fixed "uninitialized variable" warning (#231223)
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Nov 27 2005 coolo@suse.de
- respect kdebindings3 split
* Sun Oct 02 2005 stbinner@suse.de
- fixed .desktop patch
* Tue May 10 2005 mcihar@suse.cz
- update to 0.8.5
- still doesn't build due to PyQT
* Mon Feb 21 2005 joe@suse.de
- revert back to using PyQt to be more flexible with packaging the
  bindings
* Thu Dec 23 2004 mcihar@suse.cz
- update to 0.8.4
* Thu Nov 25 2004 adrian@suse.de
- install desktop file
* Tue Sep 21 2004 adrian@suse.de
- use kdebindings3-python instead of PyQt
* Fri May 28 2004 mcihar@suse.cz
- update to 0.8.3
* Fri Jan 30 2004 mcihar@suse.cz
- include more docs
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Mon Sep 29 2003 mcihar@suse.cz
- updated to 0.8.2:
  A bug related to settings and image preview on Python 2.3 was fixed.
  The broken thumbnail generation for non-database images on HTML
  albums was fixed. The code for adding images to the database
  recursively was improved.
* Mon Sep 08 2003 mcihar@suse.cz
- updated to 0.8.1:
    - startup speed improvement (code is byte compiled)
    - many bugfixes
* Mon Aug 11 2003 mcihar@suse.cz
- updated to 0.7.2:
    - HTML album improvements
    - more speed improvements when adding images to database using QT
    - added option (on by default) to create group name automatically
  when adding images. New group name will be current system time.
  Later this could evolve to something better, like the top level
  dir of images to be added, appended with something to make it
  unique.
    - improved IPTC metadata import. Repeated fields should be properly
  imported now
    - show image filesize and dimensions on the bottom label @ preview
  pane
    - misc. bugfixes everywhere
    - full persistency for all kinds of similarity grouping
  (color,date,filename would get lost on 0.7.1)
    - speedup when moving/copying images across groups
    - improved startup time
* Tue Jun 17 2003 mcihar@suse.cz
- no more needded to explicitly list directory
* Mon Jun 16 2003 mcihar@suse.cz
- use record-rpm
* Mon Jun 02 2003 mcihar@suse.cz
- use python distutils instead of the one distributed with imgSeek
- fixed lib64 build
* Mon Jun 02 2003 mcihar@suse.cz
- new package