source: libcaca/branches/0.6/libcaca.spec @ 1275

Last change on this file since 1275 was 310, checked in by Sam Hocevar, 19 years ago
  • configure.ac NEWS: + Prepared the 0.6 release.
  • libcaca.spec: + Split the RPM into libcaca-devel and caca-utils. + More detailed descriptions. + Packages are now rpmlint clean.
  • doc/Makefile.am: + Symlink cacafire.1 to cacademo.1 upon manpage installation.
File size: 3.4 KB
Line 
1%define name  libcaca
2%define version 0.6
3%define release 1
4
5Name: %{name}
6Version: %{version}
7Release: %{release}
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>
13BuildRoot: %{_tmppath}/%{name}-buildroot
14Prefix: %{_prefix}
15Buildrequires: XFree86-devel, ncurses-devel >= 5, slang-devel
16Buildrequires: imlib2-devel
17Buildrequires: doxygen, tetex-latex
18
19Summary: Text mode graphics library
20%description
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.
24
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.
34
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
50cacafire is a port of AALib's aafire and displays burning ASCII art flames.
51
52cacademo is a simple application that shows the libcaca rendering features
53such as line and ellipses drawing, triangle filling, and sprite blitting.
54
55caca-spritedit is a simple sprite viewer for libcaca.
56
57%prep
58case "${RPM_COMMAND:-all}" in
59all)
60%setup -q
61;;esac
62
63%build
64case "${RPM_COMMAND:-all}" in
65all)
66./configure --prefix=%{_prefix} \
67  --libdir=%{_libdir} \
68  --bindir=\${prefix}/bin \
69  --mandir=\${prefix}/share/man \
70  --infodir=\${prefix}/share/info \
71  --enable-slang --enable-ncurses --enable-x11 --enable-imlib2
72;;esac
73make
74
75%install
76rm -rf %{buildroot}
77%makeinstall
78mv %{buildroot}/%{_prefix}/share/doc/libcaca-dev %{buildroot}/%{_prefix}/share/doc/libcaca-devel
79mkdir %{buildroot}/%{_prefix}/share/doc/caca-utils
80cp `find %{buildroot}/%{_prefix}/share/doc/libcaca-devel/ -name '[A-Z]*'` %{buildroot}/%{_prefix}/share/doc/caca-utils/
81
82%clean
83rm -rf %{buildroot}
84
85%files -n %{name}-devel
86%defattr(-,root,root)
87%{_libdir}/*
88%{_prefix}/bin/caca-config
89%{_prefix}/include/*
90%{_prefix}/share/doc/libcaca-devel/*
91%{_prefix}/share/man/man1/caca-config.1*
92%{_prefix}/share/man/man3/*
93
94%files -n caca-utils
95%defattr(-,root,root)
96%{_prefix}/bin/cacademo
97%{_prefix}/bin/cacafire
98%{_prefix}/bin/cacaview
99%{_prefix}/bin/caca-spritedit
100%{_prefix}/share/doc/caca-utils/*
101%{_prefix}/share/libcaca/*
102%{_prefix}/share/man/man1/cacademo.1*
103%{_prefix}/share/man/man1/cacafire.1*
104%{_prefix}/share/man/man1/cacaview.1*
105%{_prefix}/share/man/man1/caca-spritedit.1*
106
107%changelog
108* Sat Jan 3 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-1
109- new release
110
111* Mon Dec 29 2003 Richard Zidlicky <rz@linux-m68k.org> 0.5-1
112- created specfile
113
Note: See TracBrowser for help on using the repository browser.