Changeset 1605 for spec/trunk/SPECS/libvorbis.spec
- Timestamp:
- Mar 3, 2019, 4:45:52 PM (7 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/libvorbis.spec (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/libvorbis.spec
r719 r1605 1 %define svn_url http://svn.netlabs.org/repos/ports/libvorbis/trunk 2 %define svn_rev 1480 1 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} 3 2 3 Summary: The Vorbis General Audio Compression Codec 4 4 Name: libvorbis 5 Version: 1.3. 55 Version: 1.3.6 6 6 Release: 1%{?dist} 7 Summary: The Vorbis General Audio Compression Codec. 8 7 #Epoch: 1 9 8 Group: System Environment/Libraries 10 9 License: BSD 11 URL: http ://www.xiph.org/12 Vendor: Xiph.org Foundation <team@xiph.org> 13 #Source: http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.gz 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 15 BuildR oot: %{_tmppath}/%{name}-%{version}-root10 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 16 15 17 # We're forced to use an epoch since both Red Hat and Ximian use it in their 18 # rc packages 19 #Epoch: 2 20 # Dirty trick to tell rpm that this package actually provides what the 21 # last rc and beta was offering 22 #Provides: %{name} = %{epoch}:1.0rc3-%{release} 23 #Provides: %{name} = %{epoch}:1.0beta4-%{release} 24 25 Requires: libogg >= 1.1 26 BuildRequires: libogg-devel >= 1.1 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 27 29 28 30 %description 29 Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, 30 general-purpose compressed audio format for audio and music at fixed 31 and variable bitrates from 16 to 128 kbps/channel. 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. 32 37 33 38 %package devel 34 Summary: Vorbis Library Development 35 Group: Development/Libraries 36 Requires: libogg-devel >= 1.1 37 Requires: libvorbis = %{version} 38 # Dirty trick to tell rpm that this package actually provides what the 39 # last rc and beta was offering 40 #Provides: %{name}-devel = %{epoch}:1.0rc3-%{release} 41 #Provides: %{name}-devel = %{epoch}:1.0beta4-%{release} 39 Summary: Development tools for Vorbis applications 40 Group: Development/Libraries 41 #Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} 42 42 43 43 %description devel 44 The libvorbis-devel package contains the header files , static libraries45 and documentation needed to develop applications with libvorbis.44 The libvorbis-devel package contains the header files and documentation 45 needed to develop applications with Ogg Vorbis. 46 46 47 %debug_package 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. 48 57 49 58 %prep 50 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}51 %setup -q52 %else53 %setup -q -n "%{name}-%{version}" -Tc54 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force55 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"56 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")57 %endif58 59 60 #%setup -q 59 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 60 67 61 68 %build 62 export CFLAGS="-g -DBUILD_SDL" LDFLAGS="-g -Zhigh-mem" 69 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 70 export LIBS="-lcx" 63 71 64 ./autogen.sh \ 65 --prefix=%{_prefix} \ 66 --enable-shared \ 67 --disable-static 68 69 %{__make} %{?_smp_mflags} 72 #%configure --disable-static --prefix=%prefix 73 %configure --disable-static 74 #%make_build 75 make %{?_smp_mflags} 70 76 71 77 %install 72 rm -rf $RPM_BUILD_ROOT 73 %{__make} install DESTDIR=%{buildroot} 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 74 82 75 #mkdir -p %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/doc/libogg 76 #install -m 644 doc/*.html doc/*.png doc/*.txt \ 77 # %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/ 78 #install -m 644 -d doc/vorbisfile doc/vorbisenc \ 79 # %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/ 80 81 # create import libs 82 emximp -o %{buildroot}%{_libdir}/vorbis_dll.lib %{buildroot}%{_libdir}/vorbis0.dll 83 emximp -o %{buildroot}%{_libdir}/vorbis0_dll.lib %{buildroot}%{_libdir}/vorbis0.dll 84 emximp -o %{buildroot}%{_libdir}/vorbisenc_dll.lib %{buildroot}%{_libdir}/vorbise2.dll 85 emximp -o %{buildroot}%{_libdir}/vorbisenc2_dll.lib %{buildroot}%{_libdir}/vorbise2.dll 86 emximp -o %{buildroot}%{_libdir}/vorbisfile_dll.lib %{buildroot}%{_libdir}/vorbisf3.dll 87 emximp -o %{buildroot}%{_libdir}/vorbisfile3_dll.lib %{buildroot}%{_libdir}/vorbisf3.dll 88 89 %clean 90 rm -rf $RPM_BUILD_ROOT 91 92 #%post -p /sbin/ldconfig 93 94 #%postun -p /sbin/ldconfig 83 %check 84 #make check 95 85 96 86 %files 97 %defattr(-,root,root) 98 %doc AUTHORS COPYING README 99 %{_libdir}/vorbis*.dll 87 %doc AUTHORS 88 %license COPYING 89 %defattr(-, root, root) 90 #/@unixroot/usr/lib/ 91 %exclude %{_libdir}/vorbis*.dll 100 92 101 93 %files devel 102 %doc doc/*.html 103 %doc doc/*.png 104 %doc doc/*.txt 105 %doc doc/vorbisfile 106 %doc doc/vorbisenc 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 107 100 %{_datadir}/aclocal/vorbis.m4 108 %dir %{_includedir}/vorbis 109 %{_includedir}/vorbis/codec.h 110 %{_includedir}/vorbis/vorbisfile.h 111 %{_includedir}/vorbis/vorbisenc.h 112 %{_libdir}/vorbis*.a 113 %exclude %{_libdir}/libvorbis.la* 114 %{_libdir}/vorbis*.lib 115 %{_libdir}/vorbisfile*.a 116 %exclude %{_libdir}/libvorbisfile.la* 117 %{_libdir}/vorbisfile*.lib 118 %{_libdir}/vorbisenc*.a 119 %exclude %{_libdir}/libvorbisenc.la* 120 %{_libdir}/vorbisenc*.lib 121 %{_libdir}/pkgconfig/vorbis.pc 122 %{_libdir}/pkgconfig/vorbisfile.pc 123 %{_libdir}/pkgconfig/vorbisenc.pc 101 102 %files devel-docs 103 #%{_pkgdocdir}/* 104 #%exclude %{_pkgdocdir}/doxygen-build.stamp 105 106 #%ldconfig_scriptlets 124 107 125 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 126 113 * Tue Mar 15 2016 Valery V.Sedletski <_valerius@mail.ru> - 1.3.5-1 127 114 - Initial OS/2 packaging
Note:
See TracChangeset
for help on using the changeset viewer.
