Changes of Revision 2
[-] | Added | libcaca.spec |
x 1
2 + 3 +%define withjava 0 4 +%define withpython 0 5 + 6 +Name: libcaca 7 +BuildRequires: doxygen freetype2-devel imlib2-devel ncurses-devel pkgconfig 8 +BuildRequires: fdupes slang-devel xorg-x11 xorg-x11-devel 9 +#texlive-latex 10 +BuildRequires: freeglut-devel ftgl-devel xorg-x11-libs 11 +BuildRequires: gcc-c++ java-devel mono-devel python-devel ruby-devel 12 +%{py_requires} 13 +Version: 0.99.beta17 14 +Release: 27 15 +License: WTFPL 16 +Summary: Library for Colour ASCII Art, text mode graphics 17 +Group: Development/Languages/C and C++ 18 +Url: http://sam.zoy.org/projects/libcaca/ 19 +Source0: http://caca.zoy.org/files/libcaca/%{name}-%{version}.tar.bz2 20 +Patch1: libcaca-0.99-texbuild.patch 21 +Patch2: libcaca-X11_test.patch 22 +Patch4: libcaca-ruby_am_cflags.patch 23 +Patch5: libcaca-ruby_vendor_install.patch 24 +Patch7: libcaca-0.99.beta16-missing-GLU.patch 25 +Patch9: caca-no-build-date.patch 26 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 27 +%define rb_vendorarch %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch} 28 +%define rb_vendorlib %{_libdir}/ruby/vendor_ruby/%{rb_ver} 29 + 30 +%description 31 +libcaca is the Colour AsCii Art library. It provides high level 32 +functions for colour text drawing, simple primitives for line, polygon 33 +and ellipse drawing, as well as powerful image to text conversion 34 +routines. 35 + 36 + 37 + 38 +Authors: 39 +-------- 40 + Sam Hocevar <sam@zoy.org> 41 + Jean-Yves Lamoureux <jylam@lnxscene.org> 42 + 43 +%package -n libcaca0 44 +License: WTFPL 45 +Summary: Library for Colour ASCII Art, text mode graphics 46 +Group: Development/Languages/C and C++ 47 +Provides: libcaca = %{version} 48 +Obsoletes: libcaca < %{version} 49 +%if 0%{?suse_version} <= 1110 50 +%ifarch == x86_64 51 +%define python_sitelib /usr/lib64/python2.6/site-packages 52 +%else 53 +%define python_sitelib /usr/lib/python2.6/site-packages 54 +%endif 55 +%endif 56 + 57 +%description -n libcaca0 58 +libcaca is the Colour AsCii Art library. It provides high level 59 +functions for colour text drawing, simple primitives for line, polygon 60 +and ellipse drawing, as well as powerful image to text conversion 61 +routines. 62 + 63 + 64 + 65 +Authors: 66 +-------- 67 + Sam Hocevar <sam@zoy.org> 68 + Jean-Yves Lamoureux <jylam@lnxscene.org> 69 + 70 +%if "%(pkg-config --variable prefix x11 || echo /usr/X11R6)" == "/usr" 71 +%define _xorg7libs %{_libdir} 72 +%else 73 +%define _xorg7libs /usr/X11R6/%{_lib} 74 +%endif 75 + 76 +%package devel 77 +License: WTFPL 78 +Summary: Library for Colour ASCII Art, text mode graphics 79 +Group: Development/Languages/C and C++ 80 +#yes, nothing else is required to link other applications with "libcaca" 81 +Requires: %{name} = %{version} 82 +Requires: %{name}0-plugins = %{version} 83 +%if 0%{?withjava} == 1 84 +Requires: %{name}0-java = %{version} 85 +%endif 86 + 87 +%description devel 88 +This package contains the header files and static libraries needed to 89 +compile applications or shared objects that use libcaca. 90 + 91 + 92 + 93 +Authors: 94 +-------- 95 + Sam Hocevar <sam@zoy.org> 96 + Jean-Yves Lamoureux <jylam@lnxscene.org> 97 + 98 +%package csharp 99 +License: WTFPL 100 +Summary: C# support for libcaca 101 +Group: Development/Languages/Mono 102 +Requires: %{name} = %{version} 103 +Requires: mono 104 + 105 +%description csharp 106 +This package contains all that is needed to use libcaca from C# code. 107 + 108 + 109 + 110 +Authors: 111 +-------- 112 + Sam Hocevar <sam@zoy.org> 113 + Jean-Yves Lamoureux <jylam@lnxscene.org> 114 + 115 +%if 0%{?withjava} == 1 116 + 117 +%package -n libcaca0-java 118 +License: WTFPL 119 +Summary: Java support for libcaca 120 +Group: Development/Languages/Java 121 +Requires: %{name} = %{version} 122 +Requires: java 123 + 124 +%description -n libcaca0-java 125 +This package contains all that is needed to use libcaca from java. 126 + 127 + 128 + 129 +Authors: 130 +-------- 131 + Sam Hocevar <sam@zoy.org> 132 + Jean-Yves Lamoureux <jylam@lnxscene.org> 133 +%endif 134 + 135 +%if 0%{?withpython} == 1 136 + 137 +%package python 138 +License: WTFPL 139 +Summary: Python support for libcaca 140 +Group: Development/Languages/Python 141 +Requires: %{name} = %{version} python-base = %{py_ver} 142 +%if 0%{?suse_version} >= 1120 143 +BuildArch: noarch 144 +%endif 145 + 146 +%description python 147 +This package contains all that is needed to use libcaca from python. 148 + 149 + 150 + 151 +Authors: 152 +-------- 153 + Sam Hocevar <sam@zoy.org> 154 + Jean-Yves Lamoureux <jylam@lnxscene.org> 155 +%endif 156 + 157 +%package -n libcaca0-plugins 158 +License: WTFPL 159 +Summary: Plugins for libcaca 160 +Group: Development/Languages/C and C++ 161 +Requires: %{name} = %{version} 162 + 163 +%description -n libcaca0-plugins 164 +This package contains gl and x11 plugins for caca. 165 + 166 + 167 + 168 +Authors: 169 +-------- 170 + Sam Hocevar <sam@zoy.org> 171 + Jean-Yves Lamoureux <jylam@lnxscene.org> 172 + 173 +%package ruby 174 +License: WTFPL 175 +Summary: Ruby bindings for libcaca 176 +Group: Development/Languages/Ruby 177 +Requires: %{name} = %{version} ruby 178 + 179 +%description ruby 180 +All that is needed to use libcaca from ruby code. 181 + 182 + 183 + 184 +Authors: 185 +-------- 186 + Sam Hocevar <sam@zoy.org> 187 + Jean-Yves Lamoureux <jylam@lnxscene.org> 188 + 189 +%package -n caca-utils 190 +License: WTFPL 191 +Summary: Colour ASCII Art Text mode graphics utilities based on libcaca 192 +Group: Amusements/Toys/Graphics 193 + 194 +%description -n caca-utils 195 +This package contains utilities and demonstration programs for libcaca, 196 +the Colour AsCii Art library. 197 + 198 +cacaview is a simple image viewer for the terminal. It opens most image 199 +formats such as JPEG, PNG, GIF etc. and renders them on the terminal 200 +using ASCII art. The user can zoom and scroll the image, set the 201 |
||
[+] | Deleted | libcaca0.spec ^ |
@@ -1,243 +0,0 @@ -# Packmangroup: Libraries -# Packmanpackagename: libcaca0 -# Packman: Manfred Tremmel - -# -# spec file for package libcaca0 (Version 0.99.beta16) -# - -# norootforbuild - -%define major 0 -%define lib libcaca -%define libname %{lib}%{major} - -Name: %{libname} -Summary: Text mode graphics library -Summary(de): Grafik Bibliothek für den Textmodus -Version: 0.99.beta17 -Release: 1.pm.2.2 -Group: System/Libraries -License: GPL v2 or later -URL: http://libcaca.zoy.org -Source0: libcaca-%{version}.tar.bz2 -Requires: xorg-x11-libs -Requires: ncurses -Requires: slang -Requires: imlib2 -BuildRequires: psmisc -BuildRequires: xorg-x11-devel -BuildRequires: xorg-x11-libs -BuildRequires: ncurses-devel -BuildRequires: slang-devel -BuildRequires: imlib2-devel -BuildRequires: doxygen -BuildRequires: t1lib -BuildRequires: texinfo -BuildRequires: texlive -BuildRequires: texlive-bin -BuildRequires: texlive-bin-latex -BuildRequires: texlive-latex -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: freetype2-devel -BuildRequires: pkgconfig -BuildRequires: ruby -BuildRequires: ruby-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%ifarch x86_64 amd64 ia32e -Provides: libcucul.so.%{major}()(64bit) -Provides: libcucul++.so.%{major}()(64bit) -%else -Provides: libcucul.so.%{major} -Provides: libcucul++.so.%{major} -%endif -Provides: libcaca = %{version}-%{release} -Obsoletes: libcaca < %{version}-%{release} - -%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. - -%description -l de -libcaca ist die Colour AsCii Art library. Sie stellt High Level Funktionen -für Bilddarstellung als farbiger Text, zum Zeichnen einfacher Primitive, -Polygone und Ellipsen, sowie mächtiger "Bild zu Text" Konvertierungsroutinen. - - -%package -n %{lib}-devel -Summary: Development package for libcaca -Summary(de): Entwicklerpaket zur libcaca -Group: Development/Libraries/C and C++ -Requires: %{libname} = %{version}-%{release} -Requires: slang-devel -Requires: ncurses-devel -Requires: xorg-x11-libX11-devel -Requires: zlib-devel - -%description -n %{lib}-devel -This package contains the header files and documentation -needed to develop applications with libcaca. - -%description -n %{lib}-devel -l de -Dieses Paket enthält die Header-Datein und Dokumentationen -die zur Entwicklung von Anwendungen benötigt werden, welche -die libcaca verwenden. - - -%package -n %{libname}-ruby -Summary: Ruby bindings package for libcaca -Summary(de): Ruby Anbindung zur libcaca -Group: Development/Libraries/Other -Requires: %{libname} = %{version}-%{release} - -%description -n %{libname}-ruby -This package contains the ruby bindings - -%description -n %{libname}-ruby -l de -Dieses Paket enthält die ruby Anbindung - - -%package -n caca-utils -Summary: Text mode graphics utilities -Summary(de): Textmodus Grafik-Utilities -Group: Productivity/Graphics/Other -Requires: %{libname} = %{version}-%{release} -Requires: freetype2 -Requires: ncurses -Requires: slang - -%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. - -%description -n caca-utils -l de -Dieses Paket enthält Utilities und Demonstrationsprogramme zur libcaca, der -Colour AsCii Art library. - -cacaview ist ein einfacher Bildbetrachter für die Textkonsole. Es öffnet -die meisten Bildformate wie JPEG, PNG, GIF usw. und rendert sie auf dem -Terminal mit Hilfe von ASCII Art. Der Benutzer kann in das Bild hinein- -zoomen und darin herumscrollen, die Ditheringmethode einstellund und -Kantenglättung an oder abstellen. - -cacaball ist ein kleines Grafikprogramm, welches animierte ASCII Metaballs -auf den Bildschirm zeichnet. cacafire ist eine Portierung port von AALibs -aafire und zeigt eine brennende ASCII art Flamme. cacamoir animiert farbige -Moire Kreise und cacaplas zeigt den Plasmaeffekt alter Schule. - -cacademo ist eine einfache Anwendung die die libcaca Rendering Features, -wie das Zeichnen von Linien, Ellipsen zeichnen, Rechtecke füllen und -Sprites einblenden. - -%debug_package - -%prep -%setup -n libcaca-%{version} - -%build -%configure --enable-slang --enable-ncurses --enable-x11 --enable-imlib2 --enable-doc -%{__make} %{?jobs:-j%{jobs}} - -%install -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} -mkdir %{buildroot} -%makeinstall -%{__mkdir_p} %{buildroot}%{_docdir}/libcaca-devel/html -mv %{buildroot}%{_datadir}/doc/libcucul-dev/html/* %{buildroot}%{_docdir}/libcaca-devel/html/ -%{__rm} -rf %{buildroot}%{_datadir}/doc/libcucul-dev -%{__rm} -rf %{buildroot}%{_datadir}/doc/libcaca-dev -%{__rm} -f %{buildroot}/cucul++.pc -%{__rm} -f %{buildroot}/%{_libdir}/*.a -#%{__rm} -f %{buildroot}%{_libdir}/libcucul++.so -pushd %{buildroot}%{_libdir} && %{__ln_s} -f libcaca.so.%{major} libcucul.so.%{major} && popd -pushd %{buildroot}%{_libdir} && %{__ln_s} -f libcaca++.so.%{major} libcucul++.so.%{major} && popd -%{__rm} -f %{buildroot}%{_libdir}/ruby/site_ruby/*/*/c*.a - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - -%clean -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} - -%files -%defattr(-,root,root) -%{_libdir}/lib*.so.* - -%files -n %{lib}-devel -%defattr(-,root,root) -%doc doc/html/* -%doc doc/latex/libcaca.pdf -%{_bindir}/caca-config -%{_libdir}/lib*.*a -%{_libdir}/lib*.so -%{_includedir}/c*.h -%{_mandir}/man3/*.3caca.gz -%{_mandir}/man1/caca-config.* -%{_libdir}/pkgconfig/*.pc - -%files -n %{libname}-ruby -%defattr(-,root,root) -%{_libdir}/ruby/site_ruby/*/caca.rb -%{_libdir}/ruby/site_ruby/*/*/c*.* - -%files -n caca-utils -%defattr(-,root,root) | ||
[+] | Added | caca-no-build-date.patch ^ |
@@ -0,0 +1,21 @@ +Index: src/img2txt.c +=================================================================== +--- src/img2txt.c.orig 2011-01-29 13:45:16.663763404 +0200 ++++ src/img2txt.c 2011-01-29 13:45:34.053759487 +0200 +@@ -79,14 +79,14 @@ static void version(void) + { + printf( + "img2txt Copyright 2006-2007 Sam Hocevar and Jean-Yves Lamoureux\n" +- "Internet: <sam@hocevar.net> <jylam@lnxscene.org> Version: %s, date: %s\n" ++ "Internet: <sam@hocevar.net> <jylam@lnxscene.org> Version: %s\n" + "\n" + "img2txt, along with its documentation, may be freely copied and distributed.\n" + "\n" + "The latest version of img2txt is available from the web site,\n" + " http://caca.zoy.org/wiki/libcaca in the libcaca package.\n" + "\n", +- caca_get_version(), __DATE__); ++ caca_get_version()); + } + int main(int argc, char **argv) + { | ||
[+] | Added | libcaca-0.99-texbuild.patch ^ |
@@ -0,0 +1,13 @@ +Index: doc/doxygen.cfg.in +=================================================================== +--- doc/doxygen.cfg.in.orig 2010-01-03 04:54:32.000000000 +0200 ++++ doc/doxygen.cfg.in 2010-11-20 07:32:05.000000000 +0200 +@@ -1047,7 +1047,7 @@ USE_PDFLATEX = YES + # running if errors occur, instead of asking the user for help. + # This option is also used when generating formulas in HTML. + +-LATEX_BATCHMODE = YES ++LATEX_BATCHMODE = NO + + # If LATEX_HIDE_INDICES is set to YES then doxygen will not + # include the index chapters (such as File Index, Compound Index, etc.) | ||
[+] | Added | libcaca-0.99.beta16-missing-GLU.patch ^ |
@@ -0,0 +1,13 @@ +Index: caca/Makefile.am +=================================================================== +--- caca/Makefile.am.orig 2010-02-08 14:34:28.000000000 +0200 ++++ caca/Makefile.am 2011-01-29 12:13:29.633631655 +0200 +@@ -54,7 +54,7 @@ libcaca_la_DEPENDENCIES = \ + $(NULL) + libcaca_la_CPPFLAGS = $(AM_CPPFLAGS) @CACA_CFLAGS@ -D__LIBCACA__ + libcaca_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@ +-libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS) ++libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS) -lGLU + + codec_source = \ + codec/import.c \ | ||
[+] | Added | libcaca-X11_test.patch ^ |
@@ -0,0 +1,13 @@ +Index: configure.ac +=================================================================== +--- configure.ac.orig 2010-02-08 14:34:28.000000000 +0200 ++++ configure.ac 2011-01-29 12:09:24.385753017 +0200 +@@ -213,7 +213,7 @@ if test "${enable_x11}" != "no"; then + 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="-L${x_libraries}"; fi ++ if test -n "${x_libraries}" -a "${x_libraries}" != "/usr"; then X_LIBS="-L${x_libraries}"; fi + AC_DEFINE(USE_X11, 1, Define to 1 to activate the X11 backend driver) + CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" + X11_LIBS="${X11_LIBS} -lX11 ${X_LIBS}" | ||
[+] | Added | libcaca-ruby_am_cflags.patch ^ |
@@ -0,0 +1,13 @@ +Index: ruby/Makefile.am +=================================================================== +--- ruby/Makefile.am.orig 2010-02-08 03:27:22.000000000 +0200 ++++ ruby/Makefile.am 2010-11-20 07:31:50.000000000 +0200 +@@ -8,7 +8,7 @@ rubysite_DATA = lib/caca.rb + TESTS = test + endif + +-CFLAGS += -Wno-strict-prototypes -Wno-missing-prototypes ++AM_CFLAGS = -Wno-strict-prototypes -Wno-missing-prototypes + + caca_la_CPPFLAGS = -I$(top_srcdir)/caca -I../caca $(RUBY_CFLAGS) + caca_la_SOURCES = caca.c \ | ||
[+] | Added | libcaca-ruby_vendor_install.patch ^ |
@@ -0,0 +1,39 @@ +Index: configure.ac +=================================================================== +--- configure.ac.orig 2011-01-29 12:09:24.385753017 +0200 ++++ configure.ac 2011-01-29 12:09:54.937754460 +0200 +@@ -471,12 +471,12 @@ if test "${enable_ruby}" != "no"; then + if test "${RUBY}" != "no"; then + RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@')" + RUBY_LIBS="-L$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"libdir"@:>@') -l$(ruby -r rbconfig -e 'print Config::CONFIG@<:@"RUBY_SO_NAME"@:>@')" +- RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitearchdir"@:>@'` +- RUBY_SITELIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitelibdir"@:>@'` ++ RUBY_VENDORARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"vendorarchdir"@:>@'` ++ RUBY_VENDORLIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"vendorlibdir"@:>@'` + AC_SUBST(RUBY_CFLAGS) + AC_SUBST(RUBY_LIBS) +- AC_SUBST(RUBY_SITEARCHDIR) +- AC_SUBST(RUBY_SITELIBDIR) ++ AC_SUBST(RUBY_VENDORARCHDIR) ++ AC_SUBST(RUBY_VENDORLIBDIR) + CPPFLAGS="${CPPFLAGS} ${RUBY_CFLAGS}" + AC_CHECK_HEADERS([ruby.h], + [ac_cv_my_have_ruby="yes" +Index: ruby/Makefile.am +=================================================================== +--- ruby/Makefile.am.orig 2011-01-29 12:09:52.514753254 +0200 ++++ ruby/Makefile.am 2011-01-29 12:09:54.938755226 +0200 +@@ -1,10 +1,10 @@ + +-rubylibdir = $(RUBY_SITEARCHDIR) +-rubysitedir = $(RUBY_SITELIBDIR) ++rubylibdir = $(RUBY_VENDORARCHDIR) ++rubyvendordir = $(RUBY_VENDORLIBDIR) + + if USE_RUBY + rubylib_LTLIBRARIES = caca.la +-rubysite_DATA = lib/caca.rb ++rubyvendor_DATA = lib/caca.rb + TESTS = test + endif + |