Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

120 righe
3.8 KiB

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