%define name libcaca %define version 0.99 %define pre beta18 %define release %mkrel -c %pre 5 %define build_slang 1 %define build_java 0 %define major 0 %define libname %mklibname caca %major %define develname %mklibname -d caca Name: %{name} Version: %{version} Release: %{release} URL: http://libcaca.zoy.org/ Source: http://libcaca.zoy.org/attachment/wiki/libcaca/%{name}-%{version}.%pre.tar.gz Patch0: libcaca-ruby1.9.patch Patch1: 0001-Allow-building-with-Werror-format-security.patch License: WTFPL Group: System/Libraries Buildrequires: libx11-devel, libncursesw-devel >= 5 %if %build_slang Buildrequires: slang-devel %endif Buildrequires: imlib2-devel BuildRequires: glut-devel BuildRequires: ftgl-devel BuildRequires: zlib-devel Buildrequires: doxygen, tetex-latex, tetex-dvips Buildrequires: ruby-devel %ifnarch %mips %arm BuildRequires: mono %endif Summary: Text mode graphics library %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. %package -n %libname Summary: Text mode graphics library Group: System/Libraries %description -n %libname 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. %package -n %develname Summary: Development files for libcaca Group: Development/C Provides: %{name}-devel = %{version}-%{release} Requires: %libname = %version Obsoletes: %mklibname -d caca 0 %description -n %develname 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. This package contains the header files and static libraries needed to compile applications or shared objects that use libcaca. %package -n caca-utils Summary: Text mode graphics utilities Group: Graphics/Utilities %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, cacamoir animates colourful moire circles and cacaplas displays an old school plasma effect. cacademo is a simple application that shows the libcaca rendering features such as line and ellipses drawing, triangle filling and sprite blitting. %ifnarch %mips %arm %package -n caca-sharp Summary: C# binding for libcaca Group: Development/C# %description -n caca-sharp C# binding for libcaca %endif %package -n ruby-caca Summary: Ruby binding for libcaca Group: Development/Ruby %description -n ruby-caca Ruby binding for libcaca %package -n python-caca Summary: Python binding for libcaca Group: Development/Python %description -n python-caca Python binding for libcaca %prep %setup -q -n %name-%version.%pre %patch0 -p1 %patch1 -p1 sed -i s/AM_CONFIG_HEADER/AC_CONFIG_HEADER/ configure.ac %build autoreconf -fi %configure2_5x \ %if %build_slang --enable-slang \ %else --disable-slang \ %endif %if ! %build_java --disable-java \ %endif --enable-ncurses --enable-x11 --enable-imlib2 --enable-doc --enable-plugins --disable-static %make %install rm -rf %{buildroot} installed-docs %makeinstall_std rm -f %{buildroot}%{ruby_sitearchdir}/*.la %multiarch_binaries %buildroot%_bindir/caca-config mv %{buildroot}%{_datadir}/doc/libcaca-dev installed-docs mkdir %{buildroot}%{_datadir}/doc/caca-utils-%{version} rm %buildroot%{_datadir}/doc/libcucul-dev #we don't want these find %{buildroot} -name "*.la" -delete %files -n %libname %_libdir/lib*.so.%{major}* %dir %_libdir/caca # FIXME split them into subpackage, to avoid dependency on X %_libdir/caca/lib*.so.%{major}* %files -n %develname %doc installed-docs/pdf/* installed-docs/html NEWS NOTES %{_bindir}/caca-config %_bindir/*/caca-config %{_includedir}/* %{_mandir}/man1/caca-config.1* %{_mandir}/man3/* %_libdir/pkgconfig/*.pc %_libdir/lib*.so %_libdir/caca/lib*.so %files -n caca-utils %doc README THANKS AUTHORS %{_bindir}/cacaclock %{_bindir}/cacademo %{_bindir}/cacafire %{_bindir}/cacaplay %{_bindir}/cacaserver %{_bindir}/cacaview %_bindir/img2txt %{_datadir}/libcaca/ %{_mandir}/man1/cacademo.1* %{_mandir}/man1/cacafire.1* %{_mandir}/man1/cacaplay.1* %{_mandir}/man1/cacaserver.1* %{_mandir}/man1/cacaview.1* %_mandir/man1/img2txt.1* %files -n python-caca %{py_sitedir}/caca %ifnarch %mips %arm %files -n caca-sharp %{_libdir}/mono/caca-sharp* %{_libdir}/mono/gac/caca-sharp %endif %files -n ruby-caca %{ruby_sitelibdir}/caca.rb %{ruby_sitearchdir}/*.so %changelog * Sat Jan 12 2013 umeabot <umeabot> 0.99-0.beta18.5.mga3 + Revision: 356889 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild + boklm <boklm> - Update group: Graphics/Other -> Graphics/Utilities * Mon Dec 31 2012 pterjan <pterjan> 0.99-0.beta18.4.mga3 + Revision: 336467 - Fix build with automake 1.13 * Thu Nov 01 2012 pterjan <pterjan> 0.99-0.beta18.3.mga3 + Revision: 312299 - Fix build with -Werror=format-security + fwang <fwang> - use autoreconf - add patch from pld-linux to build with latest ruby - rebuild for new ruby * Wed Oct 03 2012 malo <malo> 0.99-0.beta18.2.mga3 + Revision: 302708 - update RPM group * Wed Jul 11 2012 pterjan <pterjan> 0.99-0.beta18.1.mga3 + Revision: 269356 - Package python binding - Update to beta18 * Mon Jan 23 2012 dmorgan <dmorgan> 0.99-0.beta17.5.mga2 + Revision: 200162 - Own %%_libdir/caca * Sun Nov 20 2011 dmorgan <dmorgan> 0.99-0.beta17.4.mga2 + Revision: 170122 - Remove .la files Disable java binding * Wed Jul 20 2011 fwang <fwang> 0.99-0.beta17.3.mga2 + Revision: 127443 - updated br * Sat Jan 15 2011 mikala <mikala> 0.99-0.beta17.2.mga1 + Revision: 18507 - Drop mdk macros - Remove BuildRoot - imported package libcaca