4 Summary: H264 encoder library
5 Summary(pl.UTF-8): Biblioteka kodująca H264
8 Release: 1.%{snap}_%{snaph}.%{rel}
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...
14 Source0: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
15 # Source0-md5: 0a188b8e13c62f6a97eba1c5d4ab3a3f
16 Patch0: %{name}-alpha.patch
17 Patch1: %{name}-syms.patch
18 URL: http://www.videolan.org/developers/x264.html
19 BuildRequires: gettext-devel
20 BuildRequires: gtk+2-devel
21 BuildRequires: pkgconfig
22 %ifarch %{ix86} %{x8664}
23 BuildRequires: yasm >= 0.6.0
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 # encoder/macroblock.c breaks strict-aliasing rules
28 %define specflags -fno-strict-aliasing
31 libx264 library for encoding H264 video format.
33 %description -l pl.UTF-8
34 Biblioteka libx264 do kodowania w formacie obrazu H264.
37 Summary: Header files for x264 library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Header files for x264 library.
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki x264.
49 Summary: Static x264 library
50 Summary(pl.UTF-8): Statyczna biblioteka x264
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
57 %description static -l pl.UTF-8
58 Statyczna biblioteka x264.
61 Summary: x264 GTK+ configuration interface library
62 Summary(pl.UTF-8): Biblioteka interfejsu konfiguracyjnego GTK+ dla x264
64 Requires: %{name} = %{version}-%{release}
65 Conflicts: libx264-gui < 0.1.2-1.20080816_2245.2
68 x264 GTK+ configuration interface library.
70 %description gtk -l pl.UTF-8
71 Biblioteka interfejsu konfiguracyjnego GTK+ dla x264.
74 Summary: Header files for x264gtk library
75 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264gtk
76 Group: X11/Development/Libraries
77 Requires: %{name}-devel = %{version}-%{release}
78 Requires: %{name}-gtk = %{version}-%{release}
80 %description gtk-devel
81 Header files for x264gtk library.
83 %description gtk-devel -l pl.UTF-8
84 Pliki nagłówkowe biblioteki x264gtk.
87 Summary: Static x264gtk library
88 Summary(pl.UTF-8): Statyczna biblioteka x264gtk
89 Group: X11/Development/Libraries
90 Requires: %{name}-gtk-devel = %{version}-%{release}
92 %description gtk-static
93 Static x264gtk library.
95 %description gtk-static -l pl.UTF-8
96 Statyczna biblioteka x264gtk.
99 Summary: Encoding GUI for x264
100 Summary(pl.UTF-8): Graficzny interfejs użytkownika do kodera x264
101 Group: X11/Applications/Multimedia
102 Requires: %{name}-gtk = %{version}-%{release}
105 Encoding GUI for x264.
107 %description gui -l pl.UTF-8
108 Graficzny interfejs użytkownika do kodera x264.
111 %setup -q -n x264-snapshot-%{snap}-%{snaph}
114 sed -i 's:-O4::g' configure
119 --prefix=%{_prefix} \
120 --exec-prefix=%{_prefix} \
121 --bindir=%{_bindir} \
122 --includedir=%{_includedir} \
123 --libdir=%{_libdir} \
124 --extra-cflags="%{rpmcflags}" \
132 rm -rf $RPM_BUILD_ROOT
135 DESTDIR=$RPM_BUILD_ROOT
140 rm -rf $RPM_BUILD_ROOT
142 %post -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
146 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_bindir}/x264
149 %attr(755,root,root) %{_libdir}/libx264.so.60
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libx264.so
154 %{_includedir}/x264.h
155 %{_pkgconfigdir}/x264.pc
158 %defattr(644,root,root,755)
161 %files gtk -f x264_gtk.lang
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_libdir}/libx264gtk.so.60
167 %defattr(644,root,root,755)
168 %attr(755,root,root) %{_libdir}/libx264gtk.so
169 %{_includedir}/x264_gtk*.h
170 %{_pkgconfigdir}/x264gtk.pc
173 %defattr(644,root,root,755)
174 %{_libdir}/libx264gtk.a
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_bindir}/x264_gtk_encode