[12380] | 1 | %global somajor 6 |
---|
[11504] | 2 | %global sominor 0 |
---|
| 3 | %global sotiny 0 |
---|
| 4 | %global soversion %{somajor}.%{sominor}.%{sotiny} |
---|
| 5 | |
---|
[1075] | 6 | Name: libvpx |
---|
[12380] | 7 | Version: 1.8.2 |
---|
[2403] | 8 | Release: 1%{?_dist_release} |
---|
[12380] | 9 | Summary: The VP8/VP9 Codec SDK |
---|
[11504] | 10 | Summary(ja): VP8/VP9 コーデックソフトウェア開発キット |
---|
[12380] | 11 | Group: System Environment/Libraries |
---|
| 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | Packager: daisuke |
---|
[1075] | 15 | |
---|
| 16 | License: BSD |
---|
[12380] | 17 | URL: https://www.webmproject.org/code/ |
---|
| 18 | Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz |
---|
| 19 | Source1: vpx_config.h |
---|
| 20 | Source2: libvpx.ver |
---|
[1075] | 21 | |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 23 | %ifarch %{ix86} x86_64 |
---|
| 24 | BuildRequires: yasm |
---|
| 25 | %endif |
---|
| 26 | |
---|
| 27 | %description |
---|
[11504] | 28 | The WebM VP8/VP9 Codec SDK allows you to integrate your applications with |
---|
| 29 | the VP8/VP9 video codec, a high quality, royalty free, open source codec |
---|
[1075] | 30 | deployed on millions of computers and devices worldwide. |
---|
| 31 | |
---|
| 32 | %description -l ja |
---|
[11504] | 33 | WebM VP8/VP9 コーデック SDK は、VP8/VP9 ビデオコーデックをアプリケーションに |
---|
| 34 | 統合するための開発キットです。VP8/VP9ビデオコーデックは高品質でロイヤリティフリー |
---|
| 35 | かつオープンソースのコーデックで、世界中の多くのコンピュータやデバイスで利用されて |
---|
| 36 | います。 |
---|
[1075] | 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Development files for %{name} |
---|
| 40 | Summary(ja): %{name} の開発ファイル |
---|
| 41 | Group: Development/Libraries |
---|
| 42 | Requires: %{name} = %{version}-%{release} |
---|
| 43 | |
---|
| 44 | %description devel |
---|
| 45 | The %{name}-devel package contains development files for |
---|
| 46 | %{name}. |
---|
| 47 | |
---|
| 48 | %description devel -l ja |
---|
| 49 | %{name}-devel パッケージは %{name} の開発用ファイルを含んでいます。 |
---|
| 50 | |
---|
| 51 | %package utils |
---|
| 52 | Summary: example programs for %{name} |
---|
| 53 | Summary(ja): %{name} のサンプルプログラム |
---|
| 54 | Group: Applications/Multimedia |
---|
| 55 | Requires: %{name} = %{version}-%{release} |
---|
| 56 | |
---|
| 57 | %description utils |
---|
| 58 | The %{name}-utils package contains example programs that |
---|
| 59 | use %{name}. |
---|
| 60 | |
---|
| 61 | %description utils -l ja |
---|
| 62 | %{name}-utils パッケージは、%{name} を使用したサンプル |
---|
| 63 | アプリケーションを含んでいます。 |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %prep |
---|
[11504] | 67 | %setup -q |
---|
[1075] | 68 | |
---|
| 69 | %build |
---|
| 70 | |
---|
| 71 | %ifarch %{ix86} |
---|
| 72 | %global vpxtarget x86-linux-gcc |
---|
| 73 | %else |
---|
| 74 | %ifarch x86_64 |
---|
| 75 | %global vpxtarget x86_64-linux-gcc |
---|
| 76 | %else |
---|
| 77 | %global vpxtarget generic-gnu |
---|
| 78 | %endif |
---|
| 79 | %endif |
---|
| 80 | |
---|
[1304] | 81 | %if "%{vpxtarget}" == "generic-gnu" |
---|
| 82 | %global generic_target 1 |
---|
| 83 | %else |
---|
| 84 | %global generic_target 0 |
---|
| 85 | %endif |
---|
| 86 | |
---|
[1075] | 87 | ./configure \ |
---|
| 88 | --target=%{vpxtarget} \ |
---|
| 89 | --enable-pic \ |
---|
[12380] | 90 | --enable-vp9-decoder --enable-vp9-encoder \ |
---|
| 91 | --enable-experimental \ |
---|
[11504] | 92 | --enable-vp9-highbitdepth \ |
---|
[12380] | 93 | --enable-experimental \ |
---|
[1304] | 94 | %if ! %{generic_target} |
---|
| 95 | --enable-shared \ |
---|
| 96 | %endif |
---|
| 97 | --prefix=%{_prefix} \ |
---|
| 98 | --libdir=%{_libdir} \ |
---|
[1075] | 99 | --disable-install-docs \ |
---|
[11504] | 100 | --enable-install-srcs \ |
---|
| 101 | --size-limit=16384x16384 |
---|
[1075] | 102 | |
---|
[11504] | 103 | %{__make} %{?_smp_mflags} verbose=true |
---|
[1075] | 104 | |
---|
[11504] | 105 | # Manual shared library creation |
---|
| 106 | # We should never need to do this anymore, and if we do, we need to fix the version-script. |
---|
[1304] | 107 | %if %{generic_target} |
---|
[11504] | 108 | mkdir tmp |
---|
| 109 | cd tmp |
---|
[1075] | 110 | ar x ../libvpx_g.a |
---|
[11504] | 111 | cd .. |
---|
| 112 | gcc -fPIC -shared -pthread -lm -Wl,--no-undefined -Wl,-soname,libvpx.so.%{somajor} -Wl,--version-script,%{SOURCE2} -Wl,-z,noexecstack -o libvpx.so.%{soversion} |
---|
| 113 | tmp/*.o |
---|
[1075] | 114 | rm -rf tmp |
---|
[1304] | 115 | %endif |
---|
[1075] | 116 | |
---|
| 117 | %install |
---|
| 118 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
[1304] | 119 | %{__make} DIST_DIR=$RPM_BUILD_ROOT%{_prefix} dist |
---|
[1075] | 120 | |
---|
[11504] | 121 | # Simpler to label the dir as %%doc. |
---|
| 122 | if [ -d %{buildroot}/usr/docs ]; then |
---|
| 123 | mv %{buildroot}/usr/docs doc/ |
---|
| 124 | fi |
---|
| 125 | |
---|
| 126 | # Again, we should never need to do this anymore. |
---|
[1304] | 127 | %if %{generic_target} |
---|
[11504] | 128 | install -p libvpx.so.%{soversion} %{buildroot}%{_libdir} |
---|
[1304] | 129 | pushd %{buildroot}%{_libdir} |
---|
[11504] | 130 | ln -sf libvpx.so.%{soversion} libvpx.so |
---|
| 131 | ln -sf libvpx.so.%{soversion} libvpx.so.%{somajor} |
---|
| 132 | ln -sf libvpx.so.%{soversion} libvpx.so.%{somajor}.%{sominor} |
---|
[1304] | 133 | popd |
---|
| 134 | %endif |
---|
| 135 | |
---|
[1075] | 136 | pushd %{buildroot} |
---|
[11504] | 137 | # Stuff we don't need. |
---|
| 138 | rm -rf usr/build/ usr/md5sums.txt usr/lib*/*.a usr/CHANGELOG usr/README |
---|
| 139 | # No, bad google. No treat. |
---|
| 140 | mv usr/bin/examples/* usr/bin/ |
---|
| 141 | rm -rf usr/bin/examples |
---|
| 142 | |
---|
[1075] | 143 | # Rename a few examples |
---|
[1304] | 144 | mv usr/bin/postproc usr/bin/vp8_postproc |
---|
[1075] | 145 | mv usr/bin/simple_decoder usr/bin/vp8_simple_decoder |
---|
| 146 | mv usr/bin/simple_encoder usr/bin/vp8_simple_encoder |
---|
| 147 | mv usr/bin/twopass_encoder usr/bin/vp8_twopass_encoder |
---|
| 148 | # Fix the binary permissions |
---|
| 149 | chmod 755 usr/bin/* |
---|
| 150 | popd |
---|
| 151 | |
---|
[11504] | 152 | # Get the vpx_config.h file |
---|
| 153 | %ifarch %{arm} |
---|
| 154 | cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-arm.h |
---|
| 155 | %else |
---|
| 156 | # Does ppc64le need its own? |
---|
| 157 | %ifarch ppc64 ppc64le |
---|
| 158 | cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-ppc64.h |
---|
| 159 | %else |
---|
| 160 | %ifarch s390 s390x |
---|
| 161 | cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-s390.h |
---|
| 162 | %else |
---|
| 163 | %ifarch %{ix86} |
---|
| 164 | cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-x86.h |
---|
| 165 | %else |
---|
| 166 | cp -a vpx_config.h %{buildroot}%{_includedir}/vpx/vpx_config-%{_arch}.h |
---|
| 167 | %endif |
---|
| 168 | %endif |
---|
| 169 | %endif |
---|
| 170 | %endif |
---|
[1075] | 171 | |
---|
[11504] | 172 | cp %{SOURCE1} %{buildroot}%{_includedir}/vpx/vpx_config.h |
---|
| 173 | # for timestamp sync |
---|
| 174 | touch -r AUTHORS %{buildroot}%{_includedir}/vpx/vpx_config.h |
---|
[1075] | 175 | |
---|
[11504] | 176 | mv %{buildroot}%{_prefix}/src/vpx_dsp %{buildroot}%{_includedir}/ |
---|
| 177 | mv %{buildroot}%{_prefix}/src/vpx_mem %{buildroot}%{_includedir}/ |
---|
| 178 | mv %{buildroot}%{_prefix}/src/vpx_ports %{buildroot}%{_includedir}/ |
---|
| 179 | mv %{buildroot}%{_prefix}/src/vpx_scale %{buildroot}%{_includedir}/ |
---|
| 180 | |
---|
| 181 | rm -rf %{buildroot}%{_prefix}/src |
---|
| 182 | |
---|
[1075] | 183 | %clean |
---|
| 184 | rm -rf $RPM_BUILD_ROOT |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | %post -p /sbin/ldconfig |
---|
| 188 | |
---|
| 189 | %postun -p /sbin/ldconfig |
---|
| 190 | |
---|
| 191 | |
---|
| 192 | %files |
---|
| 193 | %defattr(-,root,root,-) |
---|
[12380] | 194 | %license LICENSE |
---|
| 195 | %doc AUTHORS README CHANGELOG |
---|
[1075] | 196 | %{_libdir}/*.so.* |
---|
| 197 | |
---|
| 198 | %files devel |
---|
| 199 | %defattr(-,root,root,-) |
---|
[11504] | 200 | %doc docs/html/ |
---|
| 201 | %{_includedir}/vpx/ |
---|
| 202 | %{_includedir}/vpx_dsp/ |
---|
| 203 | %{_includedir}/vpx_mem/ |
---|
| 204 | %{_includedir}/vpx_ports/ |
---|
| 205 | %{_includedir}/vpx_scale/ |
---|
| 206 | %{_libdir}/pkgconfig/vpx.pc |
---|
| 207 | %{_libdir}/libvpx.so |
---|
[1075] | 208 | |
---|
| 209 | %files utils |
---|
| 210 | %defattr(-,root,root,-) |
---|
| 211 | %{_bindir}/* |
---|
| 212 | |
---|
| 213 | |
---|
| 214 | %changelog |
---|
[12380] | 215 | * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.2-1 |
---|
| 216 | - new upstream release. |
---|
| 217 | |
---|
[11504] | 218 | * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0-1 |
---|
| 219 | - new upstream release. |
---|
| 220 | - updated Source2. |
---|
| 221 | - added Source1. |
---|
| 222 | |
---|
[6901] | 223 | * Mon Oct 08 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 224 | - new upstream release |
---|
| 225 | - remove Patch0 (libvpx-0.9.0-no-explicit-dep-on-static-lib.patch) |
---|
| 226 | - remove Source1 (libvpx.pc) |
---|
| 227 | |
---|
[5296] | 228 | * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.6-1 |
---|
| 229 | - new upstream release |
---|
| 230 | |
---|
[2403] | 231 | * Mon Dec 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.5-1 |
---|
| 232 | - new upstream release |
---|
| 233 | |
---|
[1901] | 234 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.1-2 |
---|
| 235 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 236 | |
---|
[1304] | 237 | * Sun Jul 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.1-1 |
---|
| 238 | - new upstream release |
---|
| 239 | |
---|
[1075] | 240 | * Mon May 24 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.0-1 |
---|
| 241 | - initial build for Vine Linux |
---|