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: 25-Sep-2009 13:13:07 Branch: HEAD Handle: 2009092512130700 Added files: openpkg-src/tmux tmux.patch tmux.spec Log: new package: tmux 1.0 (Terminal Multiplexer) Summary: Revision Changes Path 1.1 +26 -0 openpkg-src/tmux/tmux.patch 1.1 +91 -0 openpkg-src/tmux/tmux.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/tmux/tmux.patch ============================================================================ $ cvs diff -u -r0 -r1.1 tmux.patch --- /dev/null 2009-09-25 13:13:06 +0200 +++ tmux.patch 2009-09-25 13:13:07 +0200 @@ -0,0 +1,26 @@ +Index: GNUmakefile +--- GNUmakefile.orig 2009-09-20 20:12:05 +0200 ++++ GNUmakefile 2009-09-25 13:10:22 +0200 +@@ -8,7 +8,8 @@ + + CC?= gcc + CFLAGS+= -DBUILD="\"$(VERSION)\"" +-LDFLAGS+= -L/usr/local/lib ++CPPFLAGS+= -I$(PREFIX)/include ++LDFLAGS+= -L$(PREFIX)/lib + LIBS+= + + ifdef FDEBUG +Index: Makefile +--- Makefile.orig 2009-09-20 20:12:06 +0200 ++++ Makefile 2009-09-25 13:09:37 +0200 +@@ -9,7 +9,8 @@ + + CC?= cc + CFLAGS+= -DBUILD="\"$(VERSION)\"" +-LDFLAGS+= -L/usr/local/lib ++CPPFLAGS+= -I$(PREFIX)/include ++LDFLAGS+= -L$(PREFIX)/lib + LIBS+= + + .ifdef FDEBUG @@ . patch -p0 <<'@@ .' Index: openpkg-src/tmux/tmux.spec ============================================================================ $ cvs diff -u -r0 -r1.1 tmux.spec --- /dev/null 2009-09-25 13:13:06 +0200 +++ tmux.spec 2009-09-25 13:13:07 +0200 @@ -0,0 +1,91 @@ +## +## tmux.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2009 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: tmux +Summary: Terminal Multiplexer +URL: http://tmux.sourceforge.net/ +Vendor: Nicholas Marriott +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Terminal +License: BSD +Version: 1.0 +Release: 20090925 + +# list of sources +Source0: http://downloads.sourceforge.net/tmux/tmux-%{version}.tar.gz +Patch0: tmux.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc +PreReq: OpenPKG, openpkg >= 20060823 +AutoReq: no +AutoReqProv: no + +%description + TMUX is a "terminal multiplexer", it enables a number of terminals + (or windows) to be accessed and controlled from a single terminal. + TMUX is intended to be a simple, modern, BSD-licensed alternative to + programs such as GNU screen. + +%track + prog tmux = { + version = %{version} + url = http://tmux.sourceforge.net/ + regex = tmux-(__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} + %{l_make} %{l_mflags -O} \ + PREFIX="%{l_prefix}" + +%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 -s -m 755 \ + tmux $RPM_BUILD_ROOT%{l_prefix}/bin/ + %{l_shtool} install -c -m 644 \ + tmux.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 + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org