123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- %global snapshot_date 20120525
- %global snapshot_time 2245
- %global branch stable
- Summary: Library for encoding and decoding H264/AVC video streams
- Name: x264
- Version: 0.124
- Release: 1.%{snapshot_date}%{?_dist_release}
- License: GPLv2+
- Group: System Environment/Libraries
- URL: http://www.videolan.org/developers/x264.html
- Source: http://www.videolan.org/pub/videolan/x264/snapshots/%{name}-snapshot-%{snapshot_date}-%{snapshot_time}%{?branch:-%{branch}}.tar.bz2
- BuildRequires: yasm >= 1.0.0
- # gpac-devel package provided by self-build-gpac
- # in self-build-%{name}.spec as PreReq.
- #BuildRequires: gpac-devel
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- Provides: libx264 = %{version}
- Obsoletes: libx264 < %{version}
- Obsoletes: x264 < %{version}, x264-devel < %{version}
- %description
- x264 is a free library for encoding H264/AVC video streams, written from
- scratch.
- This package also contains the frontend.
- %package devel
- Summary: Development files for the x264 library
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: pkgconfig
- %description devel
- x264 is a free library for encoding H264/AVC video streams, written from
- scratch.
- This package contains the development files.
- %prep
- %setup -q -n %{name}-snapshot-%{snapshot_date}-%{snapshot_time}%{?branch:-%{branch}}
- %build
- ./configure \
- --host=%{_target_platform} \
- --prefix=%{_prefix} \
- --exec-prefix=%{_exec_prefix} \
- --bindir=%{_bindir} \
- --includedir=%{_includedir} \
- --libdir=%{_libdir} \
- --extra-cflags="$RPM_OPT_FLAGS" \
- \
- %{?_with_visualize:--enable-visualize} \
- %{!?_with_libavformat:--disable-lavf} \
- %{!?_with_ffmpegsource:--disable-ffms} \
- --enable-debug \
- --enable-shared \
- --system-libx264 \
- --enable-pic \
- ;
- %{__make} %{?_smp_mflags}
- %install
- %{__rm} -rf %{buildroot}
- %{__make} DESTDIR=%{buildroot} install
- %clean
- %{__rm} -rf %{buildroot}
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files
- %defattr(644, root, root, 0755)
- %doc AUTHORS COPYING
- %attr(755,root,root) %{_bindir}/x264
- %{_libdir}/libx264.so.*
- %files devel
- %defattr(644, root, root, 0755)
- %doc doc/*
- %{_includedir}/x264.h
- %{_includedir}/x264_config.h
- %{_libdir}/libx264.so
- %{_libdir}/pkgconfig/%{name}.pc
- %changelog
- * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.124-1.20120525
- - updated source snapshot 20120525 stable branch (ABI 0.124)
- - changed release number; upstream have release numbers at least on stable branch
- * Sat Dec 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-18.20111216
- - updated source snapshot 20111216 stable branch (ABI 0.119)
- * Sun Oct 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-17.20111013
- - updated source snapshot 20111013 stable branch (ABI 0.116)
- * Thu Sep 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-16.20110322
- - change release to sync with self-build-x264
- * Wed Mar 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-15.20110322
- - updated source snapshot 20110322 (ABI 0.114)
- * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-14.20100625
- - updated source snapshot 20100625
- * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-13.20100216
- - change release to sync with self-build-x264
- * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-12.20100216
- - updated source snapshot 20100216
- - applied to link x264 binary to the shared library from RPM Fusion development
- * Mon Sep 07 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.0-11.20090522
- - changed Source0: to http://www.videolan.org/pub/videolan/x264/snapshots
- * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-10.20090522
- - change release to sync with self-build-x264
- * Sat May 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-9.20090522
- - 20090522 snapshot
- - updated x264-vine.patch
- * Fri Mar 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-8.20090110
- - corrected release number
- * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-6.20090110
- - added configure options: --enable-mp4-output
- - added BuildRequires: gpac-devel
- * Sun Jan 25 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-5.20090110
- - change release to sync with self-build-x264
- * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-4.20090110
- - 20090110 snapshot
- * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-3.20081001
- - fixed License: GPLv2+
- - added BuildRequires: gettext
- - source updated
- - fixed x264-rpm.patch (merged x264-rpm.patch from RPM Fusion)
- and added x264-vine.patch
- #- changed version from 0.0.0-1.20080225 to 0.0.0-20081111.1
- * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-2.20080225vl1
- - spec in utf8
- * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.0.0-1.20080225
- - apply new versioning policy
- * Wed Feb 27 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.0.0-0.20080225vl1
- - initial build for Vine Linux 4.2
- * Sun Jan 20 2008 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.57-0.r721vlmp1
- - update to SVN r721
- * Sat Aug 4 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 0.56-0.r667vlmp1
- - initial build for Vine Linux 4.1
- ### end of file
|