]> git.pld-linux.org Git - packages/libx264.git/blob - libx264.spec
- fixed release for easier upgrade
[packages/libx264.git] / libx264.spec
1 Summary:        H264 encoder library
2 Summary(pl):    Biblioteka koduj±ca H264
3 Name:           libx264
4 Version:        0.1.2
5 %define snap    20060430
6 %define snaph   2245
7 Release:        1.%{snap}_%{snaph}.1
8 License:        GPL v2
9 Group:          Libraries
10 # unofficial, debianized/libtoolized packaging:
11 #Source0:       http://www.acarlab.com/misc-dnlds/%{name}-%{version}.tar.gz
12 # but it's too old, so use snapshots...
13 Source0:        ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
14 # Source0-md5:  667c760dda91e9a3f50186d4676b5d5a
15 #Patch0:                %{name}-acam.patch
16 Patch1:         %{name}-liblink.patch
17 URL:            http://developers.videolan.org/x264.html
18 BuildRequires:  autoconf >= 2.53
19 BuildRequires:  automake
20 BuildRequires:  libtool
21 %ifarch %{ix86}
22 BuildRequires:  nasm
23 %endif
24 %ifarch %{x8664}
25 #BuildRequires: yasm
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 -n x264-snapshot-%{snap}-%{snaph}
61 #%patch0 -p1
62 %patch1 -p0
63
64 %build
65 ##%{__libtoolize}
66 ##%{__aclocal}
67 ##%{__autoconf}
68 ##%{__autoheader}
69 ##%{__automake}
70 %configure \
71     --enable-shared
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS
89 %attr(755,root,root) %{_bindir}/x264
90 %attr(755,root,root) %{_libdir}/libx264.so.*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/libx264.so
95 %{_includedir}/x264.h
96 %{_pkgconfigdir}/x264.pc
97
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/libx264.a
This page took 0.183022 seconds and 4 git commands to generate.