]> git.pld-linux.org Git - packages/xavs.git/blob - xavs.spec
4217c5af29430afa659cfcf9bbb63ee61c816e10
[packages/xavs.git] / xavs.spec
1 Summary:        Audio Video Standard of China library
2 Summary(pl.UTF-8):      Biblioteka kodeka AVS (Audio Video Standard of China)
3 Name:           xavs
4 Version:        0
5 %define svnver  51
6 Release:        0.svn%{svnver}.1
7 License:        GPL v2+
8 Group:          Libraries
9 # svn co https://xavs.svn.sourceforge.net/svnroot/xavs/trunk xavs
10 Source0:        %{name}-r%{svnver}.tar.xz
11 # Source0-md5:  c96ff5e330dd18760bc2024435a95a01
12 Patch0:         %{name}-dynamic-xavs.patch
13 BuildRequires:  tar >= 1:1.22
14 # for svnversion
15 BuildRequires:  subversion
16 BuildRequires:  xz
17 %ifarch %{ix86} %{x8664}
18 #BuildRequires: binutils >= 2.17
19 #BuildRequires: yasm >= 0.6.1
20 %endif
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 AVS is the Audio Video Standard of China. This project aims to
25 implement high quality AVS encoder and decoder.
26
27 %description -l pl.UTF-8
28 AVS (Audio Video Standard of China) to standardowy kodek A/V dla Chin.
29 Celem projektu jest zaimplementowanie wysokiej jakości kodera i
30 dekodera AVS.
31
32 %package devel
33 Summary:        Header files for AVS library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki AVS
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for AVS library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki AVS.
43
44 %package static
45 Summary:        Static AVS library
46 Summary(pl.UTF-8):      Statyczna biblioteka AVS
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static AVS library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka AVS.
55
56 %prep
57 %setup -q -n %{name}
58 %patch0 -p1
59
60 %build
61 # not autoconf script
62 ./configure \
63         --prefix=%{_prefix} \
64         --libdir=%{_libdir} \
65         --enable-shared \
66         --extra-cflags="%{rpmcflags} %{rpmcppflags} -fno-strict-aliasing" \
67         --extra-ldflags="%{rpmldflags}"
68 # currently broken
69 #%ifarch %{ix86} %{x8664} \
70 #       --enable-asm \
71 #%endif
72
73 # linking hack
74 ln -sf libxavs.so.1 libxavs.so
75
76 %{__make} default libxavs.a \
77         CC="%{__cc}"
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_bindir}/xavs
94 %attr(755,root,root) %{_libdir}/libxavs.so.1
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libxavs.so
99 %{_includedir}/xavs.h
100 %{_pkgconfigdir}/xavs.pc
101
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libxavs.a
This page took 0.042386 seconds and 2 git commands to generate.