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