Optimizations, mostly minor things; just picking the lowest-hanging fruit.
[platform/upstream/libvorbis.git] / vorbis.spec
1 Summary: The OGG Vorbis lossy audio compression codec.
2 Name:  vorbis
3 Version: 0.0
4 Release: 1
5 Copyright: GPL
6 Group: Development/Libraries
7 Source: http://www.xiph.org/vorbis/download/%{name}-%{version}.src.tgz 
8 Url: http://www.xiph.org/vorbis/index.html
9 BuildRoot: /var/tmp/vorbis-root
10
11 %description 
12 Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free,
13 general-purpose compressed audio format for high quality (44.1-48.0kHz,
14 16+ bit, polyphonic) audio and music at fixed and variable bitrates
15 from 16 to 128 kbps/channel. This places Vorbis in the same class as
16 audio representations including MPEG-1 audio layer 3, MPEG-4
17 audio (AAC and TwinVQ), and PAC.
18
19 %package devel
20 Copyright: LGPL
21 Summary: Development library for OGG Vorbis
22 Group: Development/Libraries
23
24 %description devel
25 Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free,
26 general-purpose compressed audio format for high quality (44.1-48.0kHz,
27 16+ bit, polyphonic) audio and music at fixed and variable bitrates 
28 from 16 to 128 kbps/channel. This places Vorbis in the same class as 
29 audio representations including MPEG-1 audio layer 3, MPEG-4 
30 audio (AAC and TwinVQ), and PAC.
31
32 %prep
33 %setup -q
34
35 %build
36 rm -rf $RPM_BUILD_ROOT
37 CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=/usr
38 make  
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 install -d $RPM_BUILD_ROOT/usr/include/vorbis 
44 install -d $RPM_BUILD_ROOT/usr/include/vorbis/book
45 install -d $RPM_BUILD_ROOT/usr/lib
46 install -d $RPM_BUILD_ROOT/usr/bin
47 install -m 0755 lib/libvorbis.a $RPM_BUILD_ROOT/usr/lib/
48 install -m 0755 lib/vorbisfile.a $RPM_BUILD_ROOT/usr/lib/
49 install -m 0644 include/vorbis/*.h $RPM_BUILD_ROOT/usr/include/vorbis/
50 install -m 0644 include/vorbis/book/*.vqh $RPM_BUILD_ROOT/usr/include/vorbis/book/
51 install -m 0755 -s huff/{residuesplit,huffbuild} $RPM_BUILD_ROOT/usr/bin
52 install -m 0755 -s vq/{genericvqtrain,lspvqtrain,residuevqtrain,\
53 vqbuild,vqcascade,vqmetrics,vqpartition} \
54                    $RPM_BUILD_ROOT/usr/bin/
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(-,root,root)
61
62 %doc README 
63 /usr/bin/*
64
65 %files devel
66 %defattr(-,root,root)
67 %doc README docs/*.{png,html}
68 /usr/include/vorbis/*
69 /usr/lib/*
70
71 %changelog
72 * Sat Apr 29 2000 Peter Jones <pjones@redhat.com>
73 - first pass.