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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   04-May-2009 13:22:44
  Branch: HEAD                             Handle: 2009050412224400

  Modified files:
    openpkg-src/python-www  python-www.spec

  Log:
    add html5lib

  Summary:
    Revision    Changes     Path
    1.14        +17 -2      openpkg-src/python-www/python-www.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/python-www/python-www.spec
  ============================================================================
  $ cvs diff -u -r1.13 -r1.14 python-www.spec
  --- openpkg-src/python-www/python-www.spec    18 Apr 2009 13:14:36 -0000      
1.13
  +++ openpkg-src/python-www/python-www.spec    4 May 2009 11:22:44 -0000       
1.14
  @@ -26,6 +26,7 @@
   %define       V_webpy         0.31
   %define       V_cheetah       2.0.1
   %define       V_genshi        0.5.1
  +%define       V_html5lib      0.11.1
   
   #   package information
   Name:         python-www
  @@ -38,17 +39,18 @@
   Group:        Language
   License:      GPL
   Version:      %{V_python}
  -Release:      20081211
  +Release:      20090504
   
   #   list of sources
   Source0:      http://webpy.org/static/web.py-%{V_webpy}.tar.gz
   Source1:      
http://switch.dl.sourceforge.net/cheetahtemplate/Cheetah-%{V_cheetah}.tar.gz
   Source2:      http://ftp.edgewall.com/pub/genshi/Genshi-%{V_genshi}.tar.bz2
  +Source3:      http://html5lib.googlecode.com/files/html5lib-%{V_html5lib}.zip
   
   #   build information
   Prefix:       %{l_prefix}
   BuildRoot:    %{l_buildroot}
  -BuildPreReq:  OpenPKG, openpkg >= 20040130, python >= %{V_python}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, python >= %{V_python}, infozip
   PreReq:       OpenPKG, openpkg >= 20040130, python >= %{V_python}
   AutoReq:      no
   AutoReqProv:  no
  @@ -72,11 +74,17 @@
           url       = http://genshi.edgewall.org/wiki/Download
           regex     = Genshi-(__VER__)\.tar\.bz2
       }
  +    prog python-www:html5lib = {
  +        version   = %{V_html5lib}
  +        url       = http://code.google.com/p/html5lib/
  +        regex     = html5lib-(__VER__)\.zip
  +    }
   
   %prep
       %setup -q -c
       %setup -q -T -D -a 1
       %setup -q -T -D -a 2
  +    unzip -q -o -x %{SOURCE3}
   
   %build
   
  @@ -103,6 +111,13 @@
             --root=$RPM_BUILD_ROOT \
             --prefix=%{l_prefix}
       ) || exit $?
  +    ( cd html5lib-%{V_html5lib}
  +      PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
  +      %{l_prefix}/bin/python \
  +          setup.py install \
  +          --root=$RPM_BUILD_ROOT \
  +          --prefix=%{l_prefix}
  +    ) || exit $?
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   
   %files -f files
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to