]> git.pld-linux.org Git - packages/tuxpaint.git/blame - tuxpaint.spec
- plugins added
[packages/tuxpaint.git] / tuxpaint.spec
CommitLineData
9ab975ca 1#
2# TODO
3# - check locale names (I think there is some wrong)
4%define stamps_ver 2007.11.21
aa4a05c3 5Summary: Tux Paint - A simple drawing program for children
d4105a60 6Summary(pl.UTF-8): Tux Paint - Prosty program do rysowania dla dzieci
7d085695 7Name: tuxpaint
9ab975ca 8Version: 0.9.18
67f06db2 9Release: 0.1
10License: GPL v2+
487f57e8 11Group: X11/Applications/Graphics
18a9fc23 12Source0: http://dl.sourceforge.net/tuxpaint/%{name}-%{version}.tar.gz
9ab975ca 13# Source0-md5: 5d1ee8aabfef787702f8ddef257fc1a7
18a9fc23 14Source1: http://dl.sourceforge.net/tuxpaint/%{name}-stamps-%{stamps_ver}.tar.gz
9ab975ca 15# Source1-md5: 1a4e032ff67920248931247787f331a1
6d507979 16Patch0: %{name}-Makefile.patch
67f06db2 17Patch1: %{name}-vfolders.patch
18Patch2: %{name}-locale_names.patch
2fbdaa2e 19URL: http://www.tuxpaint.org/
9ab975ca 20BuildRequires: SDL_Pango-devel
7d085695 21BuildRequires: SDL_image-devel >= 1.2.2
7d085695 22BuildRequires: SDL_mixer-devel >= 1.2.4
aa4a05c3 23BuildRequires: SDL_ttf-devel >= 2.0.5
0851c29d 24BuildRequires: gettext-devel
67f06db2 25BuildRequires: libpaper-devel
0ae1f486 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7d085695 27
faa7b5b5 28%define _sysconfdir /etc/X11
7d085695 29
30%description
d4bd3fb3 31Tux Paint is a simple drawing program for young children (3-10 years
32old). It is not meant as a general-purpose drawing tool. It is meant
33to be fun and easy to use. Sound effects and a cartoon character help
34let the user know what's going on, and keeps them entertained. There
35are also extra-large cartoon-style mouse pointer shapes.
7d085695 36
5275a56b 37%description -l pl.UTF-8
9ab975ca 38Tux Paint jest prostym programem do rysowania dla dzieci (3-10 lat).
39Nie jest on narzędziem służącym do nauki rysowania, lecz programem
40łatwym w użyciu, służącym zabawie. Efekty dźwiękowe i komiksowy
41charakter pomagają użytkownikowi w łatwym poruszaniu się po
5275a56b
JR
42programie, czyniąc go rozrywkowym. W programie jest także duży
43wskaźnik myszki oraz przyciski utrzymane w stylu komiksowym.
d4bd3fb3 44
45%package stamps
aa4a05c3 46Summary: Tux Paint - Collection of "rubber stamp" images
d4105a60 47Summary(pl.UTF-8): Tux Paint - Kolekcja obrazów z "gumowej pieczątki"
487f57e8 48Group: X11/Applications/Graphics
18a9fc23 49Requires: %{name} = %{epoch}:%{version}-%{release}
d4bd3fb3 50
51%description stamps
52This is a collection of "rubber stamp" images for Tux Paint.
53
5275a56b 54%description stamps -l pl.UTF-8
9ab975ca 55Jest to kolekcja obrazów dla Tux Painta o nazwie "gumowa pieczątka".
d4bd3fb3 56
7d085695 57%prep
faa7b5b5 58%setup -q -a 1
5be53f90 59%patch0 -p1
60%patch1 -p1
258eb0ae 61%patch2 -p1
7d085695 62
63%build
258eb0ae 64%{__make} \
18a9fc23 65 CC="%{__cc}" \
e676b368 66 PREFIX="%{_prefix}" \
67 CONFDIR="%{_sysconfdir}" \
68 DATA_PREFIX="%{_datadir}/tuxpaint" \
69 DOC_PREFIX="%{_datadir}/doc" \
70 ICON_PREFIX="%{_pixmapsdir}" \
71 X11_ICON_PREFIX="%{_pixmapsdir}" \
72 LOCALE_PREFIX="%{_datadir}/locale" \
ce5d0b25 73 OPTFLAGS="%{rpmcflags}"
7d085695 74
75%install
76rm -rf $RPM_BUILD_ROOT
3dde4a25 77install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/%{name},%{_pixmapsdir},%{_desktopdir},%{_datadir}/%{name}/stamps}
aa4a05c3 78
faa7b5b5 79%{__make} install \
80 _prefix=$RPM_BUILD_ROOT%{_prefix}/ \
81 CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir}/ \
82 MAN_PREFIX=$RPM_BUILD_ROOT%{_mandir}/ \
d8964053 83 GNOME_PREFIX=$RPM_BUILD_ROOT%{_prefix}/ \
3dde4a25 84 KDE_PREFIX=$RPM_BUILD_ROOT%{_desktopdir}/ \
faa7b5b5 85 X11_ICON_PREFIX=$RPM_BUILD_ROOT%{_pixmapsdir}/
aa4a05c3 86
faa7b5b5 87install src/tuxpaint.conf $RPM_BUILD_ROOT%{_sysconfdir}
88install data/images/icon48x48.png $RPM_BUILD_ROOT%{_pixmapsdir}/tuxpaint.png
d4bd3fb3 89
d8964053 90%{__make} -C %{name}-stamps-%{stamps_ver} install \
faa7b5b5 91 DATA_PREFIX=$RPM_BUILD_ROOT%{_datadir}/%{name}/
aa4a05c3 92
258eb0ae 93chmod -R a+rwx $RPM_BUILD_ROOT
9ab975ca 94rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc/tuxpaint,gnome/apps,tuxpaint/CVS}
258eb0ae 95
c0b99083 96#rm a lot of unwanted files and directories:
97find docs/ -type d|grep CVS|xargs rm -rf
98find docs/ -name "[KC]OP*" -exec rm -f "{}" ";"
99find docs/ -name "INS*" -exec rm -f "{}" ";"
100find docs/ -name "AUT*" -exec rm -f "{}" ";"
101find docs/ -size -50c -type f -exec rm -f "{}" ";"
102find docs/ -empty |xargs rm -rf
103
aa4a05c3 104%find_lang %{name}
7d085695 105
106%clean
bacc5eff 107rm -rf $RPM_BUILD_ROOT
7d085695 108
aa4a05c3 109%files -f %{name}.lang
7d085695 110%defattr(644,root,root,755)
faa7b5b5 111%doc docs/*
aa4a05c3 112%attr(755,root,root) %{_bindir}/*
d8964053 113%{_mandir}/man?/*
996be7e6 114%lang(pl) %{_mandir}/pl/man?/*
faa7b5b5 115%{_sysconfdir}/tuxpaint.conf
3f27e03f
BZ
116%dir %{_libdir}/%{name}
117%{_libdir}/%{name}/plugins/
aa4a05c3 118%dir %{_datadir}/%{name}
d4bd3fb3 119%{_datadir}/%{name}/brushes
120%{_datadir}/%{name}/fonts
121%{_datadir}/%{name}/images
122%{_datadir}/%{name}/sounds
25279229 123%{_datadir}/%{name}/starters
fcfdd158 124%{_desktopdir}/*.desktop
faa7b5b5 125%{_pixmapsdir}/*
d4bd3fb3 126
127%files stamps
128%defattr(644,root,root,755)
129%{_datadir}/%{name}/stamps
This page took 0.086033 seconds and 4 git commands to generate.