2007-01-16 00:21:31 +01:00
|
|
|
#
|
2009-03-17 20:13:24 +01:00
|
|
|
# spec file for package libcaca (Version 0.99.beta16)
|
2007-01-16 00:21:31 +01:00
|
|
|
#
|
2009-01-29 23:31:00 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:31 +01:00
|
|
|
#
|
2008-12-05 15:40:57 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:21:31 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-06-26 15:55:14 +02:00
|
|
|
|
2007-01-16 00:21:31 +01:00
|
|
|
Name: libcaca
|
2008-06-26 15:55:14 +02:00
|
|
|
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
|
2009-03-17 20:13:24 +01:00
|
|
|
BuildRequires: gcc-c++ mono-devel ruby-devel
|
|
|
|
Version: 0.99.beta16
|
2009-11-10 10:20:58 +01:00
|
|
|
Release: 2
|
2008-06-26 15:55:14 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:21:31 +01:00
|
|
|
Summary: Library for Colour ASCII Art, text mode graphics
|
|
|
|
Group: Development/Languages/C and C++
|
2008-06-26 15:55:14 +02:00
|
|
|
Url: http://sam.zoy.org/projects/libcaca/
|
2007-01-16 00:21:31 +01:00
|
|
|
Source: http://sam.zoy.org/projects/libcaca/%{name}-%{version}.tar.bz2
|
|
|
|
Patch0: libcaca-no_slang_acsmap.patch
|
|
|
|
Patch1: libcaca-no_man3_pages.patch
|
2008-06-26 15:55:14 +02:00
|
|
|
Patch2: libcaca-X11_test.patch
|
|
|
|
Patch4: libcaca-ruby_am_cflags.patch
|
|
|
|
Patch5: libcaca-ruby_vendor_install.patch
|
2008-12-05 15:40:57 +01:00
|
|
|
Patch6: remove_badwords.patch
|
2009-03-17 20:13:24 +01:00
|
|
|
Patch7: libcaca-0.99.beta16-missing-GLU.patch
|
|
|
|
Patch8: libcaca-0.99.beta16-libtool.patch
|
2007-01-16 00:21:31 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-06-26 15:55:14 +02:00
|
|
|
%define rb_vendorarch %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}
|
|
|
|
%define rb_vendorlib %{_libdir}/ruby/vendor_ruby/%{rb_ver}
|
2007-01-16 00:21:31 +01:00
|
|
|
|
|
|
|
%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
|
2008-06-26 15:55:14 +02:00
|
|
|
|
2007-01-16 00:21:31 +01:00
|
|
|
%package devel
|
2008-06-26 15:55:14 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:21:31 +01:00
|
|
|
Summary: Library for Colour ASCII Art, text mode graphics
|
|
|
|
Group: Development/Languages/C and C++
|
2009-03-17 20:13:24 +01:00
|
|
|
#yes, nothing else is required to link other applications with "libcaca"
|
2008-06-26 15:55:14 +02:00
|
|
|
Requires: %{name} = %{version}
|
2007-01-16 00:21:31 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the header files and static libraries needed to
|
|
|
|
compile applications or shared objects that use libcaca.
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-26 15:55:14 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:21:31 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Sam Hocevar <sam@zoy.org>
|
|
|
|
Jean-Yves Lamoureux <jylam@lnxscene.org>
|
|
|
|
|
|
|
|
%package -n caca-utils
|
2008-06-26 15:55:14 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:21:31 +01:00
|
|
|
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
|
2009-03-17 20:13:24 +01:00
|
|
|
%patch1 -p1
|
2007-01-16 00:21:31 +01:00
|
|
|
%patch2
|
2008-06-26 15:55:14 +02:00
|
|
|
%patch4
|
2009-03-17 20:13:24 +01:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7
|
|
|
|
%patch8
|
2007-01-16 00:21:31 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-29 23:31:00 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure --with-pic \
|
2007-01-16 00:21:31 +01:00
|
|
|
--program-prefix="%{?_program_prefix}" \
|
|
|
|
--enable-slang \
|
|
|
|
--enable-ncurses \
|
|
|
|
--enable-x11 \
|
|
|
|
--x-libraries=%{_xorg7libs} \
|
2008-06-26 15:55:14 +02:00
|
|
|
--enable-imlib2 \
|
|
|
|
--enable-gl \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static
|
2009-01-29 23:31:00 +01:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-16 00:21:31 +01:00
|
|
|
|
|
|
|
%install
|
2008-06-26 15:55:14 +02:00
|
|
|
%makeinstall
|
2007-01-16 00:21:31 +01:00
|
|
|
# We want to include the docs ourselves from the source directory
|
2008-06-26 15:55:14 +02:00
|
|
|
#%{__mv} %{buildroot}%{_docdir}/%{name}-devel %{name}-devel-docs
|
2009-01-29 23:31:00 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2008-06-26 15:55:14 +02:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:21:31 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, 0755)
|
2009-03-17 20:13:24 +01:00
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS NOTES README THANKS
|
2008-06-26 15:55:14 +02:00
|
|
|
%{_libdir}/*.so.*
|
2007-01-16 00:21:31 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root, 0755)
|
2008-06-26 15:55:14 +02:00
|
|
|
%{_libdir}/*.so
|
2007-01-16 00:21:31 +01:00
|
|
|
%{_bindir}/caca-config
|
2008-06-26 15:55:14 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-01-16 00:21:31 +01:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_mandir}/man1/caca-config.1*
|
2008-06-26 15:55:14 +02:00
|
|
|
%{_datadir}/doc/libcucul-dev
|
2009-03-17 20:13:24 +01:00
|
|
|
%{_datadir}/doc/libcaca-dev
|
2008-06-26 15:55:14 +02:00
|
|
|
|
|
|
|
%files csharp
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%{_libdir}/caca-sharp
|
|
|
|
|
|
|
|
%files ruby
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%{rb_vendorarch}/*
|
|
|
|
%{rb_vendorlib}/caca.rb
|
2007-01-16 00:21:31 +01:00
|
|
|
|
|
|
|
%files -n caca-utils
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
%{_bindir}/cacademo
|
|
|
|
%{_bindir}/cacafire
|
|
|
|
%{_bindir}/cacaview
|
2008-06-26 15:55:14 +02:00
|
|
|
%{_bindir}/cacaplay
|
|
|
|
%{_bindir}/cacaserver
|
|
|
|
%{_bindir}/img2txt
|
2007-01-16 00:21:31 +01:00
|
|
|
%{_datadir}/libcaca
|
|
|
|
%{_mandir}/man1/cacademo.1*
|
|
|
|
%{_mandir}/man1/cacafire.1*
|
|
|
|
%{_mandir}/man1/cacaview.1*
|
2008-06-26 15:55:14 +02:00
|
|
|
%{_mandir}/man1/cacaplay.1*
|
|
|
|
%{_mandir}/man1/cacaserver.1*
|
|
|
|
%{_mandir}/man1/img2txt.1*
|
2007-01-16 00:21:31 +01:00
|
|
|
|
2007-03-30 12:01:38 +02:00
|
|
|
%changelog
|