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