1 |
%define name xvid |
2 |
%define version 1.3.1 |
3 |
%define fname xvidcore-%version |
4 |
|
5 |
%define major 4 |
6 |
%define libname %mklibname %name %major |
7 |
%define develname %mklibname -d %name |
8 |
|
9 |
Summary: Video codec compatible with divx4 |
10 |
Name: %{name} |
11 |
Version: %{version} |
12 |
Release: %mkrel 2 |
13 |
Source0: http://downloads.xvid.org/downloads/%fname.tar.bz2 |
14 |
License: GPLv2+ |
15 |
Group: System/Libraries |
16 |
URL: http://www.xvid.org |
17 |
Epoch: 2 |
18 |
BuildRequires: yasm |
19 |
|
20 |
%description |
21 |
This is a video codec based on the original OpenDivX codec. It's |
22 |
compatible with DivX and MPEG 4. |
23 |
|
24 |
This package is in PLF for patent issues. |
25 |
|
26 |
%package -n %libname |
27 |
Group: System/Libraries |
28 |
Summary: Video codec compatible with divx4 |
29 |
Provides: lib%name = %version-%release |
30 |
Obsoletes: %name |
31 |
Provides: %name |
32 |
|
33 |
%description -n %libname |
34 |
This is a video codec based on the original OpenDivX codec. It's |
35 |
compatible with DivX and MPEG 4. |
36 |
|
37 |
It's in Tainted Repository for patent issues. |
38 |
|
39 |
%package -n %develname |
40 |
Group:Development/C |
41 |
Summary: Video codec compatible with divx4, devel files |
42 |
Requires: %libname = %epoch:%version-%release |
43 |
Provides: %name-devel = %version-%release |
44 |
Obsoletes: %name-devel %{mklibname -d %name 4} |
45 |
Conflicts: xvid2-devel |
46 |
Provides: lib%name-devel = %version-%release |
47 |
Provides: xvid4-devel = %version-%release |
48 |
|
49 |
%description -n %develname |
50 |
This is a video codec based on the original OpenDivX codec. It's |
51 |
compatible with DivX and MPEG 4. |
52 |
|
53 |
It's in Tainted Repository for patent issues. |
54 |
|
55 |
This package contains the header files and static libraries needed to |
56 |
build programs with the xvid codec using it's native API. |
57 |
|
58 |
%prep |
59 |
%setup -q -n xvidcore |
60 |
|
61 |
%build |
62 |
cd build/generic |
63 |
%configure2_5x |
64 |
%make |
65 |
|
66 |
%install |
67 |
rm -rf $RPM_BUILD_ROOT |
68 |
cd build/generic |
69 |
%makeinstall |
70 |
ln -s libxvidcore.so.%major %buildroot%_libdir/libxvidcore.so |
71 |
|
72 |
%clean |
73 |
rm -rf $RPM_BUILD_ROOT |
74 |
|
75 |
|
76 |
%files -n %libname |
77 |
%defattr(-,root,root) |
78 |
%doc LICENSE README |
79 |
%_libdir/libxvidcore.so.%{major}* |
80 |
|
81 |
%files -n %develname |
82 |
%defattr(-,root,root) |
83 |
%doc ChangeLog CodingStyle TODO AUTHORS |
84 |
%_libdir/libxvidcore.so |
85 |
%_libdir/libxvidcore.a |
86 |
%_includedir/xvid.h |
87 |
|