1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
Summary: PhotoCD tool collection
Name: xpcd
Version: 2.04
Release: 1
Copyright: GPL
Group: X11/Applications/Graphics
Source: http://www.cs.tu-berlin.de/~kraxel/linux/xpcd/xpcd-2.04.tar.gz
Buildroot: /tmp/rpmify
%description
This is a PhotoCD tool collection. The main application - xpcd - is a
comfortable, X11-based PhotoCD decoding/viewing program. Also included
is pcdtoppm, this is a command line based PhotoCD-to-PPM/JPEG
converter.
%ifarch @RPM_XPCD_SVGA@
%package svga
Summary: svgalib viewer for PhotoCD images
Group: Applications/Graphics
%description svga
svgalib viewer for PhotoCD images
%endif
%ifarch @RPM_XPCD_GIMP@
%package gimp
Summary: GIMP 0.99 plugin, makes xpcd and gimp work hand in hand.
Group: X11/Applications/Graphics
Requires: xpcd >= 2, gimp >= 0.99
%description gimp
This is a GIMP 0.99 plugin, it allows xpcd to load images directly
into The GIMP. If you'll open a PhotoCD file within gimp, it will
be passed to xpcd.
The installation of the gimp plugin works only if the gimp is installed
with prefix=/usr or prefix=/usr/local. If not, you have to copy xpcd-gate
from /usr/bin to the plug-ins directory yourself.
%endif
%prep
%setup
%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=/usr
make
%install
make BUILD_ROOT=$RPM_BUILD_ROOT SUID_ROOT= install
%files
/usr/bin/xpcd
/usr/bin/pcdtoppm
/usr/man/man1/xpcd.1x
@x_libraries@/X11/xpcd/system.xpcdrc
@x_libraries@/X11/app-defaults/Xpcd-2
@x_libraries@/X11/de/app-defaults/Xpcd-2
@x_libraries@/X11/da/app-defaults/Xpcd-2
@x_includes@/X11/pixmaps/xpcd-color.xpm
@x_includes@/X11/pixmaps/xpcd-gray.xpm
%ifarch @RPM_XPCD_SVGA@
%files svga
%attr(4711, root, root) /usr/bin/pcdview
%endif
%ifarch @RPM_XPCD_GIMP@
%files gimp
@GIMP_PLUGIN_DIR@/xpcd-gate
%post gimp
%endif
|