From 4607fb837e95626c24b219e59fb4ac75801d5eedc69dbd3185b938873bdba58d Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:21:31 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcaca?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + libcaca-0.9.tar.bz2 | 3 + libcaca-X11_test.patch | 12 +++ libcaca-documentation.patch | 38 ++++++++ libcaca-no_man3_pages.patch | 11 +++ libcaca-no_slang_acsmap.patch | 30 +++++++ libcaca.changes | 32 +++++++ libcaca.spec | 160 ++++++++++++++++++++++++++++++++++ ready | 0 10 files changed, 310 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libcaca-0.9.tar.bz2 create mode 100644 libcaca-X11_test.patch create mode 100644 libcaca-documentation.patch create mode 100644 libcaca-no_man3_pages.patch create mode 100644 libcaca-no_slang_acsmap.patch create mode 100644 libcaca.changes create mode 100644 libcaca.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libcaca-0.9.tar.bz2 b/libcaca-0.9.tar.bz2 new file mode 100644 index 0000000..b1eee2b --- /dev/null +++ b/libcaca-0.9.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f99617dc3fe6664cb9dfd4cd56548c6a40e4cc11d1389eccc09567ff9abd43a0 +size 171854 diff --git a/libcaca-X11_test.patch b/libcaca-X11_test.patch new file mode 100644 index 0000000..b81b2d4 --- /dev/null +++ b/libcaca-X11_test.patch @@ -0,0 +1,12 @@ +--- configure.ac ++++ configure.ac +@@ -107,7 +107,8 @@ + AC_CHECK_LIB(X11, XOpenDisplay, + [ac_cv_my_have_x11="yes" + if test -n "${x_includes}"; then X_CFLAGS="-I${x_includes}"; fi +- if test -n "${x_libraries}"; then X_LIBS="-lX11 -L${x_libraries}"; fi ++ if test -n "${x_libraries}"; then X_LIBS="-lX11"; fi ++ if test "${x_libraries}" != "/usr"; then X_LIBS="$X_LIBS -L${x_libraries}"; fi + AC_DEFINE(USE_X11, 1, Define to activate the X11 backend driver) + CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" + CACA_LIBS="${CACA_LIBS} ${X_LIBS}" diff --git a/libcaca-documentation.patch b/libcaca-documentation.patch new file mode 100644 index 0000000..b21bcea --- /dev/null +++ b/libcaca-documentation.patch @@ -0,0 +1,38 @@ +--- Makefile.am ++++ Makefile.am +@@ -8,6 +8,6 @@ + + bin_SCRIPTS = caca-config + +-doc_DATA = README BUGS TODO AUTHORS NEWS NOTES THANKS +-docdir = $(datadir)/doc/libcaca-dev ++# doc_DATA = README BUGS TODO AUTHORS NEWS NOTES THANKS ++# docdir = $(datadir)/doc/libcaca-dev + +--- doc/Makefile.am ++++ doc/Makefile.am +@@ -6,10 +6,10 @@ + + if BUILD_DOCUMENTATION + htmldoc_DATA = html/doxygen.css +-htmldocdir = $(datadir)/doc/libcaca-dev/html ++htmldocdir = $(datadir)/doc/packages/libcaca-devel/html + if USE_LATEX + psdoc_DATA = latex/libcaca.ps +-psdocdir = $(datadir)/doc/libcaca-dev/ps ++psdocdir = $(datadir)/doc/packages/libcaca-devel/ps + endif + endif + +@@ -41,9 +41,9 @@ + + install-data-local: + if BUILD_DOCUMENTATION +- $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html ++ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/packages/libcaca-devel/html + cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \ +- $(DESTDIR)$(datadir)/doc/libcaca-dev/html ++ $(DESTDIR)$(datadir)/doc/packages/libcaca-devel/html + $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 + rm -f $(DESTDIR)$(mandir)/man1/cacaball.1 + ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaball.1 diff --git a/libcaca-no_man3_pages.patch b/libcaca-no_man3_pages.patch new file mode 100644 index 0000000..2fc5527 --- /dev/null +++ b/libcaca-no_man3_pages.patch @@ -0,0 +1,11 @@ +--- doc/Makefile.am ++++ doc/Makefile.am +@@ -44,8 +44,6 @@ + $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html + cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \ + $(DESTDIR)$(datadir)/doc/libcaca-dev/html +- $(mkinstalldirs) $(DESTDIR)$(mandir)/man3 +- cp man/man3/*.3caca $(DESTDIR)$(mandir)/man3 + $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 + rm -f $(DESTDIR)$(mandir)/man1/cacaball.1 + ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaball.1 diff --git a/libcaca-no_slang_acsmap.patch b/libcaca-no_slang_acsmap.patch new file mode 100644 index 0000000..cfffa89 --- /dev/null +++ b/libcaca-no_slang_acsmap.patch @@ -0,0 +1,30 @@ +--- src/caca.c ++++ src/caca.c +@@ -37,6 +37,7 @@ + # else + # include + # endif ++# undef acs_map + #endif + #if defined(USE_NCURSES) + # if defined(HAVE_NCURSES_H) +--- src/event.c ++++ src/event.c +@@ -35,6 +35,7 @@ + # else + # include + # endif ++# undef acs_map + #endif + #if defined(USE_NCURSES) + # if defined(HAVE_NCURSES_H) +--- src/graphics.c ++++ src/graphics.c +@@ -35,6 +35,7 @@ + # else + # include + # endif ++# undef acs_map + #endif + #if defined(USE_NCURSES) + # if defined(HAVE_NCURSES_H) diff --git a/libcaca.changes b/libcaca.changes new file mode 100644 index 0000000..1100847 --- /dev/null +++ b/libcaca.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Fri Aug 4 11:14:21 CEST 2006 - pth@suse.de + +- Adapt to new X11 paths. + +------------------------------------------------------------------- +Wed Mar 29 18:04:58 CEST 2006 - pth@suse.de + +- Fix BuildRequires. + +------------------------------------------------------------------- +Wed Mar 29 16:08:00 CEST 2006 - pth@suse.de + +- Add X11 devel files to BuildRequires. + +------------------------------------------------------------------- +Wed Jan 25 21:37:23 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Dec 19 15:04:33 CET 2005 - ro@suse.de + +- added missing manpage symlinks to filelist + +------------------------------------------------------------------- +Fri Nov 25 13:52:49 CET 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 diff --git a/libcaca.spec b/libcaca.spec new file mode 100644 index 0000000..0dd8dd4 --- /dev/null +++ b/libcaca.spec @@ -0,0 +1,160 @@ +# +# spec file for package libcaca (Version 0.9) +# +# Copyright (c) 2006 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 pkgconfig slang-devel te_ams te_latex xorg-x11 xorg-x11-devel xorg-x11-libs +Version: 0.9 +Release: 18 +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 -n libcaca +* 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 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4