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