Name: libogg Version: 1.3.3 Release: 1 Summary: Ogg Bitstream Library. Group: System Environment/Libraries License: BSD URL: http://www.xiph.org/ Vendor: Xiph.org Foundation Source0: http://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Libogg is a library for manipulating ogg bitstreams. It handles both making ogg bitstreams and getting packets from ogg bitstreams. The library is available as 32-bit and 64-bit. %package devel Summary: Ogg Bitstream Library Development Group: Development/Libraries Requires: %{name} = %{version} %description devel The libogg-devel package contains the header files, static libraries and documentation needed to develop applications with libogg. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "xlc_r -q64" or "gcc -maix64". %prep %setup -q %build export CONFIG_SHELL=/usr/bin/ksh export CONFIG_ENV_ARGS=/usr/bin/ksh export CC="xlc_r" # first build the 64-bit version export OBJECT_MODE=64 ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} cp src/.libs/libogg.so.0 . make distclean # now build the 32-bit version export OBJECT_MODE=32 ./configure \ --prefix=%{_prefix} \ --enable-shared --enable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects /usr/bin/ar -X64 -q src/.libs/libogg.a ./libogg.so.0 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install ( cd ${RPM_BUILD_ROOT} for dir in include lib do mkdir -p usr/${dir} cd usr/${dir} ln -sf ../..%{_prefix}/${dir}/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc AUTHORS CHANGES COPYING README %{_libdir}/*.a /usr/lib/*.a %files devel %defattr(-,root,system) %doc doc/framing.html %doc doc/index.html %doc doc/oggstream.html %doc doc/white-ogg.png %doc doc/white-xifish.png %doc doc/stream.png %doc doc/libogg/*.html %doc doc/libogg/style.css %dir %{_includedir}/ogg %{_includedir}/ogg/* %{_libdir}/*.la %{_libdir}/pkgconfig/* %{_datadir}/aclocal/* /usr/include/* /usr/lib/*.la %changelog * Fri Dec 15 2017 Michael Perzl - 1.3.3-1 - updated to version 1.3.3 * Thu Apr 02 2015 Michael Perzl - 1.3.2-1 - updated to version 1.3.2 * Thu Mar 27 2014 Michael Perzl - 1.3.1-1 - updated to version 1.3.1 * Wed Oct 05 2011 Michael Perzl - 1.3.0-1 - updated to version 1.3.0 * Tue Apr 26 2011 Michael Perzl - 1.2.2-1 - updated to version 1.2.2 * Mon Dec 06 2010 Michael Perzl - 1.2.1-1 - updated to version 1.2.1 * Thu Apr 08 2010 Michael Perzl - 1.2.0-1 - updated to version 1.2.0 * Thu Jan 17 2008 Michael Perzl - 1.1.3-1 - first version for AIX V5.1 and higher