cvsextras badb0b8
Name:           tuxpaint
5573399
Version:        0.9.21
db70b5f
Release:        8%{?dist}
791b261
cvsextras 6312017
Epoch:          1
e87be69
Summary:        Drawing program designed for young children
cvsextras badb0b8
cvsextras badb0b8
Group:          Applications/Multimedia
624b8bc
License:        GPLv2+
25189c6
URL:            http://www.tuxpaint.org/
e102954
Source0:        http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
70cec3a
Patch0:         tuxpaint-utf8.patch
5573399
Patch1:         tuxpaint-0.9.21-fix-desktop-file.patch
1861542
Patch2:         tuxpaint-0.9.21-link.patch
1861542
Patch3:         tuxpaint-0.9.21-makej.patch
1861542
Patch4:         tuxpaint-0.9.21-memset.patch
db70b5f
Patch5:         tuxpaint-0.9.21-png15.patch
1861542
cvsextras badb0b8
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsextras badb0b8
3ead36b
BuildRequires:  SDL-devel >= 1.2.4
3ead36b
BuildRequires:  SDL_image-devel
3ead36b
BuildRequires:  SDL_mixer-devel
3ead36b
BuildRequires:  SDL_ttf-devel
eb887c3
BuildRequires:  SDL_Pango-devel
3ead36b
BuildRequires:  desktop-file-utils
3ead36b
BuildRequires:  freetype-devel >= 2.0
3ead36b
BuildRequires:  gettext
3ead36b
BuildRequires:  libpaper-devel
3ead36b
BuildRequires:  libpng-devel
3ead36b
BuildRequires:  librsvg2-devel
3ead36b
BuildRequires:  netpbm-devel
b709705
BuildRequires:	fribidi-devel
e102954
e102954
# This should guarantee the proper permissions on
e102954
# all of the /usr/share/icons/hicolor/* directories.
28a8db0
Requires:       hicolor-icon-theme
cvsextras badb0b8
cvsextras badb0b8
%description
e87be69
"Tux Paint" is a free drawing program designed for young children
e87be69
(kids ages 3 and up). It has a simple, easy-to-use interface,
cvsextras badb0b8
fun sound effects, and a cartoon mascot who helps you along.
cvsextras badb0b8
eb887c3
%package devel
eb887c3
Summary:	Development files for tuxpaint extensions/plugins
eb887c3
Group:		Development/Libraries
eb887c3
Requires:	%{name} = %{epoch}:%{version}-%{release}
eb887c3
eb887c3
%description devel
eb887c3
Development files for tuxpaint extensions/plugins
eb887c3
cvsextras badb0b8
%prep
cvsextras badb0b8
%setup -q
70cec3a
%patch0 -p1
5573399
%patch1 -p0 -b .fixdesktopfile
1861542
%patch2 -p1 -b .link
1861542
%patch3 -p1 -b .makej
1861542
%patch4 -p1 -b .memset
db70b5f
%patch5 -p1 -b .png15
cvsextras badb0b8
e102954
sed -i -e '/\/gnome\/apps\/Graphics/d' Makefile
70cec3a
find docs -type f -exec perl -pi -e 's/\r\n/\n/' {} \;
70cec3a
find docs -type f -perm +100 -exec chmod a-x {} \;
e102954
eb887c3
make PREFIX=/usr MAGIC_PREFIX=%{_libdir}/tuxpaint/plugins tp-magic-config
eb887c3
cvsextras badb0b8
%build
a00b0b3
make %{?_smp_mflags} \
a00b0b3
    PREFIX=/usr \
eb887c3
    CFLAGS="$RPM_OPT_FLAGS" \
eb887c3
    MAGIC_PREFIX=%{_libdir}/tuxpaint/plugins
cvsextras badb0b8
cvsextras badb0b8
%install
cvsextras badb0b8
rm -rf $RPM_BUILD_ROOT
cvsextras badb0b8
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cvsextras badb0b8
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
7122407
make install PKG_ROOT=$RPM_BUILD_ROOT PREFIX=%{_usr} \
e102954
    X11_ICON_PREFIX=$RPM_BUILD_ROOT%{_datadir}/pixmaps/ \
