25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

114 satır
3.4 KiB

  1. %define name libcaca
  2. %define version 0.6
  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
  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. cacafire is a port of AALib's aafire and displays burning ASCII art flames.
  44. cacademo is a simple application that shows the libcaca rendering features
  45. such as line and ellipses drawing, triangle filling, and sprite blitting.
  46. caca-spritedit is a simple sprite viewer for libcaca.
  47. %prep
  48. case "${RPM_COMMAND:-all}" in
  49. all)
  50. %setup -q
  51. ;;esac
  52. %build
  53. case "${RPM_COMMAND:-all}" in
  54. all)
  55. ./configure --prefix=%{_prefix} \
  56. --libdir=%{_libdir} \
  57. --bindir=\${prefix}/bin \
  58. --mandir=\${prefix}/share/man \
  59. --infodir=\${prefix}/share/info \
  60. --enable-slang --enable-ncurses --enable-x11 --enable-imlib2
  61. ;;esac
  62. make
  63. %install
  64. rm -rf %{buildroot}
  65. %makeinstall
  66. mv %{buildroot}/%{_prefix}/share/doc/libcaca-dev %{buildroot}/%{_prefix}/share/doc/libcaca-devel
  67. mkdir %{buildroot}/%{_prefix}/share/doc/caca-utils
  68. cp `find %{buildroot}/%{_prefix}/share/doc/libcaca-devel/ -name '[A-Z]*'` %{buildroot}/%{_prefix}/share/doc/caca-utils/
  69. %clean
  70. rm -rf %{buildroot}
  71. %files -n %{name}-devel
  72. %defattr(-,root,root)
  73. %{_libdir}/*
  74. %{_prefix}/bin/caca-config
  75. %{_prefix}/include/*
  76. %{_prefix}/share/doc/libcaca-devel/*
  77. %{_prefix}/share/man/man1/caca-config.1*
  78. %{_prefix}/share/man/man3/*
  79. %files -n caca-utils
  80. %defattr(-,root,root)
  81. %{_prefix}/bin/cacademo
  82. %{_prefix}/bin/cacafire
  83. %{_prefix}/bin/cacaview
  84. %{_prefix}/bin/caca-spritedit
  85. %{_prefix}/share/doc/caca-utils/*
  86. %{_prefix}/share/libcaca/*
  87. %{_prefix}/share/man/man1/cacademo.1*
  88. %{_prefix}/share/man/man1/cacafire.1*
  89. %{_prefix}/share/man/man1/cacaview.1*
  90. %{_prefix}/share/man/man1/caca-spritedit.1*
  91. %changelog
  92. * Sat Jan 3 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-1
  93. - new release
  94. * Mon Dec 29 2003 Richard Zidlicky <rz@linux-m68k.org> 0.5-1
  95. - created specfile