source: spec/trunk/SPECS/libvpx.spec@ 1330

Last change on this file since 1330 was 950, checked in by dmik, 9 years ago

spec: libvpx: Release version 1.6.1-1.

File size: 4.0 KB
Line 
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
13%define svn_url http://svn.netlabs.org/repos/ports/libvpx/trunk
14%define svn_rev 1963
15
16Source: %{name}-%{version}-r%{svn_rev}.zip
17
18BuildRequires: gcc make subversion zip
19
20%description
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
23deployed on millions of computers and devices worldwide.
24
25%package devel
26Summary: Development files for libvpx
27Group: Development/Libraries
28Requires: %{name} = %{version}-%{release}
29
30%description devel
31Development libraries and headers for developing software against
32libvpx.
33
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
55%debug_package
56
57%prep
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}
59%setup -q
60%else
61%setup -n "%{name}-%{version}" -Tc
62svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
63rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
64(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
65%endif
66
67%build
68export LDFLAGS="-Zomf -Zmap -Zhigh-mem"
69
70./configure \
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
79make %{?_smp_mflags} verbose=true
80
81%install
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)
107
108%clean
109rm -rf $RPM_BUILD_ROOT
110
111%files
112%license LICENSE
113%doc AUTHORS CHANGELOG README
114%{_libdir}/libvpx4.dll
115
116%files devel
117%{_includedir}/vpx/
118%{_libdir}/pkgconfig/vpx.pc
119%{_libdir}/libvpx*.a
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
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
134* Fri Feb 3 2017 Dmitriy Kuminov <coding@dmik.org> 1.4.0-2
135- Use -Zomf to preserve HLL debug info and significantly reduce DLL size.
136- Use per-platform optimization flags.
137- Remove static library and OMF libraries.
138
139* Tue Nov 17 2015 Valery Sedletski <_valerius@mail.ru> - 1.4.0 OS/2 initial build
140- initial OS/2 build
Note: See TracBrowser for help on using the repository browser.