172 lines
4.6 KiB
RPMSpec
172 lines
4.6 KiB
RPMSpec
|
#
|
||
|
# spec file for package libogg (Version 1.1.3)
|
||
|
#
|
||
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, 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://bugs.opensuse.org
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
Name: libogg
|
||
|
BuildRequires: pkgconfig
|
||
|
Summary: Ogg Bitstream Library
|
||
|
Version: 1.1.3
|
||
|
Release: 2
|
||
|
Group: System/Libraries
|
||
|
License: BSD
|
||
|
URL: http://www.vorbis.com/
|
||
|
Source: %{name}-%{version}.tar.bz2
|
||
|
Patch: configure.dif
|
||
|
Patch1: lib64.dif
|
||
|
Patch2: m4.diff
|
||
|
Patch3: libogg-compile-warning-fix.diff
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
Libogg is a library for manipulating ogg bitstreams. It handles both
|
||
|
making ogg bitstreams and getting packets from ogg bitstreams.
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Monty <monty@xiph.org>
|
||
|
Xiphophorus Company <team@xiph.org>
|
||
|
|
||
|
%package devel
|
||
|
Summary: Include Files and Libraries mandatory for Development.
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: %{name} = %{version}
|
||
|
|
||
|
%description devel
|
||
|
This package contains all necessary include files and libraries needed
|
||
|
to develop applications that require these.
|
||
|
|
||
|
|
||
|
|
||
|
Authors:
|
||
|
--------
|
||
|
Monty <monty@xiph.org>
|
||
|
Xiphophorus Company <team@xiph.org>
|
||
|
|
||
|
%prep
|
||
|
%setup
|
||
|
%patch
|
||
|
%patch2
|
||
|
%patch3
|
||
|
if [ "%_lib" == "lib64" ]; then
|
||
|
%patch1
|
||
|
fi
|
||
|
|
||
|
%build
|
||
|
%{?suse_update_config:%{suse_update_config -f}}
|
||
|
autoreconf --force --install
|
||
|
CFLAGS="$RPM_OPT_FLAGS -g -fstack-protector" \
|
||
|
./configure --prefix=%{_prefix} --libdir=%{_libdir}
|
||
|
make
|
||
|
|
||
|
%install
|
||
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||
|
make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name}-devel install
|
||
|
# create an old compatible m4 file
|
||
|
sed -e s/XIPH_PATH_OGG/AM_PATH_OGG/g < $RPM_BUILD_ROOT%{_datadir}/aclocal/ogg.m4 > $RPM_BUILD_ROOT%{_datadir}/aclocal/ogg-old.m4
|
||
|
|
||
|
%post
|
||
|
%run_ldconfig
|
||
|
|
||
|
%postun
|
||
|
%run_ldconfig
|
||
|
|
||
|
%clean
|
||
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc AUTHORS CHANGES COPYING README
|
||
|
%{_libdir}/lib*.so.*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%doc %{_docdir}/%{name}-devel
|
||
|
%{_includedir}/ogg
|
||
|
%{_libdir}/lib*.a
|
||
|
%{_libdir}/lib*.so
|
||
|
%{_libdir}/lib*.la
|
||
|
%{_datadir}/aclocal/*.m4
|
||
|
%{_libdir}/pkgconfig/*.pc
|
||
|
|
||
|
%changelog -n libogg
|
||
|
* Wed Jan 25 2006 - mls@suse.de
|
||
|
- converted neededforbuild to BuildRequires
|
||
|
* Wed Jan 11 2006 - tiwai@suse.de
|
||
|
- compile with -fstack-protector.
|
||
|
* Fri Dec 02 2005 - tiwai@suse.de
|
||
|
- updated to version 1.1.3.
|
||
|
* Sun Sep 04 2005 - aj@suse.de
|
||
|
- Revert last patch, wrong package.
|
||
|
* Sat Sep 03 2005 - aj@suse.de
|
||
|
- compile with -fno-strict-aliasing (#115135).
|
||
|
* Thu Jul 07 2005 - tiwai@suse.de
|
||
|
- remove -fsigned-char option (#93878).
|
||
|
- fix misc compile warnings.
|
||
|
* Wed Nov 24 2004 - tiwai@suse.de
|
||
|
- updated to version 1.1.2.
|
||
|
* Sat Aug 21 2004 - schwab@suse.de
|
||
|
- Fix 64bit bugs.
|
||
|
* Wed Jan 21 2004 - tiwai@suse.de
|
||
|
- fixed quoting in m4 files.
|
||
|
* Fri Jan 09 2004 - adrian@suse.de
|
||
|
- add %%run_ldconfig to %%postun
|
||
|
* Fri Jan 09 2004 - tiwai@suse.de
|
||
|
- updated to version 1.1.
|
||
|
- added pkgconfig to neededforbuild.
|
||
|
* Thu Jan 09 2003 - kukuk@suse.de
|
||
|
- Add *.la files to -devel filelist
|
||
|
* Thu Sep 19 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 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 2002 - tiwai@suse.de
|
||
|
- added Requires %%{name} = %%{version} to devel package.
|
||
|
* Tue Jul 23 2002 - tiwai@suse.de
|
||
|
- provides the backward compatible m4 file.
|
||
|
* Mon Jul 22 2002 - tiwai@suse.de
|
||
|
- updated to version 1.0.
|
||
|
- clean up the spec file.
|
||
|
- added %%run_ldconfig.
|
||
|
* Mon Jun 10 2002 - adrian@suse.de
|
||
|
- fix ogg.m4 for lib64 systems
|
||
|
* Thu Apr 18 2002 - kukuk@suse.de
|
||
|
- Add --libdir to configure to compile on x86_64
|
||
|
* Thu Feb 07 2002 - tiwai@suse.de
|
||
|
- fixed compile on s390x.
|
||
|
* Fri Jan 04 2002 - tiwai@suse.de
|
||
|
- updated to RC3.
|
||
|
sync with cvs 2002.01.04.
|
||
|
* Tue Dec 04 2001 - tiwai@suse.de
|
||
|
- sync with cvs 2001.12.04.
|
||
|
* Wed Oct 24 2001 - tiwai@suse.de
|
||
|
- sync with cvs 20011024.
|
||
|
+ fixed documents
|
||
|
- removed Requires to libogg from devel.
|
||
|
* Mon Aug 13 2001 - tiwai@suse.de
|
||
|
- updated to 1.0rc2 from cvs 20010813.
|
||
|
* Thu Jun 07 2001 - tiwai@suse.de
|
||
|
- fixed build with the recent libtool.
|
||
|
* Mon Mar 12 2001 - tiwai@suse.de
|
||
|
- corrected copyright in spec file.
|
||
|
* Mon Feb 26 2001 - tiwai@suse.de
|
||
|
- Updated to 1.0beta4.
|
||
|
* Wed Jan 31 2001 - tiwai@suse.de
|
||
|
- Initial version: 1.0beta3.
|