Group :: Graphics
RPM: xpaint
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# vim: set ft=spec: -*- rpm -spec -*-
Name: xpaint
Version: 2.7.8.1
Release: alt2.1
Summary: An image editing or paint program
Group: Graphics
License: MIT
URL: http://sf-xpaint.sourceforge.net/
Packager: Sir Raorn <raorn at altlinux.ru>
Source: http://download.sourceforge.net/sf-xpaint/%name-%version.tar.bz2
Source1: %name-16x16.xpm
Source2: %name-32x32.xpm
Source3: %name-48x48.xpm
Patch: %name-2.7.8.1-alt-neXtaw-toggle.patch
Patch1: %name-2.7.8.1-alt-config.patch
# Automatically added by buildreq on Sun May 14 2006
BuildRequires: imake libjpeg-devel libX11-devel libXext-devel libXi-devel libneXtaw-devel libpng-devel libtiff-devel libXmu-devel libXpm-devel xorg-cf-files
%description
XPaint is an X Window System color image editing program which supports
most standard paint program options. XPaint also supports advanced
features like image processing algorithms. XPaint allows you to edit
multiple images simultaneously and supports a variety of image formats,
including PPM, XBM, TIFF, JPEG, etc.
Install the xpaint package if you need a paint program for X.
%prep
%setup -q
%patch -p1
%patch1 -p1
%build
./configure NEXTAW
%make_build CDEBUGFLAGS="%optflags"
%install
%make_install \
DESTDIR=%buildroot \
install install.man
%__mkdir_p %buildroot%_menudir
%__cat << EOF > %buildroot%_menudir/%name
?package(%name):needs="X11" \
section="Multimedia/Graphics" \
title="XPaint" \
longtitle="Simple paint program" \
command="%_bindir/%name" \
icon="%name.xpm"
EOF
%__install -p -m644 -D %SOURCE1 %buildroot%_miconsdir/%name.xpm
%__install -p -m644 -D %SOURCE2 %buildroot%_niconsdir/%name.xpm
%__install -p -m644 -D %SOURCE3 %buildroot%_liconsdir/%name.xpm
%post
%update_menus
%postun
%clean_menus
%files
%doc ChangeLog README* TODO Doc
%_bindir/xpaint
%_sysconfdir/X11/app-defaults/*
%_datadir/%name
%_mandir/man?/*
%_menudir/*
%_miconsdir/%name.xpm
%_niconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Full changelog you can see here
Name: xpaint
Version: 2.7.8.1
Release: alt2.1
Summary: An image editing or paint program
Group: Graphics
License: MIT
URL: http://sf-xpaint.sourceforge.net/
Packager: Sir Raorn <raorn at altlinux.ru>
Source: http://download.sourceforge.net/sf-xpaint/%name-%version.tar.bz2
Source1: %name-16x16.xpm
Source2: %name-32x32.xpm
Source3: %name-48x48.xpm
Patch: %name-2.7.8.1-alt-neXtaw-toggle.patch
Patch1: %name-2.7.8.1-alt-config.patch
# Automatically added by buildreq on Sun May 14 2006
BuildRequires: imake libjpeg-devel libX11-devel libXext-devel libXi-devel libneXtaw-devel libpng-devel libtiff-devel libXmu-devel libXpm-devel xorg-cf-files
%description
XPaint is an X Window System color image editing program which supports
most standard paint program options. XPaint also supports advanced
features like image processing algorithms. XPaint allows you to edit
multiple images simultaneously and supports a variety of image formats,
including PPM, XBM, TIFF, JPEG, etc.
Install the xpaint package if you need a paint program for X.
%prep
%setup -q
%patch -p1
%patch1 -p1
%build
./configure NEXTAW
%make_build CDEBUGFLAGS="%optflags"
%install
%make_install \
DESTDIR=%buildroot \
install install.man
%__mkdir_p %buildroot%_menudir
%__cat << EOF > %buildroot%_menudir/%name
?package(%name):needs="X11" \
section="Multimedia/Graphics" \
title="XPaint" \
longtitle="Simple paint program" \
command="%_bindir/%name" \
icon="%name.xpm"
EOF
%__install -p -m644 -D %SOURCE1 %buildroot%_miconsdir/%name.xpm
%__install -p -m644 -D %SOURCE2 %buildroot%_niconsdir/%name.xpm
%__install -p -m644 -D %SOURCE3 %buildroot%_liconsdir/%name.xpm
%post
%update_menus
%postun
%clean_menus
%files
%doc ChangeLog README* TODO Doc
%_bindir/xpaint
%_sysconfdir/X11/app-defaults/*
%_datadir/%name
%_mandir/man?/*
%_menudir/*
%_miconsdir/%name.xpm
%_niconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Full changelog you can see here