Changeset 950
- Timestamp:
- Feb 3, 2017, 8:16:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/libvpx.spec
r947 r950 1 # Note: Based on http://pkgs.fedoraproject.org/cgit/rpms/libvpx.git/tree/libvpx.spec?id=f7d58329e129a2102939cc28a31afa129b5318ff 2 3 Name: libvpx 4 Summary: VP8/VP9 Video Codec SDK 5 Version: 1.6.1 6 Release: 1%{?dist} 7 License: BSD 8 Group: System Environment/Libraries 9 URL: http://www.webmproject.org/code/ 10 BuildRequires: nasm 11 BuildRequires: doxygen 12 1 13 %define svn_url http://svn.netlabs.org/repos/ports/libvpx/trunk 2 %define svn_rev 1 35514 %define svn_rev 1963 3 15 4 Name: libvpx 5 Summary: VP8 Video Codec SDK 6 Version: 1.4.0 7 Release: 2%{?dist} 8 License: BSD 9 Group: System Environment/Libraries 10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot 11 Source0: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 12 URL: http://www.webmproject.org/tools/vp8-sdk/ 13 BuildRequires: nasm 14 BuildRequires: libgcc1, pthread-devel 15 #BuildRequires: doxygen, php-cli 16 Source: %{name}-%{version}-r%{svn_rev}.zip 17 18 BuildRequires: gcc make subversion zip 16 19 17 20 %description 18 libvpx provides the VP8 SDK, which allows you to integrate your applications19 with the VP8 video codec, a high quality, royalty free, open source codec21 libvpx provides the VP8/VP9 SDK, which allows you to integrate your applications 22 with the VP8 and VP9 video codecs, high quality, royalty free, open source codecs 20 23 deployed on millions of computers and devices worldwide. 21 24 22 25 %package devel 23 Summary: 24 Group: 25 Requires: 26 Summary: Development files for libvpx 27 Group: Development/Libraries 28 Requires: %{name} = %{version}-%{release} 26 29 27 30 %description devel … … 29 32 libvpx. 30 33 34 %package devel-doc 35 Summary: Development documentation files for %{name} 36 Group: Documentation 37 BuildArch: noarch 38 Requires: %{name}-devel = %{version}-%{release} 39 40 %description devel-doc 41 This package contains the documentation files useful for 42 developing applications that use %{name}. 43 44 %package utils 45 Summary: VP8 utilities and tools 46 Group: Development/Tools 47 Requires: %{name} = %{version}-%{release} 48 49 %description utils 50 A selection of utilities and tools for VP8, including a sample encoder 51 and decoder. 52 53 %legacy_runtime_packages 54 31 55 %debug_package 32 56 33 57 %prep 34 # %setup -q35 36 58 %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} 37 59 %setup -q … … 44 66 45 67 %build 46 %ifarch %{ix86} 47 %global vpxtarget x86-os2-gcc 48 %else 49 %ifarch x86_64 50 %global vpxtarget x86_64-os2-gcc 51 %else 52 %global vpxtarget generic-gnu 53 %endif 54 %endif 55 56 export LDFLAGS="-Zomf -Zhigh-mem" \ 57 ASFLAGS="-g -f aout" AS=nasm 68 export LDFLAGS="-Zomf -Zmap -Zhigh-mem" 58 69 59 70 ./configure \ 60 --extra-cflags="%{optflags}" \ 61 --prefix=%{_prefix} \ 62 --libdir=%{_libdir} \ 63 --target=%{vpxtarget} \ 64 --disable-install-srcs \ 65 --enable-vp8 \ 66 --enable-vp9 \ 67 --enable-postproc \ 68 --enable-onthefly-bitpacking \ 69 --enable-multi-res-encoding \ 70 --enable-runtime-cpu-detect \ 71 --enable-postproc-visualizer \ 72 --enable-error-concealment \ 73 --disable-examples \ 74 --disable-install-docs \ 75 --enable-pic \ 76 --enable-shared \ 77 --enable-small 71 --extra-cflags="%{optflags}" \ 72 --enable-pic --disable-install-srcs \ 73 --enable-vp9-decoder --enable-vp9-encoder \ 74 --enable-experimental --enable-spatial-svc \ 75 --enable-vp9-highbitdepth \ 76 --enable-shared \ 77 --prefix=%{_prefix} --libdir=%{_libdir} --size-limit=16384x16384 \ 78 78 79 %{__make} %{?_smp_mflags} verbose=true target=libs 79 make %{?_smp_mflags} verbose=true 80 80 81 81 %install 82 rm -rf $RPM_BUILD_ROOT 83 %{__make} DIST_DIR=%{buildroot}%{_prefix} install 84 mkdir -p %{buildroot}%{_includedir}/vpx/ 85 # No static library 86 rm -rf %{buildroot}%{_libdir}/libvpx.a 82 rm -rf %{buildroot} 83 make DIST_DIR=%{buildroot}%{_prefix} dist 84 85 # Simpler to label the dir as %%doc (resides in the build dir). 86 if [ -d %{buildroot}%{_prefix}/docs ]; then 87 rm -rf %{buildroot}%{_prefix}/docs 88 fi 89 90 ( 91 cd %{buildroot} 92 93 # Stuff we don't need. 94 rm -rf .%{_prefix}/md5sums.txt ./%{_prefix}/lib/libvpx.a ./%{_prefix}/CHANGELOG ./%{_prefix}/README 95 # No, bad google. No treat. 96 mv .%{_bindir}/examples/* ./%{_bindir} 97 mv .%{_bindir}/tools/* ./%{_bindir} 98 rm -rf .%{_bindir}/examples .%{_bindir}/tools 99 100 # Rename a few examples 101 for f in `find .%{_bindir} -type f ! -name 'vpx*.exe' ! -name 'vp8*.exe' ! -name 'vp9*.exe'` ; do 102 mv $f .%{_bindir}/vpx_${f##*/} 103 done 104 # Fix the binary permissions 105 chmod 755 .%{_bindir}/* 106 ) 87 107 88 108 %clean … … 90 110 91 111 %files 92 % defattr(-,root,root,-)93 %doc AUTHORS CHANGELOG LICENSE README PATENTS94 %{_libdir}/libvpx 2.dll112 %license LICENSE 113 %doc AUTHORS CHANGELOG README 114 %{_libdir}/libvpx4.dll 95 115 96 116 %files devel 97 %defattr(-,root,root,-)98 # These are SDK docs, not really useful to an end-user.99 #%doc docs/100 117 %{_includedir}/vpx/ 101 118 %{_libdir}/pkgconfig/vpx.pc 102 119 %{_libdir}/libvpx*.a 103 120 121 %files devel-doc 122 # These are SDK docs, not really useful to an end-user. 123 %doc docs/html/ 124 125 %files utils 126 %{_bindir}/*.exe 127 104 128 %changelog 129 * Fri Feb 3 2017 Dmitriy Kuminov <coding@dmik.org> 1.6.1-1 130 - Update to version 1.6.1. 131 - Generate development documentation and provide it in a separate sub-package. 132 - Provide legacy packages with DLLs for old ABI. 133 105 134 * Fri Feb 3 2017 Dmitriy Kuminov <coding@dmik.org> 1.4.0-2 106 135 - Use -Zomf to preserve HLL debug info and significantly reduce DLL size. … … 108 137 - Remove static library and OMF libraries. 109 138 110 * Tue Nov 17 2015 Valery Sedletski <_valerius@mail.ru> 1.4.0-1139 * Tue Nov 17 2015 Valery Sedletski <_valerius@mail.ru> - 1.4.0 OS/2 initial build 111 140 - initial OS/2 build
Note:
See TracChangeset
for help on using the changeset viewer.