base-specs/libvorbis.spec
author Jon Tibble <meths@btinternet.com>
Thu, 15 Mar 2012 09:58:35 +0000
branchs11express-2010-11
changeset 22104 cde243cbe3f6
parent 17865 b7ff02e93f66
child 19973 f05dadadf325
child 21734 d781ec0c3c1b
permissions -rw-r--r--
Added tag oi_151a_prestable2 for changeset 47b3f775541a

#
# spec file for package libvorbis (Version 1.0)
#
# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
%define owner yippi
# bugdb: https://trac.xiph.org/
#
# neededforbuild  libogg libogg-devel
# usedforbuild    aaa_base acl attr bash bind9-utils bison coreutils cpio cpp cvs cyrus-sasl2 db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libstdc++ libxcrypt m4 make man mktemp modutils ncurses ncurses-devel net-tools netcfg pam pam-devel pam-modules patch permissions ps rcs readline sed sendmail shadow strace syslogd sysvinit tar texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils bzip2 cracklib gcc gdbm gettext libogg libogg-devel libtool perl rpm

%define OSR 1571:1.x

Name:         libvorbis
License:      Xiph.org BSD-style
Group:        Libraries/Multimedia
Version:      1.3.1
Distribution: Java Desktop System
Vendor:       Xiph
Summary:      The Vorbis General Audio Compression Codec
Source:       http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.gz
URL:          http://downloads.xiph.org/
Release:      95
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
and general-purpose compressed audio format for audio and music at fixed
and variable bitrates from 16 to 128 kbps/channel.

Authors:
--------
    Monty <[email protected]>
    Xiphophorus Company <[email protected]>

%package devel
Summary:      Development package for libvorbis
Group:        Development/Libraries/C and C++
Requires:     libogg-devel
Requires:     %{name} = %{version}

%description devel
This package contains the header files and documentation
needed to develop applications with libvorbis.

Authors:
--------
    Monty <[email protected]>
    Xiphophorus Company <[email protected]>

%prep
%setup

%build
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal -I ./m4"
export CFLAGS="%optflags -I/usr/sfw/include -DANSICPP"
export LDFLAGS="%_ldflags -lm"

./configure --prefix=%{_prefix}			\
	    --libdir=%{_libdir}			\
	    --datadir=%{_datadir}		\
	    --mandir=%{_mandir}			\
	    --with-ogg-libraries=%{_libdir}	\
	    --enable-shared			\
	    --disable-static

make

%install
make DESTDIR=$RPM_BUILD_ROOT docdir=%{_datadir}/gtk-doc/html/%{name}-devel install
# create an old compatible m4 file
sed -e s/XIPH_PATH_VORBIS/AM_PATH_VORBIS/g < $RPM_BUILD_ROOT%{_datadir}/aclocal/vorbis.m4 > $RPM_BUILD_ROOT%{_datadir}/aclocal/vorbis-old.m4

%post
%run_ldconfig

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING AUTHORS README HACKING
%{_libdir}/lib*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/vorbis
%{_libdir}/lib*.a
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_datadir}/aclocal/*.m4
%{_datadir}/gtk-doc

%changelog -n libvorbis
* Thu Apr 15 2010 - [email protected]
- bump to 1.3.1.  Remove two upstream patches.
* Thu Mar 04 2010 - [email protected]
- Add libvorbis-01-bug487519.patch libvorbis-02-bug498855.patch
* Wed Jul 15 2009 - [email protected]
- Bump to 1.2.3.
* Mon May 05 2008 - [email protected]
- Now support building 64-bit libraries.
* Mon Jul 30 2007 - [email protected]
- Bump to 1.2.0.
* Tue Dec 27 2005 - [email protected]
- Bump to 1.1.2
* Tue Sep 20 2005 - [email protected]
- Bump to 1.1.1
* Mon Jun 06 2005 - [email protected]
- Removed libvorbis-01-configure.diff since it is no longer
  necessary.
* Wed Aug 25 2004 - [email protected]
- Moved gtk-docs to %{_datadir}/gtk-doc
* Sat Mar 01 2003 - [email protected]
- let libvorbis-devel require libogg-devel
* Fri Jan 17 2003 - [email protected]
- fixed m4 macro (bug #21267).
* Thu Jan 09 2003 - [email protected]
- Add *.la files to -devel filelist
* Wed Dec 04 2002 - [email protected]
- fixed the undefined weak links.
- renamed m4.dif and lib64.dif with libvorbis- prefix to avoid
  filename conflictions.
* Thu Sep 19 2002 - [email protected]
- don't add -I/usr/include to VORBIS_VFLAGS.
- fix test for prefix.
- move devel documents under %%{_docdir}/libvorbis-devel.
* Mon Aug 12 2002 - [email protected]
- added Requires %%{name} = %%{version} to devel package.
* Tue Jul 23 2002 - [email protected]
- fixed m4 file for lib64.
- provides the backward compatible m4 file.
* Mon Jul 22 2002 - [email protected]
- updated to version 1.0.
- clean up the spec file.
- added %%run_ldconfig.
* Wed Jun 12 2002 - [email protected]
- rm acinclude.m4 so we don't have the problematic ogg.m4 (which contains
  /lib hardcoded).
* Thu Apr 18 2002 - [email protected]
- Remove additional optimization, default is better
- Add --libdir to configure to build on x86_64
* Thu Feb 07 2002 - [email protected]
- fixed build on s390x.
* Fri Jan 04 2002 - [email protected]
- updated to RC3.
  sync with cvs 2002.01.04.
* Tue Dec 04 2001 - [email protected]
- sync with cvs 2001.12.04.
* Wed Oct 24 2001 - [email protected]
- sync with cvs 20011024.
  + fixed/updated documents
  + tuned up parameters
  + bugfixes on 64bit arch.
- removed Requires to libogg.
* Sat Oct 20 2001 - [email protected]
- Fix use of qsort.
* Mon Aug 13 2001 - [email protected]
- updated to 1.0rc2 from cvs 20010813.
* Thu Jun 07 2001 - [email protected]
- fixed build with the recent libtool.
* Tue Apr 03 2001 - [email protected]
- make use of RPM_OPT_FLAGS
- include the include/vorbis dir into the file list(+rpm-macroized)
* Mon Mar 12 2001 - [email protected]
- corrected copyright in spec file.
* Mon Feb 26 2001 - [email protected]
- Updated to 1.0beta4.
* Wed Jan 31 2001 - [email protected]
- Initial version: 1.0beta3.