1 | %define name xvidcore |
---|
2 | %define version 1.2.1 |
---|
3 | %define release 4%{?_dist_release} |
---|
4 | |
---|
5 | Summary: Free reimplementation of the OpenDivX video codec |
---|
6 | Name: %{name} |
---|
7 | Version: %{version} |
---|
8 | Release: %{release} |
---|
9 | Source: http://downloads.xvid.org/downloads/%{name}-%{version}.tar.bz2 |
---|
10 | License: XVID (GPL with specific restrictions) |
---|
11 | URL: http://www.xvid.org/ |
---|
12 | Group: System Environment/Libraries |
---|
13 | |
---|
14 | #Requires: |
---|
15 | %ifarch %{ix86} |
---|
16 | BuildRequires: nasm |
---|
17 | %endif |
---|
18 | %ifarch x86_64 |
---|
19 | BuildRequires: yasm |
---|
20 | %endif |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | |
---|
23 | %description |
---|
24 | Free reimplementation of the OpenDivX video codec. You can play OpenDivX |
---|
25 | and DivX4 videos with it, as well as encode compatible files. |
---|
26 | |
---|
27 | %package devel |
---|
28 | Summary: Development files for the XviD video codec |
---|
29 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version}-%{release} |
---|
31 | |
---|
32 | %description devel |
---|
33 | This package contains header files, static library and API |
---|
34 | documentation for the XviD video codec. |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q -n %{name} |
---|
38 | |
---|
39 | %build |
---|
40 | cd build/generic |
---|
41 | |
---|
42 | %configure |
---|
43 | make %{?_smp_mflags} |
---|
44 | |
---|
45 | %install |
---|
46 | rm -rf %{buildroot} |
---|
47 | cd build/generic |
---|
48 | %makeinstall |
---|
49 | rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a |
---|
50 | cd $RPM_BUILD_ROOT%{_libdir} |
---|
51 | chmod 755 libxvidcore.so* |
---|
52 | /sbin/ldconfig -n . |
---|
53 | ln -s libxvidcore.so.? libxvidcore.so |
---|
54 | |
---|
55 | %post -p /sbin/ldconfig |
---|
56 | |
---|
57 | %postun -p /sbin/ldconfig |
---|
58 | |
---|
59 | %clean |
---|
60 | rm -rf $RPM_BUILD_ROOT |
---|
61 | |
---|
62 | %files |
---|
63 | %defattr(-,root,root,-) |
---|
64 | %doc LICENSE README AUTHORS ChangeLog TODO |
---|
65 | %{_libdir}/libxvidcore.so.* |
---|
66 | |
---|
67 | %files devel |
---|
68 | %defattr(-,root,root,-) |
---|
69 | %doc CodingStyle examples/ |
---|
70 | %{_includedir}/xvid.h |
---|
71 | %{_libdir}/libxvidcore.so |
---|
72 | |
---|
73 | %changelog |
---|
74 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.1-4 |
---|
75 | - change release to sync with self-build-xvidcore |
---|
76 | |
---|
77 | * Fri Jun 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-3 |
---|
78 | - change release to sync with self-build-xvidcore |
---|
79 | |
---|
80 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-2 |
---|
81 | - change release to sync with self-build-xvidcore |
---|
82 | |
---|
83 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-1 |
---|
84 | - new upstream release |
---|
85 | - dropped xvidcore-1.1.3_bitstream.patch |
---|
86 | |
---|
87 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-3 |
---|
88 | - spec in utf8 |
---|
89 | |
---|
90 | * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.3-2 |
---|
91 | - release +1 to sync with self-build-xvidcore |
---|
92 | |
---|
93 | * Fri Apr 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-1vl4 |
---|
94 | - build with new versioning policy |
---|
95 | - apply xvidcore-1.1.3_bitstream.patch |
---|
96 | |
---|
97 | * Tue Feb 19 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-0vl1 |
---|
98 | - initial build for Vine Linux 4.2 |
---|
99 | |
---|
100 | ### end of file |
---|