libogg/libogg.spec
Dominique Leuenberger 9edc182506 Accepting request 92758 from home:RedDwarf:branches:multimedia:libs
- updated to version 1.3.0
  * Add ogg_stream_flush_fill() call
    This produces longer packets on flush, similar to
    what ogg_stream_pageout_fill() does for single pages.
- run spec-cleaner on it
- remove "SLES10 -> SLES11 upgrade path" parts since the upgrade
  already happened and anyway the entry in bugzilla is not public

OBS-URL: https://build.opensuse.org/request/show/92758
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libogg?expand=0&rev=18
2011-11-21 09:02:04 +00:00

98 lines
2.7 KiB
RPMSpec

#
# spec file for package libogg
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _SO_nr 0
Name: libogg
Version: 1.3.0
Release: 0
License: BSD3c(or similar)
Summary: Ogg Bitstream Library
Url: http://www.vorbis.com/
Group: System/Libraries
Source: http://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.gz
Source2: baselibs.conf
Patch1: lib64.dif
Patch2: m4.diff
BuildRequires: pkg-config
%description
Libogg is a library for manipulating ogg bitstreams. It handles both
making ogg bitstreams and getting packets from ogg bitstreams.
Ogg is the native bitstream format of the libvorbis (Ogg Vorbis audio
codec ) and the libtheora (Theora video codec)
%package -n libogg%{_SO_nr}
Summary: Ogg Bitstream Library
%description -n libogg%{_SO_nr}
Libogg is a library for manipulating ogg bitstreams. It handles both
making ogg bitstreams and getting packets from ogg bitstreams.
Ogg is the native bitstream format of the libvorbis (Ogg Vorbis audio
codec ) and the libtheora (Theora video codec)
%package devel
Summary: Include Files and Libraries mandatory for Ogg Development
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libogg%{_SO_nr} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use libogg.
%prep
%setup -q
%patch2
if [ "%{_lib}" == "lib64" ]; then
%patch1
fi
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-devel install
# remove unneeded files
rm -f %{buildroot}%{_libdir}/*.la
%check
make check
%post -n libogg%{_SO_nr} -p /sbin/ldconfig
%postun -n libogg%{_SO_nr} -p /sbin/ldconfig
%files -n libogg%{_SO_nr}
%defattr(0644,root,root,0755)
%doc AUTHORS CHANGES COPYING README
%{_libdir}/libogg.so.%{_SO_nr}*
%files devel
%defattr(0644,root,root,0755)
%{_docdir}/%{name}-devel
%{_includedir}/ogg
%{_libdir}/libogg.so
%{_datadir}/aclocal/ogg.m4
%{_libdir}/pkgconfig/ogg.pc
%changelog