3 %bcond_without asm # MMX/SSE* x86 assembler optimizations
6 # %{x8664} misses GOT code in i386inc.asm
9 Summary: Audio Video Standard of China library
10 Summary(pl.UTF-8): Biblioteka kodeka AVS (Audio Video Standard of China)
14 Release: 0.svn%{svnver}.2
17 # svn co https://xavs.svn.sourceforge.net/svnroot/xavs/trunk xavs
18 Source0: %{name}-r%{svnver}.tar.xz
19 # Source0-md5: c4f73561424d850a5c59ef202d85f0d7
20 Patch0: %{name}-dynamic-xavs.patch
21 Patch1: %{name}-asm.patch
22 URL: http://xavs.sourceforge.net/
23 BuildRequires: tar >= 1:1.22
25 BuildRequires: subversion
28 BuildRequires: binutils >= 2:2.17
29 BuildRequires: yasm >= 0.6.1
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 AVS is the Audio Video Standard of China. This project aims to
35 implement high quality AVS encoder and decoder.
37 %description -l pl.UTF-8
38 AVS (Audio Video Standard of China) to standardowy kodek A/V dla Chin.
39 Celem projektu jest zaimplementowanie wysokiej jakości kodera i
43 Summary: Header files for AVS library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AVS
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
49 Header files for AVS library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki AVS.
55 Summary: Static AVS library
56 Summary(pl.UTF-8): Statyczna biblioteka AVS
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
63 %description static -l pl.UTF-8
64 Statyczna biblioteka AVS.
76 %{?with_asm:--enable-asm}%{!?with_asm:--disable-asm} \
78 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fno-strict-aliasing" \
79 --extra-ldflags="%{rpmldflags}"
82 ln -sf libxavs.so.1 libxavs.so
84 %{__make} default libxavs.a \
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
94 rm -rf $RPM_BUILD_ROOT
96 %post -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_bindir}/xavs
102 %attr(755,root,root) %{_libdir}/libxavs.so.1
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libxavs.so
107 %{_includedir}/xavs.h
108 %{_pkgconfigdir}/xavs.pc
111 %defattr(644,root,root,755)