Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > fe52f9fe09be3d201c9e82b90c86e3c4 > files > 3

imgSeek-0.8.4-1mdk.src.rpm

%define name imgSeek
%define version 0.8.4
%define release 1mdk

Summary: Photo collection manager and viewer with content-based query
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
Source0: 	%{name}-%{version}.tar.bz2
Patch0:     imgSeek-0.8.4-sizetype.patch.bz2 
License: 	GPL
Group:		Graphics
BuildRoot: 	%{_tmppath}/%{name}-buildroot
Requires: 	PyQt >= 3.4
Requires: 	python-imaging
Requires: 	libjpeg-progs
BuildRequires:	PyQt
BuildRequires:	python-devel
BuildRequires:	ImageMagick
BuildRequires:	libqt3-devel
Url: 		http://imgseek.sourceforge.net/

%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).

%prep
%setup -q
%patch -p0
%build

env CFLAGS="$RPM_OPT_FLAGS" python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

#icons
install -d -m755 %{buildroot}/{%{_miconsdir},%{_liconsdir}}
install -m644 %{name}.png %{buildroot}/%{_iconsdir}/
install -m644 %{name}.png %{buildroot}/%{_liconsdir}/
convert -resize 16x16 %{name}.png %{buildroot}/%{_miconsdir}/%{name}.png

#menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat <<EOF > $RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}): \
needs="x11" \
section="Multimedia/Graphics" \
title="ImgSeek" \
longtitle="ImgSeek Photo Manager" \
command="%{_bindir}/%{name}" needs="X11" \
icon="%{name}.png"
EOF

%post
%update_menus

%postun
%clean_menus

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%{_menudir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%doc ChangeLog README THANKS AUTHORS

%changelog
* Fri Mar 18 2005 Michael Scherer <misc@mandrake.org> 0.8.4-1mdk
- New release 0.8.4
- fix #13990, with a patch from Carsten Lohrke ( gentoo dev )
- fix rpmlint warning

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.8.3-3mdk
- Rebuild for new  python

* Mon Jul 05 2004 Michael Scherer <misc@mandrake.org> 0.8.3-2mdk 
- rebuild for new gcc

* Tue Apr 13 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.8.3-1mdk
- contributed by  UTUMI Hirosi <utuhiro78@yahoo.co.jp>:
 - new release
 - fix BuildRequires (+libqt3-devel)

* Tue Sep 16 2003 Buchan Milne <bgmilne@linux-mandrake.com> 0.8.2-0.rc1.1mdk
- First mandrake package based on spec in source
- fixes for python-2.3 (p0) from author
- add menu