Sync from SUSE:SLFO:Main libogg revision 5ccada269904cc0b84d036fd0ca323fe

This commit is contained in:
Adrian Schröter 2024-05-03 15:24:42 +02:00
commit 72542c849a
7 changed files with 483 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
baselibs.conf Normal file
View File

@ -0,0 +1,3 @@
libogg0
obsoletes "libogg-<targettype> <= <version>"
provides "libogg-<targettype> = <version>"

16
lib64.dif Normal file
View File

@ -0,0 +1,16 @@
Index: ogg.m4
===================================================================
--- ogg.m4.orig
+++ ogg.m4
@@ -19,9 +19,9 @@ AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--
elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
OGG_LIBS=""
elif test "x$ogg_prefix" != "x" ; then
- OGG_LIBS="-L$ogg_prefix/lib"
+ OGG_LIBS="-L$ogg_prefix/lib64"
elif test "x$prefix" != "xNONE" -a "x$prefix" != "x/usr"; then
- OGG_LIBS="-L$prefix/lib"
+ OGG_LIBS="-L$prefix/lib64"
fi
if test "x$ogg_prefix" != "xno" ; then

BIN
libogg-1.3.5.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

307
libogg.changes Normal file
View File

@ -0,0 +1,307 @@
-------------------------------------------------------------------
Sat Jul 17 06:50:23 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 1.3.5:
* Fix unsigned typedef problem on macOS.
* Fix overflow check in ogg_sync_buffer.
* Clean up cmake and autotools build files.
* Remove Symbian and Apple XCode build files.
* Fix documentation cross-reference links.
-------------------------------------------------------------------
Sun Sep 1 06:38:28 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.3.4
* Faster slice-by-8 CRC32 implementation.
See https://lwn.net/Articles/453931/ for motivation.
-------------------------------------------------------------------
Tue Mar 27 07:29:22 UTC 2018 - 9+suse@cirno.systems
- Use %license macro
- Update to version 1.3.3
* Fix an issue with corrupt continued packet handling.
-------------------------------------------------------------------
Sat Mar 11 14:28:46 UTC 2017 - jengelh@inai.de
- Orthographic fixes to descriptions. RPM group fix.
-------------------------------------------------------------------
Thu Feb 12 16:24:17 UTC 2015 - p.drouand@gmail.com
- Update to version 1.3.2
* Fix an bug in oggpack_writecopy().
-------------------------------------------------------------------
Sun Feb 23 19:58:36 UTC 2014 - andreas.stieger@gmx.de
- Xiph libogg 1.3.1
* Guard against very large packets.
* Respect the configure --docdir override.
* Documentation fixes.
- fix SLE build
-------------------------------------------------------------------
Sun Dec 25 15:06:51 UTC 2011 - coolo@suse.com
- own aclocal directory
-------------------------------------------------------------------
Sun Dec 25 11:14:05 UTC 2011 - idonmez@suse.com
- -O20 optimization level does not exist, use -O3
-------------------------------------------------------------------
Sun Nov 20 19:18:37 UTC 2011 - reddwarf@opensuse.org
- 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
-------------------------------------------------------------------
Fri Sep 9 15:01:23 UTC 2011 - coolo@suse.com
- replace _service with real file
-------------------------------------------------------------------
Wed Dec 8 09:27:17 UTC 2010 - reddwarf@opensuse.org
- update to version 1.2.2
* Build fix (types correction) for Mac OS X
* Update win32 project files to Visual Studio 2008
* ogg_stream_pageout_fill documentation fix
-------------------------------------------------------------------
Tue Dec 7 13:27:44 UTC 2010 - reddwarf@opensuse.org
- update to version 1.2.1
* Various build updates (see SVN)
* Add ogg_stream_pageout_fill() to API to allow applications
greater explicit flexibility in page sizing.
* Documentation updates including multiplexing description,
terminology and API (incl. ogg_packet_clear(),
ogg_stream_pageout_fill())
* Correct possible buffer overwrite in stream encoding on 32 bit
when a single packet exceed 250MB.
* Correct read-buffer overrun [without side effects] under
similar circumstances.
* Update unit testing to work properly with new page spill
heuristic.
* Alter default flushing behavior to span less often and use
larger page sizes when packet sizes are large.
* Build fixes for additional compilers
* Documentation updates
- run spec-cleaner
- removed configure.dif (reapply if -fsigned-char causes problems)
- removed libogg-compile-warning-fix.diff (upstreamed)
-------------------------------------------------------------------
Wed Dec 16 10:13:33 CET 2009 - jengelh@medozas.de
- add baselibs.conf as a source
-------------------------------------------------------------------
Tue Nov 3 19:09:28 UTC 2009 - coolo@novell.com
- updated patches to apply with fuzz=0
-------------------------------------------------------------------
Sat Aug 1 17:28:33 CEST 2009 - beineri@opensuse.org
- update to version 1.1.4:
* New async error reporting mechanism. Calls made after a fatal
error are now safely handled in the event an error code is ignored
* Added allocation checks useful to some embedded applications
* fix possible read past end of buffer when reading 0 bits
* Updates to API documentation
* Build fixes
-------------------------------------------------------------------
Wed Jan 7 12:34:56 CET 2009 - olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
-------------------------------------------------------------------
Sun May 11 12:20:52 CEST 2008 - coolo@suse.de
- fix rename of xxbit packages
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
-------------------------------------------------------------------
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
- follow library packaging policy
* move docs to devel package
* remove static library
- remove obsoleted m4 files
-------------------------------------------------------------------
Wed Jan 25 21:37:36 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Jan 11 16:47:15 CET 2006 - tiwai@suse.de
- compile with -fstack-protector.
-------------------------------------------------------------------
Fri Dec 2 16:06:15 CET 2005 - tiwai@suse.de
- updated to version 1.1.3.
-------------------------------------------------------------------
Sun Sep 4 06:42:49 CEST 2005 - aj@suse.de
- Revert last patch, wrong package.
-------------------------------------------------------------------
Sat Sep 3 16:36:22 CEST 2005 - aj@suse.de
- compile with -fno-strict-aliasing (#115135).
-------------------------------------------------------------------
Thu Jul 7 15:50:28 CEST 2005 - tiwai@suse.de
- remove -fsigned-char option (#93878).
- fix misc compile warnings.
-------------------------------------------------------------------
Wed Nov 24 17:27:57 CET 2004 - tiwai@suse.de
- updated to version 1.1.2.
-------------------------------------------------------------------
Sat Aug 21 19:21:12 CEST 2004 - schwab@suse.de
- Fix 64bit bugs.
-------------------------------------------------------------------
Wed Jan 21 18:34:21 CET 2004 - tiwai@suse.de
- fixed quoting in m4 files.
-------------------------------------------------------------------
Fri Jan 9 17:47:41 CET 2004 - adrian@suse.de
- add %run_ldconfig to %postun
-------------------------------------------------------------------
Fri Jan 9 16:54:18 CET 2004 - tiwai@suse.de
- updated to version 1.1.
- added pkgconfig to neededforbuild.
-------------------------------------------------------------------
Thu Jan 9 18:35:03 CET 2003 - kukuk@suse.de
- Add *.la files to -devel filelist
-------------------------------------------------------------------
Thu Sep 19 15:09:38 CEST 2002 - tiwai@suse.de
- fixed the conflict between the last ogg.m4 fix and 64bit
fix patches.
- moved devel documents under %{_docdir}/libogg-devel.
-------------------------------------------------------------------
Tue Sep 17 17:25:34 CEST 2002 - pthomas@suse.de
- ogg.m4:
- If prefix is /usr, don't add -I$prefix/include to OGG_CFLAGS
and don't add -L$prefix/lib to OGG_LIBS. While the latter is
just unnecessary, the former can be dangerous and will make
gcc warn.
- Fix test for prefix.
-------------------------------------------------------------------
Mon Aug 12 13:40:40 CEST 2002 - tiwai@suse.de
- added Requires %{name} = %{version} to devel package.
-------------------------------------------------------------------
Tue Jul 23 16:49:01 CEST 2002 - tiwai@suse.de
- provides the backward compatible m4 file.
-------------------------------------------------------------------
Mon Jul 22 10:45:56 CEST 2002 - tiwai@suse.de
- updated to version 1.0.
- clean up the spec file.
- added %run_ldconfig.
-------------------------------------------------------------------
Mon Jun 10 19:01:10 CEST 2002 - adrian@suse.de
- fix ogg.m4 for lib64 systems
-------------------------------------------------------------------
Thu Apr 18 11:54:55 CEST 2002 - kukuk@suse.de
- Add --libdir to configure to compile on x86_64
-------------------------------------------------------------------
Thu Feb 7 11:08:39 CET 2002 - tiwai@suse.de
- fixed compile on s390x.
-------------------------------------------------------------------
Fri Jan 4 11:43:55 CET 2002 - tiwai@suse.de
- updated to RC3.
sync with cvs 2002.01.04.
-------------------------------------------------------------------
Tue Dec 4 11:23:28 CET 2001 - tiwai@suse.de
- sync with cvs 2001.12.04.
-------------------------------------------------------------------
Wed Oct 24 17:39:09 CEST 2001 - tiwai@suse.de
- sync with cvs 20011024.
+ fixed documents
- removed Requires to libogg from devel.
-------------------------------------------------------------------
Mon Aug 13 16:56:55 CEST 2001 - tiwai@suse.de
- updated to 1.0rc2 from cvs 20010813.
-------------------------------------------------------------------
Thu Jun 7 10:22:13 CEST 2001 - tiwai@suse.de
- fixed build with the recent libtool.
-------------------------------------------------------------------
Mon Mar 12 15:21:41 CET 2001 - tiwai@suse.de
- corrected copyright in spec file.
-------------------------------------------------------------------
Mon Feb 26 17:07:36 CET 2001 - tiwai@suse.de
- Updated to 1.0beta4.
-------------------------------------------------------------------
Wed Jan 31 12:22:39 CET 2001 - tiwai@suse.de
- Initial version: 1.0beta3.

100
libogg.spec Normal file
View File

@ -0,0 +1,100 @@
#
# spec file for package libogg
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _SO_nr 0
Name: libogg
Version: 1.3.5
Release: 0
Summary: Ogg Bitstream Library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://xiph.org/vorbis/
Source: https://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.xz
Source2: baselibs.conf
Patch1: lib64.dif
Patch2: m4.diff
BuildRequires: pkgconfig
BuildRequires: xz
%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 libvorbis (Ogg Vorbis audio
codec) and libtheora (Theora video codec).
%package -n libogg%{_SO_nr}
Summary: Ogg Bitstream Library
Group: System/Libraries
%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 libvorbis (Ogg Vorbis audio
codec) and libtheora (Theora video codec).
%package devel
Summary: Include Files and Libraries 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
# Fix optimization level
sed -i s,-O20,-O3,g configure
%configure --disable-static
%make_build
%install
%make_install docdir="%{_docdir}/%{name}-devel"
# remove unneeded files
find %{buildroot} -type f -name "*.la" -delete -print
%check
%make_build check
%post -n libogg%{_SO_nr} -p /sbin/ldconfig
%postun -n libogg%{_SO_nr} -p /sbin/ldconfig
%files -n libogg%{_SO_nr}
%doc AUTHORS CHANGES README.md
%license COPYING
%{_libdir}/libogg.so.%{_SO_nr}*
%files devel
%{_docdir}/%{name}-devel
%{_includedir}/ogg
%{_libdir}/libogg.so
%dir %{_datadir}/aclocal
%{_datadir}/aclocal/ogg.m4
%{_libdir}/pkgconfig/ogg.pc
%changelog

31
m4.diff Normal file
View File

@ -0,0 +1,31 @@
Index: ogg.m4
===================================================================
--- ogg.m4.orig
+++ ogg.m4
@@ -20,7 +20,7 @@ AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--
OGG_LIBS=""
elif test "x$ogg_prefix" != "x" ; then
OGG_LIBS="-L$ogg_prefix/lib"
- elif test "x$prefix" != "xNONE" ; then
+ elif test "x$prefix" != "xNONE" -a "x$prefix" != "x/usr"; then
OGG_LIBS="-L$prefix/lib"
fi
@@ -34,7 +34,7 @@ AC_ARG_ENABLE(oggtest,AC_HELP_STRING([--
OGG_CFLAGS=""
elif test "x$ogg_prefix" != "x" ; then
OGG_CFLAGS="-I$ogg_prefix/include"
- elif test "x$prefix" != "xNONE"; then
+ elif test "x$prefix" != "xNONE" -a "x$prefix" != "x/usr"; then
OGG_CFLAGS="-I$prefix/include"
fi
@@ -62,7 +62,7 @@ dnl
#include <string.h>
#include <ogg/ogg.h>
-int main ()
+int main (void)
{
system("touch conf.oggtest");
return 0;