packaging: Bump to 1.3.2
[platform/upstream/libogg.git] / packaging / libogg.spec
1 Name:           libogg
2 Version:        1.3.2
3 Release:        0
4 License:        BSD-3-Clause
5 Summary:        Ogg Bitstream Library
6 Url:            http://www.vorbis.com/
7 Group:          Multimedia/Audio
8 Source:         http://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.gz
9 Source2:        baselibs.conf
10 Source1001:     libogg.manifest
11 BuildRequires:  pkg-config
12
13 %description
14 Libogg is a library for manipulating ogg bitstreams.  It handles both
15 making ogg bitstreams and getting packets from ogg bitstreams.
16
17 Ogg is the native bitstream format of the libvorbis (Ogg Vorbis audio
18 codec ) and the libtheora (Theora video codec)
19
20 %package devel
21 Summary:        Include Files and Libraries mandatory for Ogg Development
22 Group:          Development/Libraries
23 Requires:       glibc-devel
24 Requires:       libogg = %{version}
25
26 %description devel
27 This package contains all necessary include files and libraries needed
28 to compile and develop applications that use libogg.
29
30 %prep
31 %setup -q
32 cp %{SOURCE1001} .
33
34 %build
35 # Fix optimization level
36 sed -i s,-O20,-O3,g configure
37
38 %configure --disable-static
39 %__make %{?_smp_mflags}
40
41
42 %check
43 make check
44
45
46 %install
47 %make_install
48
49 %remove_docs
50
51 %post  -p /sbin/ldconfig
52
53 %postun  -p /sbin/ldconfig
54
55 %files
56 %manifest %{name}.manifest
57 %defattr(0644,root,root,0755)
58 %license COPYING 
59 %{_libdir}/libogg.so.*
60
61 %files devel
62 %manifest %{name}.manifest
63 %defattr(0644,root,root,0755)
64 %{_includedir}/ogg
65 %{_libdir}/libogg.so
66 %dir %{_datadir}/aclocal
67 %{_datadir}/aclocal/ogg.m4
68 %{_libdir}/pkgconfig/ogg.pc
69