cvsextras badb0b8
Name:           tuxpaint
cbeddfc
Version:        0.9.22
e4efa83
Release:        5%{?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
cbeddfc
#Patch0:         tuxpaint-utf8.patch
5573399
Patch1:         tuxpaint-0.9.21-fix-desktop-file.patch
cbeddfc
Patch2:         tuxpaint-0.9.22-link.patch
1861542
Patch3:         tuxpaint-0.9.21-makej.patch
cbeddfc
#Patch4:         tuxpaint-0.9.21-memset.patch
cbeddfc
#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
cbeddfc
BuildRequires:	gperf
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
cbeddfc
#%%patch0 -p1
5573399
%patch1 -p0 -b .fixdesktopfile
cbeddfc
%patch2 -p0 -b .link
1861542
%patch3 -p1 -b .makej
cbeddfc
#%%patch4 -p1 -b .memset
cbeddfc
#%%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/' {} \;
b129907
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
    --add-category KidsGame \
eb887c3
    --delete-original \
eb887c3
    $RPM_BUILD_ROOT%{_datadir}/applications/tuxpaint.desktop
cvsextras 6312017
Richard Hughes 3504f73
# Register as an application to be visible in the software center
Richard Hughes 3504f73
#
Richard Hughes 3504f73
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 3504f73
# project, translated and installed into the right place during `make install`.
Richard Hughes 3504f73
#
Richard Hughes 3504f73
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 3504f73
#
Richard Hughes 3504f73
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 3504f73
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 3504f73
Richard Hughes 3504f73
Richard Hughes 3504f73
Richard Hughes 3504f73
BugReportURL: https://sourceforge.net/p/tuxpaint/feature-requests/172/
Richard Hughes 3504f73
SentUpstream: 2014-09-18
Richard Hughes 3504f73
-->
Richard Hughes 3504f73
<application>
Richard Hughes 3504f73
  <id type="desktop">tuxpaint.desktop</id>
Richard Hughes 3504f73
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 3504f73
  <summary>A drawing program for children</summary>
Richard Hughes 3504f73
  <description>
Richard Hughes 3504f73
    

Richard Hughes 3504f73
      Tux Paint is a free, award-winning drawing program for children ages 3 to
Richard Hughes 3504f73
      12.
Richard Hughes 3504f73
      Tux Paint is used in schools around the world as a computer literacy
Richard Hughes 3504f73
      drawing activity.
Richard Hughes 3504f73
      It combines an easy-to-use interface, fun sound effects, and an
Richard Hughes 3504f73
      encouraging cartoon mascot who guides children as they use the program.
Richard Hughes 3504f73
    

Richard Hughes 3504f73
    

Richard Hughes 3504f73
      Kids are presented with a blank canvas and a variety of drawing tools to
Richard Hughes 3504f73
      help them be creative.
Richard Hughes 3504f73
    

Richard Hughes 3504f73
  </description>
Richard Hughes 3504f73
  <url type="homepage">http://tuxpaint.org/</url>
Richard Hughes 3504f73
  <screenshots>
Richard Hughes 3504f73
    <screenshot type="default">http://tuxpaint.org/screenshots/starter-coloringbook.png</screenshot>
Richard Hughes 3504f73
    <screenshot>http://tuxpaint.org/screenshots/example_simple.png</screenshot>
Richard Hughes 3504f73
    <screenshot>http://tuxpaint.org/screenshots/example_space.png</screenshot>
Richard Hughes 3504f73
  </screenshots>
Richard Hughes 3504f73
  <updatecontact>tuxpaint-devel@lists.sourceforge.net</updatecontact>
Richard Hughes 3504f73
</application>
Richard Hughes 3504f73
EOF
Richard Hughes 3504f73
5939cdc
#purge bundled fonts
5939cdc
rm -rf $RPM_BUILD_ROOT%{_datadir}/tuxpaint/fonts
5939cdc
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}
Richard Hughes 3504f73
%{_datadir}/appdata/*.appdata.xml
cvsextras badb0b8
%{_datadir}/applications/*
cvsextras badb0b8
%{_datadir}/pixmaps/*
cvsextras badb0b8
%{_datadir}/icons/*/*/apps/*
eb887c3
%{_libdir}/%{name}/
cvsextras badb0b8
%{_mandir}/man1/*
cvsextras badb0b8
%{_mandir}/*/man1/*
cbeddfc
%{_sysconfdir}/bash_completion.d/tuxpaint-completion.bash
cvsextras badb0b8
eb887c3
%files devel
eb887c3
%defattr(-,root,root,-)
eb887c3
%doc %{_datadir}/doc/%{name}-dev/
eb887c3
%{_includedir}/tuxpaint/
eb887c3
cvsextras badb0b8
%changelog
e4efa83
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.9.22-5
e4efa83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e4efa83
c956bd2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.9.22-4
c956bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c956bd2
6ef6154
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.9.22-3
6ef6154
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6ef6154
5939cdc
* Thu Jan 07 2016 Jon Ciesla <limburgher@gmail.com> - 1:0.9.22-2
5939cdc
- Drop bundled fonts, BZ 477471.
5939cdc
cbeddfc
* Thu Jan 07 2016 Jon Ciesla <limburgher@gmail.com> - 1:0.9.22-1
cbeddfc
- 0.9.22.
cbeddfc
- Fixed bogus changelog dates.
cbeddfc
b1c5d2e
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.21-16
b1c5d2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b1c5d2e
Richard Hughes 3504f73
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1:0.9.21-15
Richard Hughes 3504f73
- Add an AppData file for the software center
Richard Hughes 3504f73
f5b40a8
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.21-14
f5b40a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f5b40a8
e3bde64
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.21-13
e3bde64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e3bde64
b129907
* Thu Aug 22 2013 Ralf Cors├ępius <corsepiu@fedoraproject.org> -  1:0.9.21-12
b129907
- Use find -perm /<mode> instead of obsolete +<mode> (FTBFS, RHBZ#992825).
b129907
37d2a18
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.21-11
37d2a18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
37d2a18
4d904f7
* Tue Feb 12 2013 Jon Ciesla <limburgher@gmail.com> - 1:0.9.21-10
4d904f7
- Drop desktop vendor tag.
4d904f7
a9ad11c
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.9.21-9
a9ad11c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a9ad11c
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
cbeddfc
* Wed 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
cbeddfc
* Thu 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.