]> git.pld-linux.org Git - SPECS.git/blob - tuxpaint-config.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / tuxpaint-config.spec
1 #
2 Summary:        Tux Paint Config - GUI to set configuration for TuxPaint
3 Summary(pl.UTF-8):      Tux Paint Konfigurator - graficzny konfigurator dla TuxPaint
4 Name:           tuxpaint-config
5 Version:        0.0.10
6 Release:        0.1
7 License:        GPL v2+
8 Group:          X11/Applications/Graphics
9 Source0:        http://dl.sourceforge.net/tuxpaint/%{name}-%{version}.tar.gz
10 # Source0-md5:  11e705f18176882ec9f2c1a1ee353c9c
11 URL:            http://www.tuxpaint.org/
12 BuildRequires:  SDL_Pango-devel
13 BuildRequires:  SDL_image-devel >= 1.2.2
14 BuildRequires:  SDL_mixer-devel >= 1.2.4
15 BuildRequires:  SDL_ttf-devel >= 2.0.5
16 BuildRequires:  fltk-devel
17 BuildRequires:  gettext-tools
18 BuildRequires:  libpaper-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The add-on for "Tux Paint" program, a graphical tool can be used to
23 change Tux Paint's settings.
24
25 %prep
26 %setup -q
27
28 find docs -type d -name CVS | xargs rm -rf
29
30 %build
31 %{__make} \
32         CC="%{__cc}" \
33         PREFIX=%{_prefix} \
34         CONFDIR=%{_sysconfdir} \
35         DATA_PREFIX=%{_datadir}/tuxpaint \
36         DOC_PREFIX=%{_docdir} \
37         ICON_PREFIX=%{_pixmapsdir}/ \
38         X11_ICON_PREFIX=%{_pixmapsdir}/ \
39         LOCALE_PREFIX=%{_datadir}/locale \
40         KDE_ICON_PREFIX=%{_datadir}/icons \
41         OPTFLAGS="%{rpmcflags}"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}}
46 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
47
48 %{__make} install \
49         BINDIR=$RPM_BUILD_ROOT%{_bindir} \
50         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
51         CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
52         MAN_PREFIX=$RPM_BUILD_ROOT%{_mandir} \
53         GNOME_PREFIX=$RPM_BUILD_ROOT%{_prefix} \
54         KDE_PREFIX=$RPM_BUILD_ROOT%{_desktopdir} \
55         KDE_ICON_PREFIX=$RPM_BUILD_ROOT%{_datadir}/icons \
56         X11_ICON_PREFIX=$RPM_BUILD_ROOT%{_pixmapsdir}/ \
57         ICON_PREFIX="$RPM_BUILD_ROOT%{_pixmapsdir}/"
58
59 mv $RPM_BUILD_ROOT{%{_datadir}/applications/Preferences,%{_desktopdir}}/tuxpaint-config.desktop
60
61 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
62 rm -rf _docs
63 cp -a docs _docs
64 # rm a lot of unwanted files and directories:
65 find _docs -name "[KC]OP*" | xargs rm -f
66 find _docs -name "INS*" | xargs rm -f
67 find _docs -size -50c -type f | xargs rm -f
68 find _docs -empty | xargs -r rmdir
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %doc _docs/*
76 %attr(755,root,root) %{_bindir}/*
77 %{_mandir}/man?/*
78 %dir %{_datadir}/%{name}
79 %{_datadir}/%{name}/*
80 %{_iconsdir}/hicolor/*/apps/*.png
81 %{_desktopdir}/*.desktop
82 %{_pixmapsdir}/*.png
83 %{_pixmapsdir}/*.xpm
This page took 0.292355 seconds and 3 git commands to generate.