File: libcaca.spec

package info (click to toggle)
libcaca 0.99.beta19-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,312 kB
  • sloc: ansic: 22,346; python: 2,316; cs: 1,213; cpp: 1,114; java: 916; objc: 836; makefile: 606; sh: 457; ruby: 193; asm: 65
file content (129 lines) | stat: -rw-r--r-- 4,160 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
%define name libcaca
%define version 0.9
%define release 1

Name: %{name}
Version: %{version}
Release: %{release}
URL: http://sam.zoy.org/projects/libcaca/
Source: http://sam.zoy.org/projects/libcaca/%{name}-%{version}.tar.bz2
License: GPL
Group: System/Libraries
Packager: Sam Hocevar (RPM packages) <sam+rpm@zoy.org>
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Buildrequires: XFree86-devel, ncurses-devel >= 5, slang-devel
Buildrequires: imlib2-devel
Buildrequires: doxygen, tetex-latex, tetex-dvips

Summary: Text mode graphics library
%description
libcaca is the Colour AsCii Art library. It provides high level functions
for colour text drawing, simple primitives for line, polygon and ellipse
drawing, as well as powerful image to text conversion routines.

%package -n %{name}-devel
Summary: Development files for libcaca
Group: Development/C
Requires: XFree86-devel, ncurses-devel >= 5, slang-devel
Provides: %{name}-devel = %{version}-%{release}
%description -n %{name}-devel
libcaca is the Colour AsCii Art library. It provides high level functions
for colour text drawing, simple primitives for line, polygon and ellipse
drawing, as well as powerful image to text conversion routines.

This package contains the header files and static libraries needed to
compile applications or shared objects that use libcaca.

%package -n caca-utils
Summary: Text mode graphics utilities
Group: Graphics
%description -n caca-utils
This package contains utilities and demonstration programs for libcaca, the
Colour AsCii Art library.

cacaview is a simple image viewer for the terminal. It opens most image
formats such as JPEG, PNG, GIF etc. and renders them on the terminal using
ASCII art. The user can zoom and scroll the image, set the dithering method
or enable anti-aliasing.

cacaball is a tiny graphic program that renders animated ASCII metaballs on
the screen, cacafire is a port of AALib's aafire and displays burning ASCII
art flames, cacamoir animates colourful moire circles and cacaplas displays
an old school plasma effect.

%prep
case "${RPM_COMMAND:-all}" in
all)
%setup -q
;;esac

%build
case "${RPM_COMMAND:-all}" in
all)
./configure --prefix=%{_prefix} \
  --libdir=%{_libdir} \
  --bindir=\${prefix}/bin \
  --mandir=\${prefix}/share/man \
  --infodir=\${prefix}/share/info \
  --enable-slang --enable-ncurses --enable-x11 --enable-imlib2 --enable-doc
;;esac
make 

%install
rm -rf %{buildroot}
%makeinstall
mv %{buildroot}/%{_prefix}/share/doc/libcaca-dev %{buildroot}/%{_prefix}/share/doc/libcaca-devel-%{version}
mkdir %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}
cp `find %{buildroot}/%{_prefix}/share/doc/libcaca-devel-%{version}/ -name '[A-Z]*'` %{buildroot}/%{_prefix}/share/doc/caca-utils-%{version}/

%clean
rm -rf %{buildroot}

%files -n %{name}-devel
%defattr(-,root,root)
%{_libdir}/*
%{_prefix}/bin/caca-config
%{_prefix}/include/*
%{_prefix}/share/doc/libcaca-devel-%{version}/*
%{_prefix}/share/man/man1/caca-config.1*
%{_prefix}/share/man/man3/*

%files -n caca-utils
%defattr(-,root,root)
%{_prefix}/bin/cacaball
%{_prefix}/bin/cacafire
%{_prefix}/bin/cacamoir
%{_prefix}/bin/cacaplas
%{_prefix}/bin/cacaview
%{_prefix}/share/doc/caca-utils-%{version}/*
%{_prefix}/share/libcaca/*
%{_prefix}/share/man/man1/cacaball.1*
%{_prefix}/share/man/man1/cacafire.1*
%{_prefix}/share/man/man1/cacamoir.1*
%{_prefix}/share/man/man1/cacaplas.1*
%{_prefix}/share/man/man1/cacaview.1*

%changelog
* Sun Feb 2 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.9-1
- new release

* Sun Jan 18 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.8-1
- new release

* Sat Jan 7 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.7-1
- new release

* Sat Jan 4 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-2
- install documentation into {doc}/package-version instead of {doc}/package
- added tetex-dvips to the build dependencies

* Sat Jan 3 2004 Sam Hocevar (RPM packages) <sam+rpm@zoy.org> 0.6-1
- new release
- more detailed descriptions
- split the RPM into libcaca-devel and caca-utils
- packages are rpmlint clean

* Mon Dec 29 2003 Richard Zidlicky <rz@linux-m68k.org> 0.5-1
- created specfile