e102954
    GNOME_PREFIX=/usr \
e102954
    KDE_PREFIX="" \
eb887c3
    KDE_ICON_PREFIX=/usr/share/icons \
eb887c3
    MAGIC_PREFIX=$RPM_BUILD_ROOT%{_libdir}/tuxpaint/plugins
cvsextras badb0b8
find $RPM_BUILD_ROOT -type d|xargs chmod 0755
cvsextras badb0b8
%find_lang %{name}
cvsextras badb0b8
cvsextras badb0b8
desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
70cec3a
    --vendor fedora \
70cec3a
    --add-category KidsGame \
eb887c3
    --delete-original \
eb887c3
    $RPM_BUILD_ROOT%{_datadir}/applications/tuxpaint.desktop
cvsextras 6312017
e102954
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
cvsextras badb0b8
cvsextras badb0b8
%clean
cvsextras badb0b8
rm -rf $RPM_BUILD_ROOT
cvsextras badb0b8
cvsextras badb0b8
%files -f %{name}.lang
cvsextras badb0b8
%defattr(-,root,root,-)
cvsextras badb0b8
%dir %{_sysconfdir}/%{name}
cvsextras badb0b8
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
e102954
%doc docs
cvsextras badb0b8
%{_bindir}/*
cvsextras badb0b8
%{_datadir}/%{name}
cvsextras badb0b8
%{_datadir}/applications/*
cvsextras badb0b8
%{_datadir}/pixmaps/*
cvsextras badb0b8
%{_datadir}/icons/*/*/apps/*
eb887c3
%{_libdir}/%{name}/
cvsextras badb0b8
%{_mandir}/man1/*
cvsextras badb0b8
%{_mandir}/*/man1/*
cvsextras badb0b8
eb887c3
%files devel
eb887c3
%defattr(-,root,root,-)
eb887c3
%doc %{_datadir}/doc/%{name}-dev/
eb887c3
%{_includedir}/tuxpaint/
eb887c3
cvsextras badb0b8
%changelog
db70b5f
* Thu Mar 22 2012 Tom Callaway <spot@fedoraproject.org> - 1:0.9.21-8
db70b5f
- fix compile against libpng15
db70b5f
5d1cd7e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.21-7
5d1cd7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5d1cd7e
0ee9c63
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1:0.9.21-6
0ee9c63
- Rebuild for new libpng
0ee9c63
fecf6ea
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.21-5
fecf6ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fecf6ea
bb7bd87
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 1:0.9.21-4
bb7bd87
- recompiling .py files against Python 2.7 (rhbz#623414)
bb7bd87
1861542
* Tue Mar 3 2010 Lubomir Rintel <lkundrak@v3.sk> - 1:0.9.21-3
1861542
- Fix link with new linker
1861542
- Fix incorrect memset() arguments
1861542
- Fix parallel build
1861542
28a8db0
* Thu Nov 19 2009 Jon Ciesla <limb@jcomserv.net> - 1:0.9.21-2
28a8db0
- Corrected icon requires, BZ 533965.
28a8db0
5573399
* Fri Oct 23 2009 Jon Ciesla <limb@jcomserv.net> - 1:0.9.21-1
5573399
- New upstream.
5573399
- Corrected desktop patch.
5573399
1635102
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.20-4
1635102
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1635102
cbbd3b5
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.20-3
cbbd3b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cbbd3b5
9056105
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:0.9.20-2
9056105
- Rebuild for Python 2.6
9056105
eb887c3
* Mon Sep  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.9.20-1
eb887c3
- update to 0.9.20
eb887c3
624b8bc
* Mon Sep  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:0.9.17-4
624b8bc
- fix license tag
624b8bc
6b868e7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:0.9.17-3
6b868e7
- Autorebuild for GCC 4.3
6b868e7
7ba437d
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1:0.9.17-2
7ba437d
- Rebuild for selinux ppc32 issue.
7ba437d
3ead36b
* Sat Jul 07 2007 Steven Pritchard <steve@kspei.com> 1:0.9.17-1
3ead36b
- Update to 0.9.17.
3ead36b
- BR librsvg2-devel and libpaper-devel.
3ead36b
- Add include path for glibconfig.h to CFLAGS.
3ead36b
70cec3a
* Tue Jan 30 2007 Steven Pritchard <steve@kspei.com> 1:0.9.16-4
70cec3a
- Honor $RPM_OPT_FLAGS.
70cec3a
- Fix various rpmlint warnings:
70cec3a
  - Expand tabs in spec.
70cec3a
  - Convert tuxpaint.1 to UTF-8.
70cec3a
  - Get rid of DOS line endings in docs.
70cec3a
  - Nothing in docs should be executable.
70cec3a
b460df7
* Fri Oct 27 2006 Steven Pritchard <steve@kspei.com> 1:0.9.16-3
b460df7
- Fix category in tuxpaint.desktop.
b460df7
96d62e5
* Thu Oct 26 2006 Steven Pritchard <steve@kspei.com> 1:0.9.16-2
96d62e5
- Drop "--add-category X-Fedora".
96d62e5
e682a34
* Tue Oct 24 2006 Steven Pritchard <steve@kspei.com> 1:0.9.16-1
e682a34
- Update to 0.9.16.
e682a34
cb00049
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.9.15b-4
cb00049
 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
cb00049
a00b0b3
* Thu Sep 21 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15b-3
a00b0b3
- Explicitly link libpng.
a00b0b3
25189c6
* Mon Aug 28 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15b-2
25189c6
- Rebuild.
25189c6
- Update URL.
25189c6
e102954
* Fri Jun 02 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15b-1
e102954
- Update to 0.9.15b
e102954
- Convert tuxpaint.desktop to UTF-8
e102954
- Drop gnome-libs-devel and kdelibs build dependencies by providing
e102954
  appropriate variables to "make install"
e102954
- Add docs properly
e102954
- Indirectly require hicolor-icon-theme (so that directories are
e102954
  owned and have proper permissions)
e102954
7122407
* Mon Mar 13 2006 Steven Pritchard <steve@kspei.com> 1:0.9.15-1
7122407
- Update to 0.9.15
7122407
- Drop destdir patch
7122407
cc530c2
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1:0.9.13-3
cc530c2
- rebuild on all arches
cc530c2
791b261
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
791b261
- rebuilt
791b261
cvsextras 6312017
* Wed Jun 09 2004 Warren Togami <wtogami@redhat.com> 1:0.9.13-0.fdr.1
cvsextras 6312017
- Epoch bump to override old k12ltsp package
cvsextras 6312017
cvsextras 6312017
* Mon May 31 2004 Panu Matilainen <pmatilai@welho.com> 0:0.9.13-0.fdr.1
cvsextras 6312017
- update to 0.9.13
cvsextras 6312017
- take a private copy of desktop file and fix it..
cvsextras 6312017
cvsextras 6312017
* Sun May 30 2004 Panu Matilainen <pmatilai@welho.com> 0:0.9.12-0.fdr.3
cvsextras 6312017
- add missing buildrequires desktop-file-utils (#1667)
cvsextras 6312017
cvsextras badb0b8
* Fri Oct 03 2003 Panu Matilainen <pmatilai@welho.com> 0:0.9.12-0.fdr.2
cvsextras badb0b8
- add missing buildreq's: kdelibs, gnome-libs-devel, SDL_mixer-devel
cvsextras badb0b8
- remove CVS directories from rpm
cvsextras badb0b8
cvsextras badb0b8
* Tue Aug 26 2003 Panu Matilainen <pmatilai@welho.com> 0:0.9.12-0.fdr.1
cvsextras badb0b8
- Initial RPM release.