%define stamps_ver 2003.12.23 Summary: Tux Paint - A simple drawing program for children Summary(pl): Tux Paint - Prosty program do rysowania dla dzieci Name: tuxpaint Version: 0.9.13 Release: 3 Epoch: 1 License: GPL Group: X11/Applications/Graphics Source0: http://dl.sourceforge.net/tuxpaint/%{name}-%{version}.tar.gz # Source0-md5: 580ed290af35c34a33f2206f7f36e489 Source1: http://dl.sourceforge.net/tuxpaint/%{name}-stamps-%{stamps_ver}.tar.gz # Source1-md5: 701fb126d9956ed113935bb0e1016a59 Source2: %{name}.desktop Patch0: %{name}-Makefile.patch Patch1: %{name}-opt.patch Patch2: %{name}-vfolders.patch URL: http://www.newbreedsoftware.com/tuxpaint/ BuildRequires: SDL_image-devel >= 1.2.2 BuildRequires: SDL_mixer-devel >= 1.2.4 BuildRequires: SDL_ttf-devel >= 2.0.5 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/X11 %description Tux Paint is a simple drawing program for young children (3-10 years old). It is not meant as a general-purpose drawing tool. It is meant to be fun and easy to use. Sound effects and a cartoon character help let the user know what's going on, and keeps them entertained. There are also extra-large cartoon-style mouse pointer shapes. %description -l pl Tux Paint jest prostym programem rysunkowym dla dzieci (3-10 lat). Nie ma on być narzędziem służącym ogólnemu celowi nauki rysowania, lecz programem łatwym w użyciu, służącym zabawie. Efekty dźwiękowe i komiksowy charakter pomagają użytkownikowi w łatwym poruszaniu się po programie, czyniąc go rozrywkowym. W programie jest także duży wskaźnik myszki oraz przyciski utrzymane w stylu komiksowym. %package stamps Summary: Tux Paint - Collection of "rubber stamp" images Summary(pl): Tux Paint - Kolekcja obrazów z "gumowej pieczątki" Group: X11/Applications/Graphics Requires: %{name} = %{epoch}:%{version}-%{release} %description stamps This is a collection of "rubber stamp" images for Tux Paint. %description stamps -l pl Jest to kolekcja obrazów dla Tux Painta zwana "gumowa pieczątka". %prep %setup -q -a 1 %patch0 -p0 #%patch1 -p1 %patch2 -p1 # They already have desktop file. Why don't we just patch it? #install %{SOURCE2} src %build %{__make} \ CC="%{__cc}" \ PREFIX=%{_prefix}/ \ CONFDIR=%{_sysconfdir}/ \ DATA_PREFIX=%{_datadir}/tuxpaint/ \ DOC_PREFIX=%{_datadir}/doc/ \ ICON_PREFIX=%{_pixmapsdir}/ \ X11_ICON_PREFIX=%{_pixmapsdir}/ \ LOCALE_PREFIX=%{_datadir}/locale \ OPTFLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/%{name},%{_pixmapsdir},%{_desktopdir},%{_datadir}/%{name}/stamps} %{__make} install \ _prefix=$RPM_BUILD_ROOT%{_prefix}/ \ CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir}/ \ MAN_PREFIX=$RPM_BUILD_ROOT%{_mandir}/ \ GNOME_PREFIX=$RPM_BUILD_ROOT%{_prefix}/ \ KDE_PREFIX=$RPM_BUILD_ROOT%{_desktopdir}/ \ X11_ICON_PREFIX=$RPM_BUILD_ROOT%{_pixmapsdir}/ install src/tuxpaint.conf $RPM_BUILD_ROOT%{_sysconfdir} install data/images/icon48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/tuxpaint.png %{__make} -C %{name}-stamps-%{stamps_ver} install \ DATA_PREFIX=$RPM_BUILD_ROOT%{_datadir}/%{name}/ chmod -R a+rwx $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/usr/share/{doc/tuxpaint,gnome/apps,tuxpaint/CVS} #rm a lot of unwanted files and directories: find docs/ -type d|grep CVS|xargs rm -rf find docs/ -name "[KC]OP*" -exec rm -f "{}" ";" find docs/ -name "INS*" -exec rm -f "{}" ";" find docs/ -name "AUT*" -exec rm -f "{}" ";" find docs/ -size -50c -type f -exec rm -f "{}" ";" find docs/ -empty |xargs rm -rf %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc docs/* %attr(755,root,root) %{_bindir}/* %{_mandir}/man?/* %lang(pl) %{_mandir}/pl/man?/* %{_sysconfdir}/tuxpaint.conf %dir %{_datadir}/%{name} %{_datadir}/%{name}/brushes %{_datadir}/%{name}/fonts %{_datadir}/%{name}/images %{_datadir}/%{name}/sounds %{_desktopdir}/* %{_pixmapsdir}/* %files stamps %defattr(644,root,root,755) %{_datadir}/%{name}/stamps