libogg/libogg.spec
OBS User autobuild 6ce3ba5e5d Accepting request 24114 from multimedia:libs
Copy from multimedia:libs/libogg based on submit request 24114 from user tiwai

OBS-URL: https://build.opensuse.org/request/show/24114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libogg?expand=0&rev=10
2009-11-16 09:51:26 +00:00

148 lines
3.5 KiB
RPMSpec

#
# spec file for package libogg (Version 1.1.4)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: libogg
BuildRequires: pkgconfig
Summary: Ogg Bitstream Library
Version: 1.1.4
Release: 2
# bug437293
%ifarch ppc64
Obsoletes: libogg-64bit
%endif
#
Group: System/Libraries
License: BSD 3-clause (or similar)
Url: http://www.vorbis.com/
Source: %{name}-%{version}.tar.bz2
Patch: configure.dif
Patch1: lib64.dif
Patch2: m4.diff
Patch3: libogg-compile-warning-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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)
Authors:
--------
Monty <monty@xiph.org>
Xiphophorus Company <team@xiph.org>
%package -n libogg0
License: BSD 3-clause (or similar)
Summary: Ogg Bitstream Library
Group: System/Libraries
# bug437293
%ifarch ppc64
Obsoletes: libogg-64bit
%endif
#
Provides: %{name} = %{version}
#openSUSE 10.2
Obsoletes: %{name} <= 1.1.3
%description -n libogg0
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)
Authors:
--------
Monty <monty@xiph.org>
Xiphophorus Company <team@xiph.org>
%package devel
License: BSD 3-clause (or similar)
Summary: Include Files and Libraries mandatory for Ogg Development.
Group: Development/Libraries/C and C++
Requires: libogg0 = %{version} glibc-devel
# bug437293
%ifarch ppc64
Obsoletes: libogg-devel-64bit
%endif
#
%description devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use libogg.
Authors:
--------
Monty <monty@xiph.org>
Xiphophorus Company <team@xiph.org>
%prep
%setup -q
%patch
%patch2
%patch3
if [ "%_lib" == "lib64" ]; then
%patch1
fi
%build
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -g"
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name}-devel install
cp AUTHORS CHANGES COPYING README $RPM_BUILD_ROOT%{_docdir}/%{name}-devel
# remove uneeded files
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
%check
%{__make} check
%post -n libogg0 -p /sbin/ldconfig
%postun -n libogg0 -p /sbin/ldconfig
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -n libogg0
%defattr(-,root,root)
%{_libdir}/lib*.so.0*
%files devel
%defattr(-,root,root)
%doc %{_docdir}/%{name}-devel
%{_includedir}/ogg
%{_libdir}/lib*.so
%{_datadir}/aclocal/*.m4
%{_libdir}/pkgconfig/*.pc
%changelog