瀏覽代碼

new package: leo 1.24 (Command-line Interface to LEO Online-Dictionary)

Ralf S. Engelschall 20 年之前
父節點
當前提交
f0d72bb433
共有 2 個文件被更改,包括 99 次插入0 次删除
  1. 15 0
      leo/leo.patch
  2. 84 0
      leo/leo.spec

+ 15 - 0
leo/leo.patch

@@ -0,0 +1,15 @@
+Index: leo
+--- leo.orig	2005-04-18 12:46:37 +0200
++++ leo	2005-06-05 13:25:52 +0200
+@@ -518,11 +518,6 @@
+   }
+ }
+ 
+-print "$copy_c" if $highlight;
+-print "\n     Fetched by leo $version via http://dict.leo.org/";
+-print "\n     Copyright  ©  LEO  Dictionary Team 1995-2005";
+-print "\n     [leo] GPL Copyleft © Thomas Linden 2000-2005\n\n";
+-print "$default_c" if $highlight;
+ 
+ 
+ 

+ 84 - 0
leo/leo.spec

@@ -0,0 +1,84 @@
+##
+##  leo.spec -- OpenPKG RPM Package Specification
+##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
+##  Copyright (c) 2000-2005 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:         leo
+Summary:      Command-line Interface to LEO Online-Dictionary
+URL:          ftp://ftp.daemon.de/scip/Scripts/
+Vendor:       Thomas Linden
+Packager:     OpenPKG
+Distribution: OpenPKG
+Class:        EVAL
+Group:        Web
+License:      GPL
+Version:      1.24
+Release:      20050605
+
+#   list of sources
+Source0:      ftp://ftp.daemon.de/scip/Scripts/leo-%{version}.tar.gz
+Patch0:       leo.patch
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20040130, perl
+PreReq:       OpenPKG, openpkg >= 20040130, perl, perl-db
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    This is a convenient command-line interface to the LEO
+    English/German/French online dictionary on dict.leo.org.
+
+%track
+    prog leo = {
+        version   = %{version}
+        url       = ftp://ftp.daemon.de/scip/Scripts/
+        regex     = leo-(__VER__)\.tar\.gz
+    }
+
+%prep
+    %setup -q
+    %patch -p0
+
+%build
+    %{l_prefix}/bin/pod2man leo.pod >leo.1
+
+%install
+    rm -rf $RPM_BUILD_ROOT
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/bin \
+        $RPM_BUILD_ROOT%{l_prefix}/man/man1
+    %{l_shtool} install -c -m 755 \
+        -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
+        leo $RPM_BUILD_ROOT%{l_prefix}/bin/
+    %{l_shtool} install -c -m 644 \
+        leo.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
+