1 | Summary: MPEG-4 Simple and Advanced Simple Profile codec |
---|
2 | Name: xvidcore |
---|
3 | Version: 1.2.2 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Source: http://downloads.xvid.org/downloads/%{name}-%{version}.tar.bz2 |
---|
6 | Patch0: xvidcore-noexec-stack.patch |
---|
7 | Group: System Environment/Libraries |
---|
8 | License: GPLv2+ |
---|
9 | URL: http://www.xvid.org/ |
---|
10 | |
---|
11 | BuildRequires: nasm >= 2.0 |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | |
---|
15 | %description |
---|
16 | The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple |
---|
17 | Profile standards. It permits compressing and decompressing digital video |
---|
18 | in order to reduce the required bandwidth of video data for transmission |
---|
19 | over computer networks or efficient storage on CDs or DVDs. Due to its |
---|
20 | unrivalled quality Xvid has gained great popularity and is used in many |
---|
21 | other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and |
---|
22 | many more. |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Development files for the Xvid video codec |
---|
26 | Group: Development/Libraries |
---|
27 | Requires: %{name} = %{version}-%{release} |
---|
28 | |
---|
29 | %description devel |
---|
30 | This package contains header files, static library and API |
---|
31 | documentation for the Xvid video codec. |
---|
32 | |
---|
33 | |
---|
34 | %prep |
---|
35 | %setup -q -n %{name} |
---|
36 | %patch0 -p1 -z .noexec-stack |
---|
37 | chmod -x examples/*.pl |
---|
38 | f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f |
---|
39 | # Yes, we want to see the build output. |
---|
40 | %{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile |
---|
41 | |
---|
42 | |
---|
43 | %build |
---|
44 | cd build/generic |
---|
45 | export CFLAGS="$RPM_OPT_FLAGS -ffast-math" |
---|
46 | %configure |
---|
47 | %__make %{?_smp_mflags} |
---|
48 | cd - |
---|
49 | |
---|
50 | |
---|
51 | %install |
---|
52 | %__rm -rf $RPM_BUILD_ROOT |
---|
53 | %__make -C build/generic install DESTDIR=$RPM_BUILD_ROOT |
---|
54 | %__rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a |
---|
55 | cd $RPM_BUILD_ROOT%{_libdir} |
---|
56 | chmod 755 libxvidcore.so* |
---|
57 | /sbin/ldconfig -n . |
---|
58 | ln -s libxvidcore.so.? libxvidcore.so |
---|
59 | cd - |
---|
60 | |
---|
61 | |
---|
62 | %clean |
---|
63 | %__rm -rf $RPM_BUILD_ROOT |
---|
64 | |
---|
65 | |
---|
66 | %post -p /sbin/ldconfig |
---|
67 | |
---|
68 | %postun -p /sbin/ldconfig |
---|
69 | |
---|
70 | |
---|
71 | %files |
---|
72 | %defattr(-,root,root,-) |
---|
73 | %doc LICENSE README AUTHORS ChangeLog |
---|
74 | %{_libdir}/libxvidcore.so.* |
---|
75 | |
---|
76 | %files devel |
---|
77 | %defattr(-,root,root,-) |
---|
78 | %doc CodingStyle TODO examples/ |
---|
79 | %{_includedir}/xvid.h |
---|
80 | %{_libdir}/libxvidcore.so |
---|
81 | |
---|
82 | %changelog |
---|
83 | * Sat Dec 25 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.2-1 |
---|
84 | - new upstream release |
---|
85 | - applied a rebase noexec-stack patch from RPM Fusion development |
---|
86 | |
---|
87 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.1-4 |
---|
88 | - change release to sync with self-build-xvidcore |
---|
89 | |
---|
90 | * Fri Jun 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-3 |
---|
91 | - change release to sync with self-build-xvidcore |
---|
92 | |
---|
93 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-2 |
---|
94 | - change release to sync with self-build-xvidcore |
---|
95 | |
---|
96 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-1 |
---|
97 | - new upstream release |
---|
98 | - dropped xvidcore-1.1.3_bitstream.patch |
---|
99 | |
---|
100 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-3 |
---|
101 | - spec in utf8 |
---|
102 | |
---|
103 | * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.3-2 |
---|
104 | - release +1 to sync with self-build-xvidcore |
---|
105 | |
---|
106 | * Fri Apr 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-1vl4 |
---|
107 | - build with new versioning policy |
---|
108 | - apply xvidcore-1.1.3_bitstream.patch |
---|
109 | |
---|
110 | * Tue Feb 19 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-0vl1 |
---|
111 | - initial build for Vine Linux 4.2 |
---|
112 | |
---|
113 | ### end of file |
---|