]> git.pld-linux.org Git - packages/libx264.git/blame - libx264.spec
- refresh snap to 20071008
[packages/libx264.git] / libx264.spec
CommitLineData
46997914 1%define snap 20071008
1eadea1c 2%define snaph 2245
46997914 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
1eadea1c 8Release: 1.%{snap}_%{snaph}.%{_rel}
65b73f48
JB
9License: GPL v2
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
46997914 15# Source0-md5: b1747dd3c78e83c0d56832ac2e5b83df
2741dce2 16Patch0: %{name}-alpha.patch
65b73f48 17URL: http://developers.videolan.org/x264.html
68689102
PS
18%ifarch %{ix86}
19BuildRequires: nasm
20%endif
7cf55bee 21BuildRequires: sed >= 4.0
aedfa898 22%ifarch %{x8664}
7cf55bee 23BuildRequires: yasm
aedfa898 24%endif
65b73f48
JB
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
7cf55bee
PS
27# encoder/macroblock.c breaks strict-aliasing rules
28%define specflags -fno-strict-aliasing
29
65b73f48
JB
30%description
31libx264 library for encoding H264 video format.
32
3d6bd83a 33%description -l pl.UTF-8
65b73f48
JB
34Biblioteka libx264 do kodowania w formacie obrazu H264.
35
36%package devel
37Summary: Header files for x264 library
23647862 38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
65b73f48
JB
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41
42%description devel
43Header files for x264 library.
44
3d6bd83a
JR
45%description devel -l pl.UTF-8
46Pliki nagłówkowe biblioteki x264.
65b73f48
JB
47
48%package static
49Summary: Static x264 library
23647862 50Summary(pl.UTF-8): Statyczna biblioteka x264
65b73f48
JB
51Group: Development/Libraries
52Requires: %{name}-devel = %{version}-%{release}
53
54%description static
55Static x264 library.
56
3d6bd83a 57%description static -l pl.UTF-8
65b73f48
JB
58Statyczna biblioteka x264.
59
60%prep
aedfa898 61%setup -q -n x264-snapshot-%{snap}-%{snaph}
7cf55bee 62sed -i 's:-O4::g' configure
2741dce2 63%patch0 -p1
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
PS
73 --extra-cflags="%{rpmcflags}" \
74 --enable-shared
75
65b73f48
JB
76%{__make}
77
78%install
79rm -rf $RPM_BUILD_ROOT
80
81%{__make} install \
82 DESTDIR=$RPM_BUILD_ROOT
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(644,root,root,755)
247a0e4f 92%doc AUTHORS
65b73f48 93%attr(755,root,root) %{_bindir}/x264
247a0e4f 94%attr(755,root,root) %{_libdir}/libx264.so.*
65b73f48
JB
95
96%files devel
97%defattr(644,root,root,755)
98%attr(755,root,root) %{_libdir}/libx264.so
65b73f48 99%{_includedir}/x264.h
247a0e4f 100%{_pkgconfigdir}/x264.pc
65b73f48
JB
101
102%files static
103%defattr(644,root,root,755)
104%{_libdir}/libx264.a
This page took 0.200874 seconds and 4 git commands to generate.