OBS User unknown 2007-12-13 19:15:24 +00:00 committed by Git OBS Bridge
parent 0366532406
commit 588af5b54a
2 changed files with 54 additions and 20 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Aug 12 00:36:01 CEST 2007 - crrodriguez@suse.de
- really follow the library packaging policy
- run make check
- add missing glibc-devel dependency on -devel package
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 16 15:06:37 CEST 2007 - tiwai@suse.de Mon Apr 16 15:06:37 CEST 2007 - tiwai@suse.de

View File

@ -14,10 +14,10 @@ Name: libogg
BuildRequires: pkgconfig BuildRequires: pkgconfig
Summary: Ogg Bitstream Library Summary: Ogg Bitstream Library
Version: 1.1.3 Version: 1.1.3
Release: 43 Release: 84
Group: System/Libraries Group: System/Libraries
License: BSD License and BSD-like License: BSD 3-Clause
URL: http://www.vorbis.com/ Url: http://www.vorbis.com/
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Patch: configure.dif Patch: configure.dif
Patch1: lib64.dif Patch1: lib64.dif
@ -29,6 +29,30 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Libogg is a library for manipulating ogg bitstreams. It handles both Libogg is a library for manipulating ogg bitstreams. It handles both
making ogg bitstreams and getting packets from ogg bitstreams. 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
Summary: Ogg Bitstream Library
Group: System/Libraries
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: Authors:
@ -37,13 +61,13 @@ Authors:
Xiphophorus Company <team@xiph.org> Xiphophorus Company <team@xiph.org>
%package devel %package devel
Summary: Include Files and Libraries mandatory for Development. Summary: Include Files and Libraries mandatory for Ogg Development.
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: libogg0 = %{version} glibc-devel
%description devel %description devel
This package contains all necessary include files and libraries needed This package contains all necessary include files and libraries needed
to develop applications that require these. to compile and develop applications that use libogg.
@ -53,7 +77,7 @@ Authors:
Xiphophorus Company <team@xiph.org> Xiphophorus Company <team@xiph.org>
%prep %prep
%setup %setup -q
%patch %patch
%patch2 %patch2
%patch3 %patch3
@ -62,31 +86,30 @@ if [ "%_lib" == "lib64" ]; then
fi fi
%build %build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf --force --install autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS -g -fstack-protector" \ export CFLAGS="$RPM_OPT_FLAGS -g"
./configure --prefix=%{_prefix} --libdir=%{_libdir} \ %configure --disable-static --with-pic
--disable-static %{__make} %{?jobs:-j%jobs}
make
%install %install
make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name}-devel install make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name}-devel install
cp AUTHORS CHANGES COPYING README $RPM_BUILD_ROOT%{_docdir}/%{name}-devel cp AUTHORS CHANGES COPYING README $RPM_BUILD_ROOT%{_docdir}/%{name}-devel
# remove uneeded files # remove uneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
%post %check
%run_ldconfig %{__make} check
%postun %post -n libogg0 -p /sbin/ldconfig
%run_ldconfig
%postun -n libogg0 -p /sbin/ldconfig
%clean %clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
%files %files -n libogg0
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.0*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -97,6 +120,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%changelog %changelog
* Sun Aug 12 2007 - crrodriguez@suse.de
- really follow the library packaging policy
- run make check
- add missing glibc-devel dependency on -devel package
* Mon Apr 16 2007 - tiwai@suse.de * Mon Apr 16 2007 - tiwai@suse.de
- follow library packaging policy - follow library packaging policy
* move docs to devel package * move docs to devel package