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:   10-Jun-2007 10:37:13
  Branch: HEAD                             Handle: 2007061009371300

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

  Log:
    new package: ots 0.5.0 (Open Text Summarizer (OTS))

  Summary:
    Revision    Changes     Path
    1.1         +45 -0      openpkg-src/ots/ots.patch
    1.1         +96 -0      openpkg-src/ots/ots.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/ots/ots.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ots.patch
  --- /dev/null 2007-06-10 10:33:00 +0200
  +++ ots.patch 2007-06-10 10:37:13 +0200
  @@ -0,0 +1,45 @@
  +Index: Makefile.in
  +--- Makefile.in.orig 2007-04-08 20:17:23 +0200
  ++++ Makefile.in      2007-06-10 10:33:29 +0200
  +@@ -100,7 +100,7 @@
  + VERSION = @VERSION@
  + VERSION_INFO = @VERSION_INFO@
  + 
  +-SUBDIRS = src dic doc
  ++SUBDIRS = src dic
  + DIST_SUBDIRS = src articles dic doc
  + 
  + pkgconfigdir = $(libdir)/pkgconfig
  +Index: configure
  +--- configure.orig   2007-04-08 20:16:30 +0200
  ++++ configure        2007-06-10 10:32:11 +0200
  +@@ -3282,7 +3282,7 @@
  + ac_compiler_gnu=$ac_cv_c_compiler_gnu
  + 
  + if test "x$GCC" = "xyes"; then
  +-    ANSI_CFLAGS="-Wall"
  ++    ANSI_CFLAGS=""
  + else
  +     ANSI_CFLAGS=""
  + fi
  +Index: libots-1.pc.in
  +--- libots-1.pc.in.orig      2003-04-30 07:25:28 +0200
  ++++ libots-1.pc.in   2007-06-10 10:33:07 +0200
  +@@ -8,4 +8,4 @@
  + Version: @VERSION@
  + Requires: glib-2.0
  + Libs: -L${libdir} -lots-1
  +-Cflags: -I${includedir}/libots-1
  ++Cflags: -I${includedir}
  +Index: src/Makefile.in
  +--- src/Makefile.in.orig     2007-04-08 20:17:23 +0200
  ++++ src/Makefile.in  2007-06-10 10:33:51 +0200
  +@@ -113,7 +113,7 @@
  + libots_1_la_SOURCES =       libots.h                        article.c       
                dictionary.c                    grader.c                        
grader-tf.c                     grader-tc.c                     grader-tc.h     
                html.c                          parser.c                        
text.c                          stemmer.c                       highlighter.c   
                wordlist.c                      relations.c
  + 
  + 
  +-libots_1_includedir = $(includedir)/libots-1/ots
  ++libots_1_includedir = $(includedir)/ots
  + libots_1_include_HEADERS =          libots.h
  + 
  + 
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/ots/ots.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ots.spec
  --- /dev/null 2007-06-10 10:33:00 +0200
  +++ ots.spec  2007-06-10 10:37:13 +0200
  @@ -0,0 +1,96 @@
  +##
  +##  ots.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  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 information
  +Name:         ots
  +Summary:      Open Text Summarizer (OTS)
  +URL:          http://libots.sourceforge.net/
  +Vendor:       Nadav Rotem
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Text
  +License:      GPL
  +Version:      0.5.0
  +Release:      20070610
  +
  +#   list of sources
  +Source0:      http://switch.dl.sourceforge.net/libots/ots-%{version}.tar.gz
  +Patch0:       ots.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, make
  +PreReq:       OpenPKG, openpkg >= 20060823
  +BuildPreReq:  glib2, libxml, popt
  +PreReq:       glib2, libxml, popt
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    The Open Text Summarizer (OTS) is a tool and C library for
  +    summarizing texts. The program reads a text and decides which
  +    sentences are important and which are not. The program can either
  +    print the summarized text as text or HTML. If HTML, the important
  +    sentences are highlighted. The program is multi-lingual and works
  +    with UTF-8 encoding. The Open Text Summarizer summarizes texts in
  +    English, German, Spanish, Russian, Hebrew, Esperanto and other
  +    languages. To support more languages or tweak existing languages can
  +    be done by simply editing an XML file of rules.
  +
  +%track
  +    prog ots = {
  +        version   = %{version}
  +        url       = http://prdownloads.sourceforge.net/libots/
  +        regex     = ots-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix} \
  +        --with-popt-prefix=%{l_prefix} \
  +        --disable-gtk-doc \
  +        --disable-shared
  +    %{l_make} %{l_mflags}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/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                     openpkg-cvs@openpkg.org

Reply via email to