# # spec file for package libcaca (Version 0.9) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: libcaca BuildRequires: doxygen freetype2-devel imlib2-devel ncurses-devel pkgconfig slang-devel te_ams te_latex xorg-x11 xorg-x11-devel xorg-x11-libs Version: 0.9 Release: 60 License: GNU General Public License (GPL) Summary: Library for Colour ASCII Art, text mode graphics Group: Development/Languages/C and C++ URL: http://sam.zoy.org/projects/libcaca/ Source: http://sam.zoy.org/projects/libcaca/%{name}-%{version}.tar.bz2 Patch0: libcaca-no_slang_acsmap.patch Patch1: libcaca-no_man3_pages.patch Patch2: libcaca-documentation.patch Patch3: libcaca-X11_test.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libcaca is the Colour AsCii Art library. It provides high level functions for colour text drawing, simple primitives for line, polygon and ellipse drawing, as well as powerful image to text conversion routines. Authors: -------- Sam Hocevar Jean-Yves Lamoureux %if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr" %define _xorg7libs %{_libdir} %else %define _xorg7libs /usr/X11R6/%{_lib} %endif %package devel Summary: Library for Colour ASCII Art, text mode graphics Group: Development/Languages/C and C++ Requires: XFree86-devel, ncurses-devel >= 5, slang-devel %description devel This package contains the header files and static libraries needed to compile applications or shared objects that use libcaca. Authors: -------- Sam Hocevar Jean-Yves Lamoureux %package -n caca-utils Summary: Colour ASCII Art Text mode graphics utilities based on libcaca Group: Amusements/Toys/Graphics %description -n caca-utils This package contains utilities and demonstration programs for libcaca, the Colour AsCii Art library. cacaview is a simple image viewer for the terminal. It opens most image formats such as JPEG, PNG, GIF etc. and renders them on the terminal using ASCII art. The user can zoom and scroll the image, set the dithering method or enable anti-aliasing. cacaball is a tiny graphic program that renders animated ASCII metaballs on the screen, cacafire is a port of AALib's aafire and displays burning ASCII art flames, and cacademo is a simple application that shows the libcaca rendering features such as line and ellipses drawing, triangle filling and sprite blitting. Authors: -------- Sam Hocevar Jean-Yves Lamoureux %prep %setup -q %if %{suse_version} < 1010 %patch0 %endif %patch1 %patch2 %patch3 %build export CFLAGS="%{optflags}" autoreconf -fi %configure \ --program-prefix="%{?_program_prefix}" \ --enable-slang \ --enable-ncurses \ --enable-x11 \ --x-libraries=%{_xorg7libs} \ --enable-imlib2 %{__make} %install make DESTDIR=%{buildroot} install # We want to include the docs ourselves from the source directory %{__mv} %{buildroot}%{_docdir}/%{name}-devel %{name}-devel-docs %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc AUTHORS BUGS COPYING NEWS NOTES README THANKS TODO #%{_libdir}/*.so* %files devel %defattr(-, root, root, 0755) %{_libdir}/*.a %{_bindir}/caca-config %{_includedir}/* %{_mandir}/man1/caca-config.1* %files -n caca-utils %defattr(-, root, root, 0755) %{_bindir}/cacaball %{_bindir}/cacademo %{_bindir}/cacafire %{_bindir}/cacamoir %{_bindir}/cacaplas %{_bindir}/cacaview %{_datadir}/libcaca %{_mandir}/man1/cacaball.1* %{_mandir}/man1/cacademo.1* %{_mandir}/man1/cacafire.1* %{_mandir}/man1/cacamoir.1* %{_mandir}/man1/cacaplas.1* %{_mandir}/man1/cacaview.1* %changelog * Fri Mar 30 2007 - rguenther@suse.de - Add ncurses-devel BuildRequires. * Fri Aug 04 2006 - pth@suse.de - Adapt to new X11 paths. * Wed Mar 29 2006 - pth@suse.de - Fix BuildRequires. * Wed Mar 29 2006 - pth@suse.de - Add X11 devel files to BuildRequires. * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Mon Dec 19 2005 - ro@suse.de - added missing manpage symlinks to filelist * Fri Nov 25 2005 - pth@suse.de - Initial package. - undef clashing acs_map from slang.h - don't try to install non-existing man3 pages - install documentation to different directory