OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [email protected]
  Module: openpkg-src                      Date:   14-Mar-2009 11:12:43
  Branch: HEAD                             Handle: 2009031410124300

  Added files:
    openpkg-src/dirac       dirac.patch dirac.spec

  Log:
    new package: dirac 1.0.2 (DIRAC Video Codec)

  Summary:
    Revision    Changes     Path
    1.1         +55 -0      openpkg-src/dirac/dirac.patch
    1.1         +122 -0     openpkg-src/dirac/dirac.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/dirac/dirac.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 dirac.patch
  --- /dev/null 2009-03-14 11:12:40 +0100
  +++ dirac.patch       2009-03-14 11:12:43 +0100
  @@ -0,0 +1,55 @@
  +Index: dirac-1.0.2/Makefile.in
  +--- dirac-1.0.2/Makefile.in.orig     2009-02-11 02:43:39 +0100
  ++++ dirac-1.0.2/Makefile.in  2009-03-14 10:59:06 +0100
  +@@ -74,8 +74,7 @@
  + ETAGS = etags
  + CTAGS = ctags
  + DIST_SUBDIRS = libdirac_byteio libdirac_common libdirac_motionest \
  +-    libdirac_encoder libdirac_decoder encoder decoder util \
  +-    unit_tests tests doc win32
  ++    libdirac_encoder libdirac_decoder
  + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  + distdir = $(PACKAGE)-$(VERSION)
  + top_distdir = $(distdir)
  +@@ -219,8 +218,7 @@
  + top_builddir = @top_builddir@
  + top_srcdir = @top_srcdir@
  + SUBDIRS = libdirac_byteio libdirac_common libdirac_motionest 
libdirac_encoder \
  +-          libdirac_decoder encoder decoder util $(CPPUNITTESTS_DIR) \
  +-          tests $(DOC_DIR) win32
  ++          libdirac_decoder
  + 
  + @have_doxygen_fa...@doc_dir = 
  + @have_doxygen_t...@doc_dir = doc
  +Index: schroedinger-1.0.5/schroedinger.pc.in
  +--- schroedinger-1.0.5/schroedinger.pc.in.orig       2008-07-01 19:26:22 
+0200
  ++++ schroedinger-1.0.5/schroedinger.pc.in    2009-03-14 11:02:03 +0100
  +@@ -1,7 +1,7 @@
  + pref...@prefix@
  + exec_pref...@exec_prefix@
  + libd...@libdir@
  +-included...@includedir@/schroeding...@schro_majorminor@
  ++included...@includedir@
  + toolsdir=${exec_prefix}/bin
  + 
  + 
  +@@ -10,6 +10,6 @@
  + Requires: @SCHRO_PKG_DEPS@
  + Version: @VERSION@
  + Libs: -L${libdir} -lschroeding...@schro_majorminor@ @PTHREAD_LIBS@ @LIBM@
  +-Cflags: -I${includedir}
  ++Cflags: -I${includedir}/schroedinger -I${includedir}
  + 
  + 
  +Index: schroedinger-1.0.5/schroedinger/Makefile.in
  +--- schroedinger-1.0.5/schroedinger/Makefile.in.orig 2008-07-01 20:03:42 
+0200
  ++++ schroedinger-1.0.5/schroedinger/Makefile.in      2009-03-14 11:02:20 
+0100
  +@@ -153,7 +153,7 @@
  + CTAGS = ctags
  + DIST_SUBDIRS = cuda opengl
  + DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  +-pkgincludedir = $(includedir)/schroeding...@schro_majorminor@/schroedinger
  ++pkgincludedir = $(includedir)/schroedinger
  + ACLOCAL = @ACLOCAL@
  + ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@
  + AMDEP_FALSE = @AMDEP_FALSE@
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/dirac/dirac.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 dirac.spec
  --- /dev/null 2009-03-14 11:12:43 +0100
  +++ dirac.spec        2009-03-14 11:12:43 +0100
  @@ -0,0 +1,122 @@
  +##
  +##  dirac.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 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_dirac         1.0.2
  +%define       V_schroedinger  1.0.5
  +
  +#   package information
  +Name:         dirac
  +Summary:      DIRAC Video Codec
  +URL:          http://diracvideo.org/
  +Vendor:       Thomas Davies, David Schleef
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Video
  +License:      MPL, MIT
  +Version:      %{V_dirac}
  +Release:      20090314
  +
  +#   list of sources
  +Source0:      
http://diracvideo.org/download/dirac-research/dirac-%{V_dirac}.tar.gz
  +Source1:      
http://diracvideo.org/download/schroedinger/schroedinger-%{V_schroedinger}.tar.gz
  +Patch0:       dirac.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes
  +PreReq:       OpenPKG, openpkg >= 20060823
  +BuildPreReq:  liboil
  +PreReq:       liboil
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Dirac is an advanced royalty-free video compression format designed
  +    for a wide range of uses, from delivering low-resolution web content
  +    to broadcasting HD and beyond, to near-lossless studio editing. The
  +    name "Dirac" is a reference to Paul A. M. Dirac, British physicist
  +    and winner of the 1933 Nobel Prize in Physics. The prize was shared
  +    with Erwin Schrödinger, for whom the Schroedinger implementation of
  +    Dirac was named. This OpenPKG package contains with the original
  +    libdirac (C++) and the newer libschroedinger (C) implementation.
  +
  +%track
  +    prog dirac:dirac = {
  +        version   = %{version}
  +        url       = http://diracvideo.org/download/dirac-research/
  +        regex     = dirac-(__VER__)\.tar\.gz
  +    }
  +    prog dirac:schroedinger = {
  +        version   = %{version}
  +        url       = http://diracvideo.org/download/schroedinger/
  +        regex     = schroedinger-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -c
  +    %setup -q -c -T -D -a 1
  +    %patch -p0
  +
  +%build
  +    ( cd dirac-%{V_dirac}
  +      CC="%{l_cc}" \
  +      CXX="%{l_cxx}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CXXFLAGS="%{l_cxxflags -O}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +    ( cd schroedinger-%{V_schroedinger}
  +      CC="%{l_cc}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      ./configure \
  +          --prefix=%{l_prefix} \
  +          --disable-orc \
  +          --disable-gtk-doc \
  +          --disable-gstreamer \
  +          --disable-shared
  +      %{l_make} %{l_mflags -O}
  +    ) || exit $?
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    ( cd dirac-%{V_dirac}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    ( cd schroedinger-%{V_schroedinger}
  +      %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    ) || exit $?
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gtk-doc >/dev/null 2>&1 || true
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to