Changeset 950


Ignore:
Timestamp:
Feb 3, 2017, 8:16:52 PM (9 years ago)
Author:
dmik
Message:

spec: libvpx: Release version 1.6.1-1.

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
     3Name:                   libvpx
     4Summary:                VP8/VP9 Video Codec SDK
     5Version:                1.6.1
     6Release:                1%{?dist}
     7License:                BSD
     8Group:                  System Environment/Libraries
     9URL:                    http://www.webmproject.org/code/
     10BuildRequires:          nasm
     11BuildRequires:          doxygen
     12
    113%define svn_url     http://svn.netlabs.org/repos/ports/libvpx/trunk
    2 %define svn_rev     1355
     14%define svn_rev     1963
    315
    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
     16Source: %{name}-%{version}-r%{svn_rev}.zip
     17
     18BuildRequires: gcc make subversion zip
    1619
    1720%description
    18 libvpx provides the VP8 SDK, which allows you to integrate your applications
    19 with the VP8 video codec, a high quality, royalty free, open source codec
     21libvpx provides the VP8/VP9 SDK, which allows you to integrate your applications
     22with the VP8 and VP9 video codecs, high quality, royalty free, open source codecs
    2023deployed on millions of computers and devices worldwide.
    2124
    2225%package devel
    23 Summary: Development files for libvpx
    24 Group: Development/Libraries
    25 Requires: %{name} = %{version}-%{release}
     26Summary:                Development files for libvpx
     27Group:                  Development/Libraries
     28Requires:               %{name} = %{version}-%{release}
    2629
    2730%description devel
     
    2932libvpx.
    3033
     34%package devel-doc
     35Summary:    Development documentation files for %{name}
     36Group:      Documentation
     37BuildArch:  noarch
     38Requires:   %{name}-devel = %{version}-%{release}
     39
     40%description devel-doc
     41This package contains the documentation files useful for
     42developing applications that use %{name}.
     43
     44%package utils
     45Summary:                VP8 utilities and tools
     46Group:                  Development/Tools
     47Requires:               %{name} = %{version}-%{release}
     48
     49%description utils
     50A selection of utilities and tools for VP8, including a sample encoder
     51and decoder.
     52
     53%legacy_runtime_packages
     54
    3155%debug_package
    3256
    3357%prep
    34 # %setup -q
    35 
    3658%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}
    3759%setup -q
     
    4466
    4567%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
     68export LDFLAGS="-Zomf -Zmap -Zhigh-mem"
    5869
    5970./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 \
    7878
    79 %{__make} %{?_smp_mflags} verbose=true target=libs
     79make %{?_smp_mflags} verbose=true
    8080
    8181%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
     82rm -rf %{buildroot}
     83make DIST_DIR=%{buildroot}%{_prefix} dist
     84
     85# Simpler to label the dir as %%doc (resides in the build dir).
     86if [ -d %{buildroot}%{_prefix}/docs ]; then
     87   rm -rf %{buildroot}%{_prefix}/docs
     88fi
     89
     90(
     91cd %{buildroot}
     92
     93# Stuff we don't need.
     94rm -rf .%{_prefix}/md5sums.txt ./%{_prefix}/lib/libvpx.a ./%{_prefix}/CHANGELOG ./%{_prefix}/README
     95# No, bad google. No treat.
     96mv .%{_bindir}/examples/* ./%{_bindir}
     97mv .%{_bindir}/tools/* ./%{_bindir}
     98rm -rf .%{_bindir}/examples .%{_bindir}/tools
     99
     100# Rename a few examples
     101for f in `find .%{_bindir} -type f ! -name 'vpx*.exe' ! -name 'vp8*.exe' ! -name 'vp9*.exe'` ; do
     102  mv $f .%{_bindir}/vpx_${f##*/}
     103done
     104# Fix the binary permissions
     105chmod 755 .%{_bindir}/*
     106)
    87107
    88108%clean
     
    90110
    91111%files
    92 %defattr(-,root,root,-)
    93 %doc AUTHORS CHANGELOG LICENSE README PATENTS
    94 %{_libdir}/libvpx2.dll
     112%license LICENSE
     113%doc AUTHORS CHANGELOG README
     114%{_libdir}/libvpx4.dll
    95115
    96116%files devel
    97 %defattr(-,root,root,-)
    98 # These are SDK docs, not really useful to an end-user.
    99 #%doc docs/
    100117%{_includedir}/vpx/
    101118%{_libdir}/pkgconfig/vpx.pc
    102119%{_libdir}/libvpx*.a
    103120
     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
    104128%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
    105134* Fri Feb 3 2017 Dmitriy Kuminov <coding@dmik.org> 1.4.0-2
    106135- Use -Zomf to preserve HLL debug info and significantly reduce DLL size.
     
    108137- Remove static library and OMF libraries.
    109138
    110 * Tue Nov 17 2015 Valery Sedletski <_valerius@mail.ru> 1.4.0-1
     139* Tue Nov 17 2015 Valery Sedletski <_valerius@mail.ru> - 1.4.0 OS/2 initial build
    111140- initial OS/2 build
Note: See TracChangeset for help on using the changeset viewer.