Sync from SUSE:SLFO:Main libao revision b6d4199df8c3228021d63fb4d18e95e4

This commit is contained in:
Adrian Schröter 2024-05-03 14:31:59 +02:00
commit 2e61489a20
7 changed files with 546 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

15
_service Normal file
View File

@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="version">1.2.2</param>
<param name="versionformat">1.2.2+git%cd.%h</param>
<param name="url">https://git.xiph.org/libao.git</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

4
baselibs.conf Normal file
View File

@ -0,0 +1,4 @@
libao4
targettype 32bit provides "libao-<targettype> = 1.1.0"
targettype 32bit obsoletes "libao-<targettype> < 1.1.0"
libao-plugins4

BIN
libao-1.2.2+git20180114.d522165.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

44
libao-ocloexec.patch Normal file
View File

@ -0,0 +1,44 @@
--- src/audio_out.c.orig
+++ src/audio_out.c
@@ -1344,7 +1344,7 @@ ao_device *ao_open_file (int driver_id,
if (!overwrite) {
/* Test for file existence */
- file = fopen(filename, "r");
+ file = fopen(filename, "re");
if (file != NULL) {
fclose(file);
errno = AO_EFILEEXISTS;
@@ -1353,7 +1353,7 @@ ao_device *ao_open_file (int driver_id,
}
- file = fopen(filename, "w");
+ file = fopen(filename, "we");
}
--- src/config.c.orig
+++ src/config.c
@@ -57,7 +57,7 @@ static int ao_read_config_file(ao_config
char line[LINE_LEN];
int end;
- if ( !(fp = fopen(config_file, "r")) )
+ if ( !(fp = fopen(config_file, "re")) )
return 0; /* Can't open file */
while (fgets(line, LINE_LEN, fp)) {
--- configure.ac.orig
+++ configure.ac
@@ -30,7 +30,9 @@ dnl Check for programs
dnl ====================================
cflags_save="$CFLAGS"
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL

325
libao.changes Normal file
View File

@ -0,0 +1,325 @@
-------------------------------------------------------------------
Sun Feb 25 11:33:08 UTC 2018 - jengelh@inai.de
- Rename %soname to %sover to better reflect its use.
- Fix RPM groups. Trim other-OS parts from description.
-------------------------------------------------------------------
Tue Feb 20 14:29:28 UTC 2018 - tchvatal@suse.com
- Add baselibs.conf to sources
- Switch to _service as there are no real upstream releases for
long time
- Update to version 1.2.2+git20180114.d522165:
* Check memory allocations for success
* Enable pulse build in travis
* pulse: fix missing include warning for nanosleep
* travis: Test on both linux and osx.
* Bump version and release date on docs
* Add an update-doc-version target
* Revert "Insure that the alsa plugin links against libao, since the plugin calls ao_is_big_endian from libao."
* Drop the old debian/ directory
* Replace autogen.sh with a simple wrapper about autoreconf.
* Enable AM_SILENT_RULES when it's available.
-------------------------------------------------------------------
Thu May 15 15:15:16 UTC 2014 - tchvatal@suse.com
- Version bump to 1.2.0:
- Added missing ao_file_extension() (see Trac #1841)
- Fixed memory leak in ao_shutdown() (see Trac #1799)
- Updated manpage libao.conf.5 (see Trac #1822)
- Corrected doc/ao_play.html (see Trac #1808)
- Latency adjustments
- Implement PulseAudio client_name (see Trac #1924)
- Other ALSA, Pulse, Roar, sndio and MacOS driver improvements
- Disable esd module, Gnome is not using that for ages and moved to
pulse anyway.
- Drop patch lib64.dif and replace it by simple sed that works
more straight-forward.
-------------------------------------------------------------------
Thu Apr 11 11:55:18 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Mon Dec 26 02:37:18 UTC 2011 - crrodriguez@opensuse.org
- Use O_CLOEXEC in shared library
- Remove aRts plugin, which is dead since 2004.
- remove _service file
-------------------------------------------------------------------
Thu May 12 13:12:43 CEST 2011 - dmueller@suse.de
- fix missing obsoletes for 32bit baselibs package
-------------------------------------------------------------------
Thu May 5 23:00:39 CEST 2011 - dmueller@suse.de
- fix provides/obsoletes
-------------------------------------------------------------------
Sun May 1 17:35:27 UTC 2011 - toddrme2178@gmail.com
- Added 32bit compatibility libraries
-------------------------------------------------------------------
Thu Feb 24 16:06:47 UTC 2011 - reddwarf@opensuse.org
- update to version 1.1.0
* Add autofoo ld symbol versioning to build system
* Update Roar driver to latest API
* Fix Roar driver to not block on SLP lookup during probe
* Improve/correct latency setup in ALSA (see Trac #1762)
* Add missing ctype.h header in build (see Trac #1760)
* Move toward more consistent option naming across drivers
* Correct ao_example.c source to not pass dangling pointer for
the matrix argument.
* Add 24 bit playback to Pulse plugin
* Fix 24 bit playback in ALSA plugin
* Fix segfaults when closing a driver that did not successfully
open.
* Fix compilation of sndio plugin
- Remove ao-pulse-fixes.patch, libao-missing_headers.diff and
libao-alsa-fix.diff since were applied by upstream
- Remove libao-pulse Provides/Obsoletes from libao-plugins4
subpackage since the new pulse plugin isn't the same than the
old one.
-------------------------------------------------------------------
Fri Feb 11 18:34:49 UTC 2011 - remur@gmx.net
- Add ao-pulse-fixes.patch to fix https://trac.xiph.org/ticket/1689
libao not working correctly with pulse audio
-------------------------------------------------------------------
Wed Dec 15 13:12:53 CET 2010 - vuntz@opensuse.org
- Add libao-pulse Provides/Obsoletes to libao-plugins4 subpackage
since it now provides the pulse plugin.
-------------------------------------------------------------------
Sat Dec 11 09:56:34 UTC 2010 - reddwarf@opensuse.org
- Fix License tag
-------------------------------------------------------------------
Fri Dec 10 11:54:50 UTC 2010 - reddwarf@opensuse.org
- update to version 1.0.0
* AO returns to active development
* Added surround channel mapping API and capability
* Update and test all drivers on modern installs
* New config file options
* Driver options may be specifid in config file
* Support for MacosX < 1.5 dropped, driver moded to AUHAL
* Build in WMM driver rather than using dlopen()
* Added Roar Audio driver
* Added OpenBSD SNDIO driver
* Work around ESD non-4096 byte write bug
* Work around aRts server crash bug
* Workaround for VIA82xx click/crackle bugs under ALSA
* Remove dead/unused drivers (solaris, alasa05, mmsound)
* Numerous patches from multiple downstreams
- run spec-cleaner
- follow library packaging policy
- removed libao-pkgconfig.diff (fixed upstream)
- removed libao-configure.diff as suggested (#93877, reapply if
needed)
- updated libao-alsa-fix.diff
- add libao-missing_headers.diff
-------------------------------------------------------------------
Fri Dec 18 23:15:55 CET 2009 - jengelh@medozas.de
- enable parallel build
-------------------------------------------------------------------
Mon Apr 28 12:59:52 CEST 2008 - tiwai@suse.de
- fixed dependency in *.pc (bnc#384168)
- removed obsolete run_ldconfig macro
-------------------------------------------------------------------
Thu Aug 2 12:23:13 CEST 2007 - tiwai@suse.de
- updated to version 0.8.7:
* obsolete alsa device renamed to alsa05
* the 'alsa' device now uses the 0.9/1.0 API
* ALSA driver fixes
- updated to version 0.8.8:
* New win32 driver
* Few fixes and changes in autotools and configuration files.
-------------------------------------------------------------------
Mon Apr 16 15:44:34 CEST 2007 - tiwai@suse.de
- follow library packaging policy
* move docs to devel package
* remove *.la files
-------------------------------------------------------------------
Wed Jan 25 21:37:22 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Jul 7 16:43:50 CEST 2005 - tiwai@suse.de
- remove -fsigned-char (#93877)
- fixed Requires of devel subpackage.
-------------------------------------------------------------------
Wed Apr 13 11:36:41 CEST 2005 - tiwai@suse.de
- added audiofile-devel to neededforbuild.
-------------------------------------------------------------------
Mon Feb 7 16:51:30 CET 2005 - tiwai@suse.de
- fixed the buffer allocation of ALSA plugin.
-------------------------------------------------------------------
Fri Jan 21 13:12:50 CET 2005 - tiwai@suse.de
- updated to version 0.8.6.
-------------------------------------------------------------------
Wed Nov 24 17:41:16 CET 2004 - tiwai@suse.de
- updated to version 0.8.5.
-------------------------------------------------------------------
Sun Apr 11 10:28:50 CEST 2004 - aj@suse.de
- Does not need kdelibs3.
-------------------------------------------------------------------
Mon Feb 9 16:07:55 CET 2004 - tiwai@suse.de
- fixed builds on s390/s390x.
-------------------------------------------------------------------
Wed Jan 21 18:47:36 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
-------------------------------------------------------------------
Mon Oct 6 15:54:53 CEST 2003 - ro@suse.de
- added glib2, glib2-devel to neededforbuild (arts)
-------------------------------------------------------------------
Wed Jul 23 15:20:36 CEST 2003 - uli@suse.de
- no ALSA on s390x
- esound available on s390*
-------------------------------------------------------------------
Sun Jun 1 23:52:36 CEST 2003 - ro@suse.de
- remove unpackaged files from buildroot
-------------------------------------------------------------------
Tue Jul 23 16:48:32 CEST 2002 - tiwai@suse.de
- fixed m4 file for lib64.
- provides the backward compatible m4 file.
-------------------------------------------------------------------
Mon Jul 22 10:19:19 CEST 2002 - tiwai@suse.de
- updated to version 0.8.3.
- clean up the spec file.
- added %run_ldconfig.
-------------------------------------------------------------------
Mon May 6 16:56:11 CEST 2002 - meissner@suse.de
- %_lib fixes
-------------------------------------------------------------------
Tue Mar 12 15:12:30 CET 2002 - tiwai@suse.de
- added ao directory to the file list.
-------------------------------------------------------------------
Fri Feb 15 00:20:14 CET 2002 - ro@suse.de
- changed neededforbuild <kdelibs3-artsd> to <arts arts-devel>
-------------------------------------------------------------------
Tue Feb 5 13:56:15 CET 2002 - tiwai@suse.de
- fixed alsa09 plugin. now it should work well on SB Live, too.
-------------------------------------------------------------------
Tue Jan 22 18:23:53 CET 2002 - ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
-------------------------------------------------------------------
Fri Jan 4 11:20:29 CET 2002 - tiwai@suse.de
- updated to 0.8.2.
sync with cvs 2002.01.04.
-------------------------------------------------------------------
Tue Dec 4 11:16:46 CET 2001 - tiwai@suse.de
- fixed filelist.
- sync with cvs 2001.12.04.
-------------------------------------------------------------------
Mon Dec 3 18:34:15 CET 2001 - tiwai@suse.de
- Enabled support for ALSA 0.9.0.
-------------------------------------------------------------------
Wed Oct 24 16:37:18 CEST 2001 - tiwai@suse.de
- sync with cvs 20011024. version 0.8.1.
+ ALSA 0.9.x support
+ ver.2 plugins added
- removed Requires to libao from devel & arts.
-------------------------------------------------------------------
Mon Aug 13 16:56:17 CEST 2001 - tiwai@suse.de
- updated to 1.0rc2 from cvs 20010813.
-------------------------------------------------------------------
Fri Aug 3 10:18:06 CEST 2001 - tiwai@suse.de
- added kdelibs-arts to needeforbuild.
- fixed build on s390.
-------------------------------------------------------------------
Thu Jun 7 11:29:51 CEST 2001 - iwai@suse.de
- fixed build with the recent libtool.
-------------------------------------------------------------------
Wed Mar 21 10:35:44 CET 2001 - tiwai@suse.de
- added alsa plugin.
- added arts plugin. provided as a separate package, libao-arts.
-------------------------------------------------------------------
Mon Feb 26 17:04:47 CET 2001 - tiwai@suse.de
- Updated to ver.0.6.0.
-------------------------------------------------------------------
Wed Jan 31 11:56:24 CET 2001 - tiwai@suse.de
- Initial version: 0.5.0

132
libao.spec Normal file
View File

@ -0,0 +1,132 @@
#
# spec file for package libao
#
# Copyright (c) 2018 SUSE LINUX 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 sover 4
# Check configure.ac for the plugin versioning
%define plugver 4
%define my_provides /tmp/my-provides
Name: libao
Version: 1.2.2+git20180114.d522165
Release: 0
Summary: An Audio Output Library
License: GPL-2.0+
Group: Development/Libraries/C and C++
Url: http://www.xiph.org/ao/
# Switched to git release as there are no releases for >3 years
#Source: http://downloads.xiph.org/releases/ao/%{name}-%{version}.tar.gz
Source: %{name}-%{version}.tar.xz
Source99: baselibs.conf
Patch1: libao-ocloexec.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(libpulse-simple)
Obsoletes: plugin4-esd
%description
Libao is an audio output library, supporting a number of
outputs, such as ALSA, PulseAudio, and PCM files.
%package -n libao%{sover}
Summary: An Audio Output Library
Group: System/Libraries
Requires: libao-plugins%{plugver}
# libao was last used in openSUSE 11.3
Provides: libao = 1.1.0
Obsoletes: libao < 1.1.0
%description -n libao%{sover}
Libao is an audio output library, supporting a number of
outputs, such as ALSA, PulseAudio, and PCM files.
%package plugins%{plugver}
Summary: Main output plugins for libao
Group: System/Libraries
%description plugins%{plugver}
This package contains the main output plugins for libao.
%package devel
Summary: Development files for libao, an audio outputl ibrary
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libao%{sover} = %{version}
%description devel
This package contains the headers for developing applications that
want to make use of libao.
%prep
%setup -q
%patch1
# setup libdir properly
sed -i "s:/lib:/%{_lib}:g" ao.m4
%build
autoreconf -fiv
%configure \
--enable-alsa \
--enable-alsa-mmap \
--enable-nas \
--enable-pulse \
--disable-static \
--disable-arts \
--disable-esd
make %{?_smp_mflags}
%install
%make_install docdir=%{_docdir}/%{name}-devel
find %{buildroot} -type f -name "*.la" -delete -print
# exclude plugins from the provide-list
cat << EOF > %{my_provides}
grep -v %{_libdir}/ao/ | %{__find_provides}
EOF
chmod 755 %{my_provides}
%define _use_internal_dependency_generator 0
%define __find_provides %{my_provides}
%post -n libao%{sover} -p /sbin/ldconfig
%postun -n libao%{sover} -p /sbin/ldconfig
%files -n libao%{sover}
%doc AUTHORS CHANGES README TODO
%license COPYING
%{_libdir}/libao.so.%{sover}*
%dir %{_libdir}/ao
%dir %{_libdir}/ao/plugins-%{plugver}
%files plugins%{plugver}
%{_libdir}/ao/plugins-%{plugver}/libalsa.so
%{_libdir}/ao/plugins-%{plugver}/liboss.so
%{_libdir}/ao/plugins-%{plugver}/libpulse.so
%files devel
%{_docdir}/%{name}-devel
%{_mandir}/*/*
%{_includedir}/ao
%{_libdir}/libao.so
%{_libdir}/ckport
%{_datadir}/aclocal/*.m4
%{_libdir}/pkgconfig/*.pc
%changelog