Group :: Graphics
RPM: tuxpaint-config
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
#
# spec file for package tuxpaint-config
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: tuxpaint-config
Summary: Configuration tool for Tux Paint
Url: http://www.tuxpaint.org/
License: GPL v2 or later
Group: Graphics
Version: 0.0.10
Release: alt1
BuildRequires: fltk-devel gcc-c++ libpaper-devel xorg-x11-proto-devel libXft-devel libXext-devel
Requires: tuxpaint
Packager: Alexandra Panyukova <mex3 at altlinux.ru>
Source: %name-%version.tar.bz2
Patch1: tuxpaint-config-docpath.patch
Patch2: tuxpaint-config-desktop.patch
%description
Tux Paint has a rich set of configuration options, controllable via
command-line options or configuration files. This configuration tool
provides a point-and-click interface for administrators to tailor
Tux Paint to suit the needs of their users.
%if "%(xft-config --prefix)" == "/usr"
%define _xorg_fontdir %_datadir/fonts
%else
%define _xorg_fontdir /usr/X11R6/lib/X11/fonts
%endif
%prep
%setup -q
find . -name CVS | xargs rm -rf
%patch1
%patch2 -p1
%build
make PREFIX=%prefix X11_ICON_PREFIX=/usr/include/X11/pixmaps/
%install
mkdir -p %buildroot%_bindir
make PREFIX=%buildroot%prefix X11_ICON_PREFIX=%buildroot%_includedir/X11/pixmaps/ DOC_PREFIX=%buildroot%_defaultdocdir/%name install
install -D -m644 src/%name.desktop %buildroot%_desktopdir/%name.desktop
# fix file permissions
find %buildroot%_defaultdocdir/%name -type f -exec chmod 644 {} \;
find %buildroot%_mandir -type f -exec chmod 644 {} \;
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%files
%_bindir/tuxpaint-config
%doc %_defaultdocdir/%name
%dir %_includedir/X11/pixmaps
%_includedir/X11/pixmaps/tuxpaint-config.xpm
%_man1dir/*
%_datadir/tuxpaint-config/
%_pixmapsdir/*.png
%_desktopdir/*.desktop
%changelog
…
Full changelog you can see here
# spec file for package tuxpaint-config
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: tuxpaint-config
Summary: Configuration tool for Tux Paint
Url: http://www.tuxpaint.org/
License: GPL v2 or later
Group: Graphics
Version: 0.0.10
Release: alt1
BuildRequires: fltk-devel gcc-c++ libpaper-devel xorg-x11-proto-devel libXft-devel libXext-devel
Requires: tuxpaint
Packager: Alexandra Panyukova <mex3 at altlinux.ru>
Source: %name-%version.tar.bz2
Patch1: tuxpaint-config-docpath.patch
Patch2: tuxpaint-config-desktop.patch
%description
Tux Paint has a rich set of configuration options, controllable via
command-line options or configuration files. This configuration tool
provides a point-and-click interface for administrators to tailor
Tux Paint to suit the needs of their users.
%if "%(xft-config --prefix)" == "/usr"
%define _xorg_fontdir %_datadir/fonts
%else
%define _xorg_fontdir /usr/X11R6/lib/X11/fonts
%endif
%prep
%setup -q
find . -name CVS | xargs rm -rf
%patch1
%patch2 -p1
%build
make PREFIX=%prefix X11_ICON_PREFIX=/usr/include/X11/pixmaps/
%install
mkdir -p %buildroot%_bindir
make PREFIX=%buildroot%prefix X11_ICON_PREFIX=%buildroot%_includedir/X11/pixmaps/ DOC_PREFIX=%buildroot%_defaultdocdir/%name install
install -D -m644 src/%name.desktop %buildroot%_desktopdir/%name.desktop
# fix file permissions
find %buildroot%_defaultdocdir/%name -type f -exec chmod 644 {} \;
find %buildroot%_mandir -type f -exec chmod 644 {} \;
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%files
%_bindir/tuxpaint-config
%doc %_defaultdocdir/%name
%dir %_includedir/X11/pixmaps
%_includedir/X11/pixmaps/tuxpaint-config.xpm
%_man1dir/*
%_datadir/tuxpaint-config/
%_pixmapsdir/*.png
%_desktopdir/*.desktop
%changelog
…
Full changelog you can see here