You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

135 line
4.3 KiB

  1. %define name libcaca
  2. %define version 0.9
  3. %define release 1
  4. Name: %{name}
  5. Version: %{version}
  6. Release: %{release}
  7. URL: http://sam.zoy.org/projects/libcaca/
  8. Source: http://sam.zoy.org/projects/libcaca/%{name}-%{version}.tar.bz2
  9. License: GPL
  10. Group: System/Libraries
  11. Packager: Sam Hocevar (RPM packages) <sam+rpm@zoy.org>
  12. BuildRoot: %{_tmppath}/%{name}-buildroot
  13. Prefix: %{_prefix}
  14. Buildrequires: XFree86-devel, ncurses-devel >= 5, slang-devel
  15. Buildrequires: imlib2-devel
  16. Buildrequires: doxygen, tetex-latex, tetex-dvips
  17. Summary: Text mode graphics library
  18. %description
  19. libcaca is the Colour AsCii Art library. It provides high level functions
  20. for colour text drawing, simple primitives for line, polygon and ellipse
  21. drawing, as well as powerful image to text conversion routines.
  22. %package -n %{name}-devel
  23. Summary: Development files for libcaca
  24. Group: Development/C
  25. Requires: XFree86-devel, ncurses-devel >= 5, slang-devel
  26. Provides: %{name}-devel = %{version}-%{release}
  27. %description -n %{name}-devel
  28. libcaca is the Colour AsCii Art library. It provides high level functions
  29. for colour text drawing, simple primitives for line, polygon and ellipse
  30. drawing, as well as powerful image to text conversion routines.
  31. This package contains the header files and static libraries needed to
  32. compile applications or shared objects that use libcaca.
  33. %package -n caca-utils
  34. Summary: Text mode graphics utilities
  35. Group: Graphics
  36. %description -n caca-utils
  37. This package contains utilities and demonstration programs for libcaca, the
  38. Colour AsCii Art library.
  39. cacaview is a simple image viewer for the terminal. It opens most image
  40. formats such as JPEG, PNG, GIF etc. and renders them on the terminal using
  41. ASCII art. The user can zoom and scroll the image, set the dithering method
  42. or enable anti-aliasing.
  43. cacaball is a tiny graphic program that renders animated ASCII metaballs on
  44. the screen, cacafire is a port of AALib's aafire and displays burning ASCII
  45. art flames, cacamoir animates colourful moire circles and cacaplas displays
  46. an old school plasma effect.
  47. cacademo is a simple application that shows the libcaca rendering features
  48. such as line and ellipses drawing, triangle filling and sprite blitting.
  49. %prep
  50. case "${RPM_COMMAND:-all}" in
  51. all)
  52. %setup -q
  53. ;;esac
  54. %build
  55. case "${RPM_COMMAND:-all}" in
  56. all)
  57. ./configure --prefix=%{_prefix} \
  58. --libdir=%{_libdir} \
  59. --bindir=\${prefix}/bin \
  60. --mandir=\${prefix}/share/man \
  61. --infodir=\${prefix}/share/info \
  62. --enable-slang --enable-ncurses --enable-x11 --enable-imlib2 --enable-doc
  63. ;;esac
  64. make
  65. %install
  66. rm -rf %{buildroot}
  67. %makeinstall
  68. mv %{buildroot}/%{_prefix}/share/doc/libcaca-dev %{buildroot}/%{_prefix}/share/doc/libcaca-devel-%{version}
  69. mkdir %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}
  70. cp `find %{buildroot}/%{_prefix}/share/doc/libcaca-devel-%{version}/ -name '[A-Z]*'` %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}/
  71. %clean
  72. rm -rf %{buildroot}
  73. %files -n %{name}-devel
  74. %defattr(-,root,root)
  75. %{_libdir}/*
  76. %{_prefix}/bin/caca-config
  77. %{_prefix}/include/*
  78. %{_prefix}/share/doc/libcaca-devel-%{version}/*
  79. %{_prefix}/share/man/man1/caca-config.1*
  80. %{_prefix}/share/man/man3/*
  81. %files -n caca-utils
  82. %defattr(-,root,root)
  83. %{_prefix}/bin/cacaball
  84. %{_prefix}/bin/cacademo
  85. %{_prefix}/bin/cacafire
  86. %{_prefix}/bin/cacamoir
  87. %{_prefix}/bin/cacaplas
  88. %{_prefix}/bin/cacaview
  89. %{_prefix}/share/doc/caca-utils-%{version}/*
  90. %{_prefix}/share/libcaca/*
  91. %{_prefix}/share/man/man1/cacaball.1*
  92. %{_prefix}/share/man/man1/cacademo.1*
  93. %{_prefix}/share/man/man1/cacafire.1*
  94. %{_prefix}/share/man/man1/cacamoir.1*
  95. %{_prefix}/share/man/man1/cacaplas.1*
  96. %{_prefix}/share/man/man1/cacaview.1*
  97. %changelog
  98. * Sun Feb 2 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.9-1
  99. - new release
  100. * Sun Jan 18 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.8-1
  101. - new release
  102. * Sat Jan 7 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.7-1
  103. - new release
  104. * Sat Jan 4 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-2
  105. - install documentation into {doc}/package-version instead of {doc}/package
  106. - added tetex-dvips to the build dependencies
  107. * Sat Jan 3 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-1
  108. - new release
  109. - more detailed descriptions
  110. - split the RPM into libcaca-devel and caca-utils
  111. - packages are rpmlint clean
  112. * Mon Dec 29 2003 Richard Zidlicky <rz@linux-m68k.org> 0.5-1
  113. - created specfile