305 lines
9.3 KiB
RPMSpec
305 lines
9.3 KiB
RPMSpec
#
|
|
# spec file for package libcaca (Version 0.99.beta16)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libcaca
|
|
BuildRequires: doxygen freetype2-devel imlib2-devel ncurses-devel pkgconfig
|
|
BuildRequires: slang-devel texlive-latex xorg-x11 xorg-x11-devel
|
|
BuildRequires: freeglut-devel xorg-x11-libs
|
|
BuildRequires: gcc-c++ mono-devel ruby-devel
|
|
Version: 0.99.beta16
|
|
Release: 1
|
|
License: GPL v2 or later
|
|
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-X11_test.patch
|
|
Patch4: libcaca-ruby_am_cflags.patch
|
|
Patch5: libcaca-ruby_vendor_install.patch
|
|
Patch6: remove_badwords.patch
|
|
Patch7: libcaca-0.99.beta16-missing-GLU.patch
|
|
Patch8: libcaca-0.99.beta16-libtool.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%define rb_vendorarch %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}
|
|
%define rb_vendorlib %{_libdir}/ruby/vendor_ruby/%{rb_ver}
|
|
|
|
%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 <sam@zoy.org>
|
|
Jean-Yves Lamoureux <jylam@lnxscene.org>
|
|
|
|
%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr"
|
|
%define _xorg7libs %{_libdir}
|
|
%else
|
|
%define _xorg7libs /usr/X11R6/%{_lib}
|
|
%endif
|
|
|
|
%package devel
|
|
License: GPL v2 or later
|
|
Summary: Library for Colour ASCII Art, text mode graphics
|
|
Group: Development/Languages/C and C++
|
|
#yes, nothing else is required to link other applications with "libcaca"
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
This package contains the header files and static libraries needed to
|
|
compile applications or shared objects that use libcaca.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Sam Hocevar <sam@zoy.org>
|
|
Jean-Yves Lamoureux <jylam@lnxscene.org>
|
|
|
|
%package csharp
|
|
License: GPL v2 or later
|
|
Summary: C# support for libcaca
|
|
Group: Development/Languages/Mono
|
|
Requires: %{name} = %{version} mono
|
|
|
|
%description csharp
|
|
This package contains all that is needed to use libcaca from C# code.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Sam Hocevar <sam@zoy.org>
|
|
Jean-Yves Lamoureux <jylam@lnxscene.org>
|
|
|
|
%package ruby
|
|
License: GPL v2 or later
|
|
Summary: Ruby bindings for libcaca
|
|
Group: Development/Languages/Ruby
|
|
Requires: %{name} = %{version} ruby
|
|
|
|
%description ruby
|
|
All that is needed to use libcaca from ruby code.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Sam Hocevar <sam@zoy.org>
|
|
Jean-Yves Lamoureux <jylam@lnxscene.org>
|
|
|
|
%package -n caca-utils
|
|
License: GPL v2 or later
|
|
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 <sam@zoy.org>
|
|
Jean-Yves Lamoureux <jylam@lnxscene.org>
|
|
|
|
%prep
|
|
%setup -q
|
|
%if %{suse_version} < 1010
|
|
%patch0
|
|
%endif
|
|
%patch1 -p1
|
|
%patch2
|
|
%patch4
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7
|
|
%patch8
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure --with-pic \
|
|
--program-prefix="%{?_program_prefix}" \
|
|
--enable-slang \
|
|
--enable-ncurses \
|
|
--enable-x11 \
|
|
--x-libraries=%{_xorg7libs} \
|
|
--enable-imlib2 \
|
|
--enable-gl \
|
|
--enable-shared \
|
|
--disable-static
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
# We want to include the docs ourselves from the source directory
|
|
#%{__mv} %{buildroot}%{_docdir}/%{name}-devel %{name}-devel-docs
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root, 0755)
|
|
%doc AUTHORS ChangeLog COPYING NEWS NOTES README THANKS
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-, root, root, 0755)
|
|
%{_libdir}/*.so
|
|
%{_bindir}/caca-config
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_includedir}/*
|
|
%{_mandir}/man1/caca-config.1*
|
|
%{_datadir}/doc/libcucul-dev
|
|
%{_datadir}/doc/libcaca-dev
|
|
|
|
%files csharp
|
|
%defattr(-, root, root, 0755)
|
|
%{_libdir}/caca-sharp
|
|
|
|
%files ruby
|
|
%defattr(-, root, root, 0755)
|
|
%{rb_vendorarch}/*
|
|
%{rb_vendorlib}/caca.rb
|
|
|
|
%files -n caca-utils
|
|
%defattr(-, root, root, 0755)
|
|
%{_bindir}/cacademo
|
|
%{_bindir}/cacafire
|
|
%{_bindir}/cacaview
|
|
%{_bindir}/cacaplay
|
|
%{_bindir}/cacaserver
|
|
%{_bindir}/img2txt
|
|
%{_datadir}/libcaca
|
|
%{_mandir}/man1/cacademo.1*
|
|
%{_mandir}/man1/cacafire.1*
|
|
%{_mandir}/man1/cacaview.1*
|
|
%{_mandir}/man1/cacaplay.1*
|
|
%{_mandir}/man1/cacaserver.1*
|
|
%{_mandir}/man1/img2txt.1*
|
|
|
|
%changelog
|
|
* Mon Mar 16 2009 crrodriguez@suse.de
|
|
- fix build, missing -lGLU
|
|
- Update to version 0.99.beta16
|
|
- libcucul was merged back into libcaca for more clarity
|
|
- internal FIGlet font support
|
|
- use C99 types in public headers
|
|
- runtime support for output drivers
|
|
- BBcode export support
|
|
* Wed Jan 28 2009 crrodriguez@suse.de
|
|
- remove "la" files
|
|
* Thu Dec 04 2008 cfarrell@suse.de
|
|
- added patch to remove badwords because of bnc#441358
|
|
* Thu Jun 12 2008 pth@suse.de
|
|
- Build dynamic libraries, disable creation of static ones.
|
|
- Compile with OpenGL support.
|
|
- Install ruby bindings in vendorarch/vendorlib.
|
|
- Fix file list.
|
|
* Wed Feb 13 2008 pth@suse.de
|
|
- Update to 0.99beta13:
|
|
- device-dependent cursor support
|
|
- event API rewrite
|
|
- Ruby bindings
|
|
- Massive C# bindings improvements
|
|
- Python sample code
|
|
- support for 90-degree canvas rotation
|
|
- better behaviour when trying to output Unicode on an ASCII terminal
|
|
- the built-in font now supports the Geometric Shapes, Halfwidth and Fullwidth
|
|
Forms and Miscellaneous Symbols Unicode blocks
|
|
- new rotozoom effect in cacademo
|
|
- preliminary .NET bindings
|
|
- blitting canvases now makes use of the canvas' handle coordinates
|
|
- import functions can read streamed data
|
|
- attribute to colorspace transformations
|
|
- added katakana and hiragana glyphs to the built-in font
|
|
- support for blink, bold, italics and underline attributes
|
|
- fixed Imlib2 support in cacaview
|
|
- fixed buffer overflows in the file importer
|
|
- support for fullwidth Unicode characters
|
|
- transparency support in the UTF-8 importer and exporter
|
|
- ANSI importer now handles transparency and UTF-8
|
|
- various memory leaks were fixed
|
|
- implemented cucul_getchar() and cucul_get_color()
|
|
- handle transparency in the IRC export
|
|
- new cropping and expanding filters
|
|
- full Unicode support in the OpenGL driver
|
|
- all demos except cacafire were merged into cacademo
|
|
- added a compatibility layer for pre-1.x libcaca applications
|
|
- libcaca functions use errno for error reporting
|
|
- ANSI importer
|
|
- cacadraw, an ANSI viewer that will evolve into an editor
|
|
- Unicode input and output support for SLang and ncurses
|
|
- license switched to WTFPL
|
|
- libcaca was split into libcucul, a standalone text manipulation backend,
|
|
and libcaca, the display and user input frontend
|
|
- TrueColor (more than 16 colours) support
|
|
- Floyd-Steinberg dithering
|
|
- gamma correction
|
|
- export functions for HTML, IRC, ANSI, SVG, PostScript, TGA...
|
|
- builtin fonts for device-independent bitmap output
|
|
- various text transformation routines (rotation, horizontal flip...)
|
|
- OpenGL renderer
|
|
- kernel mode to build libcaca programs into a bootable x86 kernel
|
|
- cacaserver, a telnet server that can be hooked to libcaca applications
|
|
- img2irc, an image to IRC conversion utility
|
|
* Sun Apr 22 2007 ro@suse.de
|
|
- use texlive for building
|
|
* 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
|