Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 8d2ee1b0fe3c19340cc5e4ad7cbc6220 > files > 5

sketch-0.6.12-4mdk.src.rpm

%define pyimgversion 1.1.2

Name:		sketch
Summary:	Drawing tool
Version:	0.6.12
Release:	4mdk

Source0:	http://download.sourceforge.net/sketch/%{name}-%{version}.tar.bz2
# Fixme 
# We do have this in cooker but it needs stuff in libImaging and 
# The RPM from cooker does not have it.
Source1:	http://www.pythonware.com/downloads/Imaging-%pyimgversion.tar.bz2
Source2:	sketch.menu.bz2
Patch0: 	sketch-0.6.10-tcltkincludepath.patch.bz2

Group:		Graphics
BuildRequires:	XFree86-devel tcl tix tk python-devel >= 2.0
License:	GPL
BuildRoot:	%_tmppath/%name-%version-%release-root
Requires:	python-imaging tkinter
URL:		http://sketch.sourceforge.net/

%description
Drawing tool written in Python, using Bezier curves. Need to install tkinter.

%prep

%setup -q -n %{name}-%{version} -a 1  
%patch0 -p0 -b .tkincpath

%build
./setup.py configure --imaging-include="$RPM_BUILD_DIR/%{name}-%{version}/Imaging-%pyimgversion/libImaging" --with-nls
./setup.py build

%install
rm -fr %buildroot

./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}

# (fg) Install program is shitty to say the least, we have to substitute all
# occurences of RPM_BUILD_{ROOT,DIR} to void :(
# Geoff says that the following is too disgusting to watch and harmful
# for your health.

set +x
(
  cd $RPM_BUILD_ROOT

  for i in `find -type f`; do
    perl -pi -e "s|$RPM_BUILD_ROOT||" $i;
    perl -pi -e "s|$RPM_BUILD_DIR||" $i;
  done
)
set -x

# Now correct all the bugs the install script introduces:
cp Sketch/Modules/*so $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/Sketch/Modules
cp Filter/*so Pax/*so $RPM_BUILD_ROOT%{_libdir}/%{name}-%{version}/Lib/

#install menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_menudir}/sketch

%find_lang %name

%post
%update_menus

%postun
%clean_menus

%clean
rm -fr %buildroot

%files -f %name.lang
%defattr(-,root,root,0755)
%doc Doc/* 
%{_libdir}/%{name}-%{version}
%{_bindir}/*
%{_menudir}/sketch

%changelog
* Thu Jan 10 2002 David BAUDENs <baudens@mandrakesoft.com> 0.6.12-4mdk
- Fix %%post

* Wed Jan 09 2002 David BAUDENs <baudens@mandrakesoft.com> 0.6.12-3mdk
- Fix menu entry (png icon)

* Tue Sep 11 2001 David BAUDENS <baudens@mandrakesoft.com> 0.6.12-2mdk
- Use standard icons
- Clean after build

* Sun Jul 08 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.6.12-1mdk
- Bump up to 0.6.12 the newest and shiniest source.

* Mon Jun 18 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.6.11-2mdk
- new office menu structure

* Tue Jun 12 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.6.11-1mdk
- New and shiny 0.6.11.
- Use Python Imaging 1.1.2 (crack open Source RPM for some more info).
- Make fg's loop perl replacement silent aka set -x.

* Sat May 12 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.6.10-1mdk
- New and shiny 0.6.10.
- Update Python Imaging to 1.0.
- Compile with NLS.
- Patch0 to fix directory not found /usr/include/{tcl,tk}8.3.

* Wed Apr 11 2001 Frederic Crozat <fcrozat@mandrakesoft.com> 0.6.9-2mdk
- Correct GNOME menu entry

* Wed Mar  7 2001 DindinX <flepied@mandrakesoft.com> 0.6.9-1mdk
- 0.6.9
- removed patch for python 2.0 compilation (fixed in 0.6.9)

* Sat Nov 25 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.6.8-3mdk
- added patch for python 2.0 compilation.

* Fri Oct 06 2000 DindinX <odin@mandrakesoft.com> 0.6.8-2mdk
- fix 32x32 and 48x48 icons

* Sun Aug 13 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.6.8-1mdk
- s|0.6.7|0.6.8|.
- rebuild with new tcltk libs
- fix a FIXME: add url for source

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.6.7-3mdk
- automatically added BuildRequires

* Tue Aug 01 2000 Geoffrey Lee <snailtalk@mandrakesot.com> 0.6.7-2mdk
- macrosifications
- rebuild for the new tcltk 8.3
- rebuild for the BM

* Mon Jun 19 2000 DindinX <odin@mandrakesoft.com> 0.6.7-1mdk
- 0.6.7

* Fri Apr 28 2000 DindinX <odin@mandrakesoft.com> 0.6.5-4mdk
- Added 32x32 and 48x48 icons

* Fri Apr 28 2000 DindinX <odin@mandrakesoft.com> 0.6.5-3mdk
- remove menu icon path

* Tue Apr 11 2000 DindinX <odin@mandrakesoft.com> 0.6.5-2mdk
- Added nice Hélène's menu icon

* Thu Mar 30 2000 DindinX <odin@mandrakesoft.com> 0.6.5-1mdk
- New version
- Added menu entry

* Fri Mar 24 2000 DindinX <odin@mandrakesoft.com> 0.6.3-6mdk
- Many fixes to the spec file...
  The install script is _really_ broken

* Tue Jan 18 2000 Francis Galiegue <francis@mandrakesoft.com>
- Major spec file fixes
- Made it work

* Mon Jan 10 2000 Lenny Cartier <lenny@mandrakesoft.com>
- build for oxygen

* Wed Dec 29 1999 Lenny Cartier <lenny@mandrakesoft.com>
- only add the URL tag

* Tue Dec 28 1999 Lenny Cartier <lenny@mandrakesoft.com>
- fix pyhton-imaging requires (thanks Fred)

* Mon Dec 27 1999 Lenny Cartier <lenny@mandrakesoft.com>
- first specfile for sketch
- new in contribs
- little trick to make it compile