]> git.pld-linux.org Git - packages/libx264.git/blame - libx264.spec
- up to 20091118_2245
[packages/libx264.git] / libx264.spec
CommitLineData
1100669a 1%define snap 20091118
1eadea1c 2%define snaph 2245
c873eb99 3%define rel 1
65b73f48 4Summary: H264 encoder library
23647862 5Summary(pl.UTF-8): Biblioteka kodująca H264
65b73f48
JB
6Name: libx264
7Version: 0.1.2
4663db6e 8Release: 1.%{snap}_%{snaph}.%{rel}
76f3f357 9License: GPL v2+
65b73f48 10Group: Libraries
aedfa898
JB
11# unofficial, debianized/libtoolized packaging:
12#Source0: http://www.acarlab.com/misc-dnlds/%{name}-%{version}.tar.gz
13# but it's too old, so use snapshots...
14Source0: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
1100669a 15# Source0-md5: 2aba19167fa145785a76e1525fad5627
2741dce2 16Patch0: %{name}-alpha.patch
3b7e662c 17Patch1: %{name}-syms.patch
f33b600a 18URL: http://www.videolan.org/developers/x264.html
bad36153 19BuildRequires: gettext-devel
bad36153
KK
20BuildRequires: pkgconfig
21%ifarch %{ix86} %{x8664}
f33b600a 22BuildRequires: yasm >= 0.6.0
aedfa898 23%endif
65b73f48
JB
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
7cf55bee
PS
26# encoder/macroblock.c breaks strict-aliasing rules
27%define specflags -fno-strict-aliasing
28
65b73f48
JB
29%description
30libx264 library for encoding H264 video format.
31
3d6bd83a 32%description -l pl.UTF-8
65b73f48
JB
33Biblioteka libx264 do kodowania w formacie obrazu H264.
34
35%package devel
36Summary: Header files for x264 library
23647862 37Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
65b73f48
JB
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40
41%description devel
42Header files for x264 library.
43
3d6bd83a
JR
44%description devel -l pl.UTF-8
45Pliki nagłówkowe biblioteki x264.
65b73f48
JB
46
47%package static
48Summary: Static x264 library
23647862 49Summary(pl.UTF-8): Statyczna biblioteka x264
65b73f48
JB
50Group: Development/Libraries
51Requires: %{name}-devel = %{version}-%{release}
52
53%description static
54Static x264 library.
55
3d6bd83a 56%description static -l pl.UTF-8
65b73f48
JB
57Statyczna biblioteka x264.
58
59%prep
aedfa898 60%setup -q -n x264-snapshot-%{snap}-%{snaph}
2741dce2 61%patch0 -p1
3b7e662c 62%patch1 -p1
bad36153 63sed -i 's:-O4::g' configure
65b73f48
JB
64
65%build
704304fd 66CC="%{__cc}" \
7cf55bee 67./configure \
219e4f34
PS
68 --prefix=%{_prefix} \
69 --exec-prefix=%{_prefix} \
70 --bindir=%{_bindir} \
71 --includedir=%{_includedir} \
72 --libdir=%{_libdir} \
7cf55bee 73 --extra-cflags="%{rpmcflags}" \
bad36153 74 --enable-pic \
7cf55bee
PS
75 --enable-shared
76
65b73f48
JB
77%{__make}
78
79%install
80rm -rf $RPM_BUILD_ROOT
81
82%{__make} install \
83 DESTDIR=$RPM_BUILD_ROOT
84
85%clean
86rm -rf $RPM_BUILD_ROOT
87
88%post -p /sbin/ldconfig
89%postun -p /sbin/ldconfig
90
91%files
92%defattr(644,root,root,755)
247a0e4f 93%doc AUTHORS
65b73f48 94%attr(755,root,root) %{_bindir}/x264
c873eb99 95%attr(755,root,root) %{_libdir}/libx264.so.[0-9][0-9]
65b73f48
JB
96
97%files devel
98%defattr(644,root,root,755)
99%attr(755,root,root) %{_libdir}/libx264.so
65b73f48 100%{_includedir}/x264.h
247a0e4f 101%{_pkgconfigdir}/x264.pc
65b73f48
JB
102
103%files static
104%defattr(644,root,root,755)
105%{_libdir}/libx264.a
This page took 0.140956 seconds and 4 git commands to generate.