2007-01-15 23:22:37 +00:00
|
|
|
#
|
2010-12-07 14:12:25 +00:00
|
|
|
# spec file for package libogg (Version 1.2.1)
|
2007-01-15 23:22:37 +00:00
|
|
|
#
|
2009-01-08 17:42:32 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:22:37 +00:00
|
|
|
#
|
2009-01-08 17:42:32 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-04-16 22:37:50 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:22:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-12-07 14:12:25 +00:00
|
|
|
%define _SO_nr 0
|
2008-04-10 12:31:36 +00:00
|
|
|
|
2007-04-16 22:37:50 +00:00
|
|
|
Name: libogg
|
2010-12-07 14:12:25 +00:00
|
|
|
Version: to_be_filled_by_service
|
|
|
|
Release: 0
|
2007-04-16 22:37:50 +00:00
|
|
|
Summary: Ogg Bitstream Library
|
2009-12-29 23:26:31 +00:00
|
|
|
License: BSD3c(or similar)
|
2007-12-13 19:15:24 +00:00
|
|
|
Url: http://www.vorbis.com/
|
2010-12-07 14:12:25 +00:00
|
|
|
#
|
|
|
|
Group: System/Libraries
|
2007-04-16 22:37:50 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2009-12-29 23:26:31 +00:00
|
|
|
Source2: baselibs.conf
|
2007-04-16 22:37:50 +00:00
|
|
|
Patch1: lib64.dif
|
|
|
|
Patch2: m4.diff
|
2010-12-07 14:12:25 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
# bug437293 (SLES10 -> SLES11 upgrade path)
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libogg-64bit
|
|
|
|
%endif
|
2007-04-16 22:37:50 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:22:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libogg is a library for manipulating ogg bitstreams. It handles both
|
|
|
|
making ogg bitstreams and getting packets from ogg bitstreams.
|
|
|
|
|
2007-12-13 19:15:24 +00:00
|
|
|
Ogg is the native bitstream format of the libvorbis (Ogg Vorbis audio
|
|
|
|
codec ) and the libtheora (Theora video codec)
|
|
|
|
|
2010-12-07 14:12:25 +00:00
|
|
|
%package -n libogg%{_SO_nr}
|
2007-12-13 19:15:24 +00:00
|
|
|
Summary: Ogg Bitstream Library
|
|
|
|
Group: System/Libraries
|
2010-12-07 14:12:25 +00:00
|
|
|
# bug437293 (SLES10 -> SLES11 upgrade path)
|
2009-01-08 17:42:32 +00:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libogg-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-12-13 19:15:24 +00:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
#openSUSE 10.2
|
|
|
|
Obsoletes: %{name} <= 1.1.3
|
|
|
|
|
2010-12-07 14:12:25 +00:00
|
|
|
%description -n libogg%{_SO_nr}
|
2007-12-13 19:15:24 +00:00
|
|
|
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)
|
|
|
|
|
2007-01-15 23:22:37 +00:00
|
|
|
%package devel
|
2009-12-29 23:26:31 +00:00
|
|
|
License: BSD3c(or similar)
|
2010-12-07 14:12:25 +00:00
|
|
|
Summary: Include Files and Libraries mandatory for Ogg Development
|
2007-04-16 22:37:50 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-07 14:12:25 +00:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libogg%{_SO_nr} = %{version}
|
|
|
|
# bug437293 (SLES10 -> SLES11 upgrade path)
|
2009-01-08 17:42:32 +00:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libogg-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-15 23:22:37 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
2007-12-13 19:15:24 +00:00
|
|
|
to compile and develop applications that use libogg.
|
2007-01-15 23:22:37 +00:00
|
|
|
|
|
|
|
%prep
|
2007-12-13 19:15:24 +00:00
|
|
|
%setup -q
|
2007-01-15 23:22:37 +00:00
|
|
|
%patch2
|
2010-12-07 14:12:25 +00:00
|
|
|
if [ "%{_lib}" == "lib64" ]; then
|
2007-01-15 23:22:37 +00:00
|
|
|
%patch1
|
|
|
|
fi
|
|
|
|
|
|
|
|
%build
|
2010-12-07 14:12:25 +00:00
|
|
|
%configure --disable-static
|
|
|
|
%{__make} %{?_smp_mflags}
|
2007-01-15 23:22:37 +00:00
|
|
|
|
|
|
|
%install
|
2010-12-07 14:12:25 +00:00
|
|
|
%{__make} DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-devel install
|
|
|
|
# remove unneeded files
|
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2007-12-13 19:15:24 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} check
|
2007-01-15 23:22:37 +00:00
|
|
|
|
2010-12-07 14:12:25 +00:00
|
|
|
%post -n libogg%{_SO_nr} -p /sbin/ldconfig
|
2007-01-15 23:22:37 +00:00
|
|
|
|
2010-12-07 14:12:25 +00:00
|
|
|
%postun -n libogg%{_SO_nr} -p /sbin/ldconfig
|
2007-01-15 23:22:37 +00:00
|
|
|
|
|
|
|
%clean
|
2010-12-07 14:12:25 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2007-01-15 23:22:37 +00:00
|
|
|
|
2010-12-07 14:12:25 +00:00
|
|
|
%files -n libogg%{_SO_nr}
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc AUTHORS CHANGES COPYING README
|
|
|
|
%{_libdir}/libogg.so.%{_SO_nr}*
|
2007-01-15 23:22:37 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2010-12-07 14:12:25 +00:00
|
|
|
%{_docdir}/%{name}-devel
|
2007-01-15 23:22:37 +00:00
|
|
|
%{_includedir}/ogg
|
2010-12-07 14:12:25 +00:00
|
|
|
%{_libdir}/libogg.so
|
|
|
|
%{_datadir}/aclocal/ogg.m4
|
|
|
|
%{_libdir}/pkgconfig/ogg.pc
|
2007-01-15 23:22:37 +00:00
|
|
|
|
2007-04-16 22:37:50 +00:00
|
|
|
%changelog
|