head	1.11;
access;
symbols;
locks; strict;
comment	@-- @;


1.11
date	2009.11.29.18.46.41;	author rse;	state Exp;
branches;
next	1.10;
commitid	hZeb2JsqRO41Grdu;

1.10
date	2009.09.30.06.36.27;	author rse;	state Exp;
branches;
next	1.9;
commitid	s1jHWKGKcxi4zF5u;

1.9
date	2009.09.30.06.24.09;	author rse;	state Exp;
branches;
next	1.8;
commitid	1KBJ9Ib9RPfRuF5u;

1.8
date	2009.05.03.09.40.54;	author rse;	state Exp;
branches;
next	1.7;
commitid	Z7ok62jNPLWhppMt;

1.7
date	2009.05.01.09.20.11;	author rse;	state Exp;
branches;
next	1.6;
commitid	9iauJqP0Ov1am9Mt;

1.6
date	2009.04.18.13.18.33;	author rse;	state Exp;
branches;
next	1.5;
commitid	4pHXU27WTIGCZuKt;

1.5
date	2009.03.08.11.20.34;	author rse;	state Exp;
branches;
next	1.4;
commitid	1Djj64q3eQc5LdFt;

1.4
date	2009.03.08.11.18.29;	author rse;	state Exp;
branches;
next	1.3;
commitid	wqk7295u9ozmKdFt;

1.3
date	2009.03.06.07.25.22;	author rse;	state Exp;
branches;
next	1.2;
commitid	eYYLX8bY8DHnwWEt;

1.2
date	2009.03.05.09.38.54;	author rse;	state Exp;
branches;
next	1.1;
commitid	ny20uVTKG8ObiPEt;

1.1
date	2009.02.28.17.29.07;	author rse;	state Exp;
branches;
next	;
commitid	RYSuywl7qDIs3eEt;


desc
@@


1.11
log
@modifying package: x264-2245 20090930 -> 20091129
@
text
@##
##  x264.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package version
%define       V_build 2245
%define       V_date  20091128

#   package information
Name:         x264
Summary:      H.264 Codec Library
URL:          http://x264.nl/
Vendor:       Laurent Aimar, Loren Merritt et al.
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Video
License:      GPL
Version:      %{V_build}
Release:      20091129

#   list of sources
Source0:      ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{V_date}-%{V_build}.tar.bz2
Source1:      x264.1
Patch0:       x264.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, yasm, make
PreReq:       OpenPKG, openpkg >= 20060823
AutoReq:      no
AutoReqProv:  no

%description
    x264 is a free C library for encoding H.264 (MPEG-4 AVC) video
    streams.

%track
    prog x264 = {
        version   = %{V_build}
        url       = ftp://ftp.videolan.org/pub/videolan/x264/snapshots/
        regex     = x264-snapshot-(2009|2010)\d+-(\d+)\.tar\.bz2
    }

%prep
    %setup -q -n x264-snapshot-%{V_date}-%{V_build}
    %patch -p0

%build
    %{l_shtool} subst \
        -e 's;/bin/bash;%{l_bash};g' \
        -e 's;git;false;g' \
        version.sh
    CC="%{l_cc}" \
    CFLAGS="%{l_cflags -O}" \
    %{l_bash} ./configure \
        --prefix=%{l_prefix} \
        --disable-pthread
    %{l_make} %{l_mflags -O}

%install
    rm -rf $RPM_BUILD_ROOT
    %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
    %{l_shtool} mkdir -f -p -m 744 $RPM_BUILD_ROOT%{l_prefix}/man/man1
    %{l_shtool} install -c -m 644 %{SOURCE x264.1} $RPM_BUILD_ROOT%{l_prefix}/man/man1/
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

@


1.10
log
@fix URL
@
text
@d26 1
a26 1
%define       V_date  20090929
d39 1
a39 1
Release:      20090930
@


1.9
log
@modifying package: x264-2245 20090503 -> 20090930
@
text
@d31 1
a31 1
URL:          http://www.videolan.org/developers/x264.html
@


1.8
log
@modifying package: x264-2245 20090501 -> 20090503
@
text
@d26 1
a26 1
%define       V_date  20090502
d39 1
a39 1
Release:      20090503
@


1.7
log
@get rid of git(1) complains, fix FreeBSD build, upgrade to latest version
@
text
@d26 1
a26 1
%define       V_date  20090430
d39 1
a39 1
Release:      20090501
d62 1
a62 1
        regex     = x264-snapshot-\d+-(\d+)\.tar\.bz2
@


1.6
log
@bump years in copyright messages
@
text
@d26 1
a26 1
%define       V_date  20090305
d39 1
a39 1
Release:      20090308
d72 1
@


1.5
log
@add manual page from Debian
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.4
log
@improve packaging
@
text
@d43 1
d84 2
@


1.3
log
@modifying package: x264-2245 20090305 -> 20090306
@
text
@d39 1
a39 1
Release:      20090306
d43 1
d54 2
a55 1
    x264 is a free library for encoding H.264/AVC video streams.
d66 1
@


1.2
log
@modifying package: x264-2245 20090228 -> 20090305
@
text
@d26 1
a26 1
%define       V_date  20090304
d39 1
a39 1
Release:      20090305
d57 1
a57 1
        version   = %{V_date}-%{V_build}
d59 1
a59 1
        regex     = x264-snapshot-(\d+-\d+)\.tar\.bz2
@


1.1
log
@new package: x264 2245 (H.264 Codec Library)
@
text
@d26 1
a26 1
%define       V_date  20090227
d39 1
a39 1
Release:      20090228
@

