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-Sep-2008 19:51:04 Branch: HEAD Handle: 2008091018510400 Added files: openpkg-src/wcd wcd.patch wcd.spec Log: new package: wcd 4.0.0 (Wherever Change Directory) Summary: Revision Changes Path 1.1 +14 -0 openpkg-src/wcd/wcd.patch 1.1 +93 -0 openpkg-src/wcd/wcd.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/wcd/wcd.patch ============================================================================ $ cvs diff -u -r0 -r1.1 wcd.patch --- /dev/null 2008-09-10 19:46:16 +0200 +++ wcd.patch 2008-09-10 19:51:04 +0200 @@ -0,0 +1,14 @@ +Index: src/Makefile.ncurses.gcc +--- src/Makefile.ncurses.gcc.orig 2008-08-28 07:01:04 +0200 ++++ src/Makefile.ncurses.gcc 2008-09-10 19:46:37 +0200 +@@ -12,8 +12,8 @@ + # dynamically) comment the LFLAGS line and add the 'libncurses.a' file + # (often found as /usr/lib/libncurses.a) to the OBJS1 list. + +-CFLAGS = -O -Wall -Ic3po $(NCFLAG) +-LFLAGS = -lncurses $(NLFLAG) ++CFLAGS = -Ic3po $(NCFLAG) ++LFLAGS = $(NLFLAG) -lncurses + DEFS = -DUNIX -DWCD_USECURSES + OBJS1 = \ + nameset.o \ @@ . patch -p0 <<'@@ .' Index: openpkg-src/wcd/wcd.spec ============================================================================ $ cvs diff -u -r0 -r1.1 wcd.spec --- /dev/null 2008-09-10 19:46:16 +0200 +++ wcd.spec 2008-09-10 19:51:04 +0200 @@ -0,0 +1,93 @@ +## +## wcd.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 information +Name: wcd +Summary: Wherever Change Directory +URL: http://www.xs4all.nl/~waterlan/ +Vendor: Erwin Waterlander +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Terminal +License: GPL +Version: 4.0.0 +Release: 20080910 + +# list of sources +Source0: http://www.xs4all.nl/~waterlan/wcd-%{version}-src.tar.gz +Patch0: wcd.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, make +PreReq: OpenPKG, openpkg >= 20060823 +BuildPreReq: ncurses +PreReq: ncurses +AutoReq: no +AutoReqProv: no + +%description + WCD is another Norton Change Directory (NCD) clone for Unix -- with + more features. WCD is a program to change directory fast. It saves + time typing at the keyboard. One needs to type only a part of a + directory name and WCD will jump to it. By default WCD searches for + a directory with a name that begins with what has been typed, but + the use of wildcards is also fully supported. + +%track + prog wcd = { + version = %{version} + url = http://www.xs4all.nl/~waterlan/ + regex = wcd-(__VER__)-src\.tar\.gz + } + +%prep + %setup -q + %patch -p0 + +%build + cd src + %{l_make} %{l_mflags -O} \ + -f Makefile.ncurses.gcc \ + CC="%{l_cc}" \ + NCFLAG="%{l_cppflags ncurses .}" \ + NLFLAG="%{l_ldflags}" + +%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/cat1 + %{l_shtool} install -c -s -m 755 \ + src/wcd.exe $RPM_BUILD_ROOT%{l_prefix}/bin/wcd + %{l_shtool} install -c -m 644 \ + doc/wcd.txt $RPM_BUILD_ROOT%{l_prefix}/man/cat1/wcd.1 + %{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