source: libcaca/trunk/libcaca.spec @ 3621

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