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.
 
 
 
 
 
 

130 righe
4.1 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. %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 --enable-doc
  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-%{version}
  67. mkdir %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}
  68. cp `find %{buildroot}/%{_prefix}/share/doc/libcaca-devel-%{version}/ -name '[A-Z]*'` %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}/
  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-%{version}/*
  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/cacaball
  82. %{_prefix}/bin/cacafire
  83. %{_prefix}/bin/cacamoir
  84. %{_prefix}/bin/cacaplas
  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/cacafire.1*
  90. %{_prefix}/share/man/man1/cacamoir.1*
  91. %{_prefix}/share/man/man1/cacaplas.1*
  92. %{_prefix}/share/man/man1/cacaview.1*
  93. %changelog
  94. * Sun Feb 2 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.9-1
  95. - new release
  96. * Sun Jan 18 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.8-1
  97. - new release
  98. * Sat Jan 7 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.7-1
  99. - new release
  100. * Sat Jan 4 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-2
  101. - install documentation into {doc}/package-version instead of {doc}/package
  102. - added tetex-dvips to the build dependencies
  103. * Sat Jan 3 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-1
  104. - new release
  105. - more detailed descriptions
  106. - split the RPM into libcaca-devel and caca-utils
  107. - packages are rpmlint clean
  108. * Mon Dec 29 2003 Richard Zidlicky <rz@linux-m68k.org> 0.5-1
  109. - created specfile