|
1 Name: xvidcore |
|
2 Version: 1.2.1 |
|
3 Release: 1%{?dist} |
|
4 Summary: MPEG-4 Simple and Advanced Simple Profile codec |
|
5 |
|
6 Group: System Environment/Libraries |
|
7 License: GPLv2+ |
|
8 URL: http://www.xvid.org/ |
|
9 Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}.tar.bz2 |
|
10 Patch0: xvidcore-1.2.1-noexec-stack.patch |
|
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|
12 |
|
13 %ifarch %{ix86} x86_64 |
|
14 BuildRequires: nasm >= 2.0 |
|
15 %endif |
|
16 |
|
17 %description |
|
18 The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple |
|
19 Profile standards. It permits compressing and decompressing digital video |
|
20 in order to reduce the required bandwidth of video data for transmission |
|
21 over computer networks or efficient storage on CDs or DVDs. Due to its |
|
22 unrivalled quality Xvid has gained great popularity and is used in many |
|
23 other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and |
|
24 many more. |
|
25 |
|
26 %package devel |
|
27 Summary: Development files for the Xvid video codec |
|
28 Group: Development/Libraries |
|
29 Requires: %{name} = %{version}-%{release} |
|
30 |
|
31 %description devel |
|
32 This package contains header files, static library and API |
|
33 documentation for the Xvid video codec. |
|
34 |
|
35 |
|
36 %prep |
|
37 %setup -q -n %{name} |
|
38 %patch0 -p1 -z .noexec-stack |
|
39 chmod -x examples/*.pl |
|
40 f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f |
|
41 # Yes, we want to see the build output. |
|
42 %{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile |
|
43 |
|
44 |
|
45 %build |
|
46 cd build/generic |
|
47 export CFLAGS="$RPM_OPT_FLAGS -ffast-math" |
|
48 %configure |
|
49 make %{?_smp_mflags} |
|
50 cd - |
|
51 |
|
52 |
|
53 %install |
|
54 rm -rf $RPM_BUILD_ROOT |
|
55 make -C build/generic install DESTDIR=$RPM_BUILD_ROOT |
|
56 rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a |
|
57 cd $RPM_BUILD_ROOT%{_libdir} |
|
58 chmod 755 libxvidcore.so* |
|
59 /sbin/ldconfig -n . |
|
60 ln -s libxvidcore.so.? libxvidcore.so |
|
61 cd - |
|
62 |
|
63 |
|
64 %clean |
|
65 rm -rf $RPM_BUILD_ROOT |
|
66 |
|
67 |
|
68 %post -p /sbin/ldconfig |
|
69 |
|
70 %postun -p /sbin/ldconfig |
|
71 |
|
72 |
|
73 %files |
|
74 %defattr(-,root,root,-) |
|
75 %doc LICENSE README AUTHORS ChangeLog |
|
76 %{_libdir}/libxvidcore.so.* |
|
77 |
|
78 %files devel |
|
79 %defattr(-,root,root,-) |
|
80 %doc CodingStyle TODO examples/ |
|
81 %{_includedir}/xvid.h |
|
82 %{_libdir}/libxvidcore.so |
|
83 |
|
84 |
|
85 %changelog |
|
86 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.2.1-1 |
|
87 - Build for MeeGo 1.1 |