On Sun, Aug 27, 2000 at 04:33:01AM +0200, Guillaume Cottenceau wrote:
> Hi,
>
> It is now in the state where it's useable. I included packages in
> Linux-Mandrake to encode/decode Ogg Vorbis, to convert from mp3 to Ogg
> Vorbis, and to play Ogg Vorbis from within the XMMS multimedia system.
I noticed that too! Two weeks ago I fetched the source and created
my own mdk spec file.
> and/or install the packages `oggvorbis' and `oggvorbis-xmms' from Cooker.
I merged and greatly improved your spec file including a patch for
building shared libraries and developer files.
All these are attached to this mail. Comments are welcome :-)
Best regards,
Reinhard Katzmann
--
E-Mail: [EMAIL PROTECTED]
Current Projects: Linux-Installation Mandrake 7.1 (99% finished)
Improvements of Driver for Tevion Tablet
Java-DB and -Interface for Pincity (95 % finished)
GnuPG Public Key available on request.
%define name oggvorbis
%define version 0.0.20000826
%define prefix %{_prefix}
%define release 4mdk
Name: %{name}
Summary: Tools to play Ogg Vorbis music files, a Patent-Free replacement to the mp3
format
Version: %{version}
Release: %{release}
Copyright: LGPL
Group: Sound
Source0: http://www.xiph.org/ogg/vorbis/download/vorbis_nightly_cvs.tgz
Patch0: vorbis-fix-mp3tovorbis.patch.bz2
Patch1: %{name}-%{version}-shared.patch
URL: http://www.xiph.org/ogg/vorbis/index.html
Packager: Guillaume Cottenceau <[EMAIL PROTECTED]>
BuildRoot: %{_tmppath}/%{name}-buildroot
Requires: mpg123
# Currently I don't have this
#Requires: mpeglib
BuildRequires: xmms-devel
#BuildRequires: mpeglib-devel
# Avoid conflicts with redhat package
Obsoletes: vorbis
%description
Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for high quality (44.1-48.0kHz, 16+
bit, polyphonic) audio and music at fixed and variable bitrates from 16 to 128
kbps/channel. This places Vorbis in the same class as audio representations
including MPEG-1 audio layer 3, MPEG-4 audio (AAC and TwinVQ), and PAC.
Encoding: use `vorbize' (currently, only 44.1 kHz 16 bit stereo PCM)
Converting: use `mp3tovorbis'
Playing: use `ogg123'
WARNING, THIS IS BETA SOFTWARE.
Unlike the MPEG sponsored formats
(and other proprietary formats such as RealAudio G2 and Windows flavor
of the month), the Vorbis CODEC specification belongs to the public
domain. All the technical details are published and documented, and any
software entity may make full use of the format without royalty or
patent concerns.
WARNING: This is CVS code!! I did not find any beta versions.
%package devel
Copyright: LGPL
Summary: Development library and includes for OGG Vorbis
Group: Development/C
%description devel
Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for high quality (44.1-48.0kHz,
16+ bit, polyphonic) audio and music at fixed and variable bitrates
from 16 to 128 kbps/channel. This places Vorbis in the same class as
audio representations including MPEG-1 audio layer 3, MPEG-4
audio (AAC and TwinVQ), and PAC.
Development files (includes and static libraries) for vorbis.
%package examples
Copyright: LGPL
Summary: Some example programs in doc directory (including binaries)
Group: Development/C
%description examples
Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for high quality (44.1-48.0kHz,
16+ bit, polyphonic) audio and music at fixed and variable bitrates
from 16 to 128 kbps/channel. This places Vorbis in the same class as
audio representations including MPEG-1 audio layer 3, MPEG-4
audio (AAC and TwinVQ), and PAC.
Example file for oggvorbis: chaining_example, encoder_example,
decoder_example, vorbisfile_example.
%package -n xmms-oggvorbis
Copyright: LGPL
Summary: XMMS - Input plugin to play Ogg Vorbis audio files (*.ogg)
Group: Sound
%description -n xmms-oggvorbis
Ogg Vorbis is a fully Open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for high quality (44.1-48.0kHz,
16+ bit, polyphonic) audio and music at fixed and variable bitrates
from 16 to 128 kbps/channel. This places Vorbis in the same class as
audio representations including MPEG-1 audio layer 3, MPEG-4
audio (AAC and TwinVQ), and PAC.
An input plugin for XMMS - The sound player with the WinAmp GUI - with
the capability of reading files in the Ogg Vorbis audio format (*.ogg).
%prep
%setup -q -n vorbis
%patch0 -p0
%patch1 -p1 -b .shared
perl -pi -e 's/CFLAGS=\"\$\(OPT\)\"//g' Makefile.in */Makefile.in
%build
%configure
export CFLAGS="$CFLAGS -D_REENTRANT -fsigned-char -I. -I../include -DUSE_ALLOCA_H
-DUSE_MEMORY_H -Dvorbis_size32_t='int'"
make
#Create vq and huff stuff
(cd vq ; make )
(cd huff ; make )
#Create tools
(cd vorbis-tools ; make)
#Create XMMS input plugin
(cd xmms ; export CFLAGS="$CFLAGS `gtk-config --cflags`" ; \
make)
# Create plugin for kmpg
#(cd kmpg ; make )
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_includedir}/vorbis/book
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/xmms/Input
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
install huff/{residuesplit,huffbuild} $RPM_BUILD_ROOT%{_bindir}/
install lib/psytune $RPM_BUILD_ROOT%{_bindir}/
install vorbis-tools/{mp3tovorbis,ogg123,oggenc,vorbiscomment,vorbize}\
$RPM_BUILD_ROOT%{_bindir}/
install include/vorbis/*.h $RPM_BUILD_ROOT%{_includedir}/vorbis/
install include/vorbis/book/*.vqh $RPM_BUILD_ROOT%{_includedir}/vorbis/book/
install lib/libvorbis.a $RPM_BUILD_ROOT%{_libdir}/
install lib/libvorbis.so $RPM_BUILD_ROOT%{_libdir}/
install lib/vorbisfile.a $RPM_BUILD_ROOT%{_libdir}/
install vorbis-tools/libao/libao.a $RPM_BUILD_ROOT%{_libdir}/
install vorbis-tools/libao/libao.so $RPM_BUILD_ROOT%{_libdir}/
install vorbis-tools/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1
install xmms/libvorbis.so $RPM_BUILD_ROOT/%{_libdir}/xmms/Input
install vq/{genericvqtrain,latticebuild,latticehint,latticepare,latticetune,\
lspvqtrain,residue_entropy,residuevqtrain,vqbuild,vqcascade,vqmetrics} \
$RPM_BUILD_ROOT%{_bindir}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root, 0755)
%doc README COPYING todo.txt
%{_bindir}/*
%{_libdir}/*.so
%{_mandir}/man1/*
%files devel
%defattr(-,root,root, 0755)
%doc README docs/*.{png,html}
%{_includedir}/vorbis/*
%{_libdir}/*.a
%files examples
%defattr(-,root,root, 0755)
%doc examples/*.c examples/*example
%files -n xmms-oggvorbis
%defattr(-, root, root, 0755)
%doc xmms/README COPYING.LIB
%{_libdir}/xmms/Input/*
%changelog
* Mon Aug 28 2000 Reinhard Katzmann <[EMAIL PROTECTED]> 0.0.20000826-4mdk
- Adapted to my own version of the ogg vorbis mdk
- Renamed xmms plugin
- Added devel package
- Added a patch so shared libraries are built instead of static only
- Added vq, huff
- Corrected xmms document file
- Added possible entry for kmpg but I don't want to habe KDE Beta on my system.
- Install much more :-)
- Be aware that there is a spec file in the archive for redhat!
- Therefore obsoletes for vorbis added to avoid conflicts
* Sun Aug 27 2000 Guillaume Cottenceau <[EMAIL PROTECTED]> 0.0.20000826-3mdk
- better versions of the encoder and decoder
- better description tag
- now includes the mp3tovorbis script (depends on mpg123)
- now includes man pages
* Sat Aug 26 2000 Guillaume Cottenceau <[EMAIL PROTECTED]> 0.0.20000826-2mdk
- now includes also the decoder and encoder
- more docs
* Sat Aug 26 2000 Guillaume Cottenceau <[EMAIL PROTECTED]> 0.0.20000826-1mdk
- first package for Linux-Mandrake
- Ogg Vorbis is a Patent-Free replacement to the mp3 format
please visit http://www.xiph.org/ogg/vorbis/index.html
- code is grabbed from a daily CVS, so had to decide a version by myself :-(
--- vorbis/lib/Makefile.in.orig Thu Aug 17 21:50:49 2000
+++ vorbis/lib/Makefile.in Thu Aug 17 21:45:48 2000
@@ -56,7 +56,7 @@
profile:
$(MAKE) target CFLAGS="$(PROFILE)"
-target: libvorbis.a vorbisfile.a psytune
+target: libvorbis.a libvorbis.so vorbisfile.a psytune
selftest:
$(MAKE) clean
@@ -78,6 +78,9 @@
libvorbis.a: $(LFILES)
$(AR) -r libvorbis.a $(LFILES)
$(RANLIB) libvorbis.a
+
+libvorbis.so: $(LFILES)
+ $(CC) -shared $(CFLAGS) -o libvorbis.so $(LFILES)
vorbisfile.a: $(VF_LFILES)
$(AR) -r vorbisfile.a $(VF_LFILES)
--- vorbis/vorbis-tools/libao/Makefile.in.orig Thu Aug 17 21:58:49 2000
+++ vorbis/vorbis-tools/libao/Makefile.in Thu Aug 17 21:58:52 2000
@@ -24,11 +24,14 @@
profile:
@$(MAKE) target CFLAGS="$(PROFILE)"
-target: libao.a
+target: libao.a libao.so
libao.a: $(LIBAO_FILES)
$(AR) -r libao.a $(LIBAO_FILES)
$(RANLIB) libao.a
+
+libao.so: $(LIBAO_FILES)
+ $(CC) -shared $(FLAGS) -o libao.so $(LIBAO_FILES)
.c.o:
$(CC) $(FLAGS) -c $<
PGP signature