| 1 | %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|---|
| 2 |
|
|---|
| 3 | Summary: The Vorbis General Audio Compression Codec
|
|---|
| 4 | Name: libvorbis
|
|---|
| 5 | Version: 1.3.7
|
|---|
| 6 | Release: 1%{?dist}
|
|---|
| 7 | Epoch: 1
|
|---|
| 8 | License: BSD
|
|---|
| 9 | URL: https://www.xiph.org/
|
|---|
| 10 | #Source: https://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.xz
|
|---|
| 11 | %scm_source github https://github.com/xiph/vorbis master
|
|---|
| 12 | BuildRequires: gcc
|
|---|
| 13 | BuildRequires: pkgconfig(ogg) >= 1.0
|
|---|
| 14 |
|
|---|
| 15 | # sync with git as of
|
|---|
| 16 | #
|
|---|
| 17 | # commit 46e70fa6573e206c2555cd99a53204ffd6bf58fd
|
|---|
| 18 | # Author: Minmin Gong <gongminmin@msn.com>
|
|---|
| 19 | # Date: Wed Jul 4 21:37:54 2018 -0700
|
|---|
| 20 | #
|
|---|
| 21 | # Fix the compiling errors on msvc ARM64 configuration.
|
|---|
| 22 | #
|
|---|
| 23 | # Fixes:
|
|---|
| 24 | # CVE-2017-14160
|
|---|
| 25 | # CVE-2018-10392
|
|---|
| 26 | # CVE-2018-10393
|
|---|
| 27 | #Patch0: libvorbis-1.3.6-git.patch
|
|---|
| 28 |
|
|---|
| 29 | %description
|
|---|
| 30 | Ogg Vorbis is a fully open, non-proprietary, patent- and royalty-free,
|
|---|
| 31 | general-purpose compressed audio format for audio and music at fixed
|
|---|
| 32 | and variable bitrates.
|
|---|
| 33 |
|
|---|
| 34 | The libvorbis package contains runtime libraries for use in programs
|
|---|
| 35 | that support Ogg Vorbis.
|
|---|
| 36 |
|
|---|
| 37 | %package devel
|
|---|
| 38 | Summary: Development tools for Vorbis applications
|
|---|
| 39 | Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|---|
| 40 |
|
|---|
| 41 | %description devel
|
|---|
| 42 | The libvorbis-devel package contains the header files and documentation
|
|---|
| 43 | needed to develop applications with Ogg Vorbis.
|
|---|
| 44 |
|
|---|
| 45 | %package devel-docs
|
|---|
| 46 | Summary: Documentation for developing Vorbis applications
|
|---|
| 47 | Requires: %{name}-devel = %{epoch}:%{version}-%{release}
|
|---|
| 48 | BuildArch: noarch
|
|---|
| 49 |
|
|---|
| 50 | %description devel-docs
|
|---|
| 51 | Documentation for developing applications with libvorbis.
|
|---|
| 52 |
|
|---|
| 53 | %prep
|
|---|
| 54 | #%setup -q
|
|---|
| 55 | #%patch0 -p1
|
|---|
| 56 | %scm_setup
|
|---|
| 57 | autoreconf -fiv
|
|---|
| 58 |
|
|---|
| 59 | sed -i "s|-O20|$RPM_OPT_FLAGS|" configure
|
|---|
| 60 | sed -i "s/-ffast-math//" configure
|
|---|
| 61 | sed -i "s/-mcpu=750//" configure
|
|---|
| 62 |
|
|---|
| 63 | %build
|
|---|
| 64 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 65 | export LIBS="-lcx"
|
|---|
| 66 | %configure --disable-static
|
|---|
| 67 | #%make_build
|
|---|
| 68 | make %{?_smp_mflags}
|
|---|
| 69 |
|
|---|
| 70 | %install
|
|---|
| 71 | %make_install docdir=%{_pkgdocdir}
|
|---|
| 72 | # remove unpackaged files from the buildroot
|
|---|
| 73 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 74 |
|
|---|
| 75 | %check
|
|---|
| 76 | make -k check
|
|---|
| 77 |
|
|---|
| 78 | %files
|
|---|
| 79 | %doc AUTHORS
|
|---|
| 80 | %license COPYING
|
|---|
| 81 | #%{_libdir}/libvorbis.so.*
|
|---|
| 82 | #%{_libdir}/libvorbisfile.so.*
|
|---|
| 83 | %{_libdir}/vorbis*.dll
|
|---|
| 84 |
|
|---|
| 85 | %files devel
|
|---|
| 86 | %{_includedir}/vorbis
|
|---|
| 87 | #%{_libdir}/libvorbis.so
|
|---|
| 88 | #%{_libdir}/libvorbisfile.so
|
|---|
| 89 | #%{_libdir}/libvorbisenc.so
|
|---|
| 90 | %{_libdir}/*.a
|
|---|
| 91 | %{_libdir}/pkgconfig/*.pc
|
|---|
| 92 | %{_datadir}/aclocal/vorbis.m4
|
|---|
| 93 |
|
|---|
| 94 | %files devel-docs
|
|---|
| 95 | %{_pkgdocdir}/*
|
|---|
| 96 | %exclude %{_pkgdocdir}/doxygen-build.stamp
|
|---|
| 97 |
|
|---|
| 98 | #%ldconfig_scriptlets
|
|---|
| 99 |
|
|---|
| 100 | %changelog
|
|---|
| 101 | * Sun Jul 05 2020 Elbert Pol <elbert.pol@gmail.com> - 1.3.7-1
|
|---|
| 102 | - Updated to latest source
|
|---|
| 103 |
|
|---|
| 104 | * Mon Mar 04 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.6-3
|
|---|
| 105 | - Put dll in right section
|
|---|
| 106 | - Put back some deleted lines
|
|---|
| 107 |
|
|---|
| 108 | * Sun Mar 03 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.6-2
|
|---|
| 109 | - Cleanup some lines
|
|---|
| 110 |
|
|---|
| 111 | * Sun Mar 03 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.6-1
|
|---|
| 112 | - First Rpm build for OS2
|
|---|
| 113 | - Change some .spec lines
|
|---|
| 114 |
|
|---|
| 115 | * Tue Mar 15 2016 Valery V.Sedletski <_valerius@mail.ru> - 1.3.5-1
|
|---|
| 116 | - Initial OS/2 packaging
|
|---|