Sophie

Sophie

distrib > Mageia > 2 > i586 > media > tainted-release-src > by-pkgid > a1ae371c59bd86c1a9de3c0d46dcc954 > files > 3

x264-0.120-0.20120306.stable.1.mga2.tainted.src.rpm

%define name 	x264
%define version 0.%major
%define date 20120306
%define time 2245
%define release %mkrel -c %date.stable 1

%define major   120
%define libname %mklibname %{name}_ %major
%define develname %mklibname -d %name
%define fname %{name}-snapshot-%date-%{time}-stable

Summary: 	H264/AVC encoder
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
Source0: 	ftp://ftp.videolan.org/pub/videolan/x264/snapshots/%fname.tar.bz2
Patch1:		x264-use-upstream-opt-level.diff

License: 	GPLv2+
Group: 		Video
Url: 		http://x264.nl/

BuildRequires:	gpac-devel
BuildRequires:	yasm
BuildRequires:	git-core
BuildRequires:	libx11-devel
BuildRequires:	ffmpeg-devel

%description
x264 is a free library for encoding H264/AVC video streams. The code
is written by Laurent Aimar, Eric Petit(OS X), Min Chen (vfw/nasm),
Justin Clay(vfw), Måns Rullgård and Loren Merritt from scratch. It is
released under the terms of the GPL license.

This package is in tainted repository as the video encoder may be covered
by software patents.

%package -n %{libname}
Summary: Shared library of x264
Group: System/Libraries

%description -n %{libname}
x264 dynamic libraries

%package -n %develname
Summary: H264/AVC encoding library headers
Group: Development/C
Requires: %{libname} = %{version}
Provides: lib%{name}-devel = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
Obsoletes: %{name}-devel
Obsoletes: %mklibname -d %{name}_ 54

%description -n %develname
x264 is a free library for encoding H264/AVC video streams. The code
is written by Laurent Aimar, Eric Petit(OS X), Min Chen (vfw/nasm),
Justin Clay(vfw), Måns Rullgård and Loren Merritt from scratch. It is
released under the terms of the GPL license.

%prep
%setup -q -n %fname
perl -pi -e 's|usr/local|usr||g' configure
%patch1 -p0 

%build
%configure2_5x --enable-shared \
	       --enable-pic \
	       --enable-visualize \
	       --enable-static
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall


%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc AUTHORS doc/*
%_bindir/%name

%files -n %{libname}
%_libdir/libx264.so.%{major}*

%files -n %develname
%_libdir/libx264.a
%_libdir/libx264.so
%_includedir/*.h
%_libdir/pkgconfig/*.pc



%changelog

* Wed Mar 07 2012 anssi <anssi> 0.120-0.20120306.stable.1.mga2
+ Revision: 221318
- new snapshot
- switch to stable branch

* Wed Jan 11 2012 luigiwalser <luigiwalser> 0.120-0.20111212.2.mga2.tainted
+ Revision: 194833
- use configure2_5x macro
- don't override upstream optimization level -O3

* Tue Dec 13 2011 fwang <fwang> 0.120-0.20111212.1.mga2.tainted
+ Revision: 181275
- new major
- use master
- new snapshot 20111212

* Fri Jun 24 2011 fwang <fwang> 0.115-0.20110623.1.mga2.tainted
+ Revision: 112932
- build static libs
- new snapshot required by ffmpeg 0.8

* Sat May 07 2011 mikala <mikala> 0.110-0.20101203.2.mga1
+ Revision: 95796
- Clean Spec
- Remove plf reference
- imported package x264


* Sat Dec  4 2010 Götz Waschk <goetz@zarb.org> 0.110-0.20101203.1plf2011.0
- update build deps
- remove old configure options
- new major
- new version

* Wed May  5 2010 Götz Waschk <goetz@zarb.org> 0.94-0.20100504.1plf2010.1
- new version numbering schema
- new major
- new snapshot

* Sat Jan 23 2010 Götz Waschk <goetz@zarb.org> 0.83.2245-1plf2010.1
- new major
- new snapshot

* Wed Dec  9 2009 Götz Waschk <goetz@zarb.org> 0.79.2245-1plf2010.1
- new major
- new version

* Sat Nov  7 2009 Götz Waschk <goetz@zarb.org> 0.78.2245-1plf2010.1
- new major
- new version

* Sun Oct 12 2008 Götz Waschk <goetz@zarb.org> 0.65.2245-1plf2009.1
- new major
- new version

* Thu Apr 24 2008 Götz Waschk <goetz@zarb.org> 0.59.2245-1plf2009.0
- update license tag
- fix buildrequires
- new major
- new version

* Wed Jan  2 2008 Götz Waschk <goetz@zarb.org> 0.57.714-1plf2008.1
- new major
- new version

* Fri Oct 12 2007 Götz Waschk <goetz@zarb.org> 0.56.680-1plf2008.1
- new devel name
- new major
- new snapshot

* Thu Jan  4 2007 Götz Waschk <goetz@zarb.org> 0.54.616-1plf2007.1
- new snapshot

* Wed Oct 18 2006 Götz Waschk <goetz@zarb.org> 0.54.594-1plf2007.1
- new major
- new version

* Sun Sep 03 2006 Anssi Hannula <anssi@zarb.org> 0.50.558-2plf2007.0
- fix buildrequires

* Tue Aug 29 2006 Götz Waschk <goetz@zarb.org> 0.50.558-1plf2007.0
- new major
- new  snapshot

* Fri Jun 30 2006 Austin Acton <austin@zarb.org> 0.47.533-1plf
- new checkout
- get rid of usr/local
- enable visualize
- enable mp4 through gpac

* Mon Apr 24 2006 Austin Acton <austin@zarb.org> 0.46.511-1plf
- new checkout
- PLF reason
- URL

* Thu Mar 23 2006 Götz Waschk <goetz@zarb.org> 0.45.478-2plf
- fix symlink

* Wed Mar 22 2006 Austin Acton <austin@zarb.org> 0.45.478-1plf
- new checkout
- build shared library

* Mon Jan 23 2006 Austin Acton <austin@zarb.org> 0.44.409-1plf
- use version number from config.h
- new checkout

* Tue Nov 22 2005 Austin Acton <austin@zarb.org> 0-0.375.1plf
- svn 375
- add pkgconfig file
- PIC patch seems to have been applied upstream

* Thu Nov 10 2005 Anssi Hannula <anssi@zarb.org> 0-0.364.2plf
- fix x86_64 asm to be PIC (patch2)
- dropped patch1, upstream

* Tue Nov 1 2005 Austin Acton <austin@zarb.org> 0-0.364.1plf
- svn 364
- enable threads

* Thu Oct  6 2005 Anssi Hannula <anssi@zarb.org> 0-0.315.1plf
- new snapshot
- x86_64 fixes (patch1)

* Sat Sep 24 2005 Stefan van der Eijk <stefan@zarb.org> 0-0.293.2plf
- BuildRequires

* Mon Sep 19 2005 Götz Waschk <goetz@zarb.org> 0-0.293.1plf
- new snapshot

* Tue Sep  6 2005 Götz Waschk <goetz@zarb.org> 0-0.291.1plf
- initial package