]> git.pld-linux.org Git - packages/libx264.git/blob - libx264.spec
- TODO.
[packages/libx264.git] / libx264.spec
1 #
2 # TODO:
3 #               - pack svn snapshot. it has amd64 and sparc asm-accels
4 #                 and can be used with mplayer.
5 #
6 Summary:        H264 encoder library
7 Summary(pl):    Biblioteka koduj±ca H264
8 Name:           libx264
9 %define         _snap   20051013
10 Version:        0.1.2
11 Release:        1
12 License:        GPL v2
13 Group:          Libraries
14 # unofficial, debianized/libtoolized packaging;
15 # no official releases, only svn://svn.videolan.org/x264/trunk x264
16 Source0:        http://www.acarlab.com/misc-dnlds/%{name}-%{version}.tar.gz
17 # Source0-md5:  3bbaa669b3661d33030378f4919be576
18 Patch0:         %{name}-nasm.patch
19 Patch1:         %{name}-link.patch
20 URL:            http://developers.videolan.org/x264.html
21 BuildRequires:  autoconf >= 2.53
22 BuildRequires:  automake
23 BuildRequires:  libtool
24 %ifarch %{ix86}
25 BuildRequires:  nasm
26 %endif
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 libx264 library for encoding H264 video format.
31
32 %description -l pl
33 Biblioteka libx264 do kodowania w formacie obrazu H264.
34
35 %package devel
36 Summary:        Header files for x264 library
37 Summary(pl):    Pliki nag³ówkowe biblioteki x264
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40
41 %description devel
42 Header files for x264 library.
43
44 %description devel -l pl
45 Pliki nag³ówkowe biblioteki x264.
46
47 %package static
48 Summary:        Static x264 library
49 Summary(pl):    Statyczna biblioteka x264
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static x264 library.
55
56 %description static -l pl
57 Statyczna biblioteka x264.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62 %patch1 -p1
63
64 %build
65 %{__libtoolize}
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS TODO
88 %attr(755,root,root) %{_bindir}/x264
89 %attr(755,root,root) %{_libdir}/libx264.so.*.*.*
90
91 %files devel
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libx264.so
94 %{_libdir}/libx264.la
95 %{_includedir}/x264.h
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/libx264.a
This page took 0.039485 seconds and 3 git commands to generate.