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