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