"Fossies" - the Fresh Open Source Software Archive

Member "portfwd-0.29/pkg/portfwd.spec" (30 Dec 2003, 960 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 %define name portfwd
    2 %define version 0.26
    3 %define release 1
    4 
    5 Summary: portfw TCP/UDP forwarding
    6 Name: %{name}
    7 Version: %{version}
    8 Release: %{release}
    9 Source0: %{name}-%{version}.tar.gz
   10 Copyright: GPL
   11 Group: System Environment/Daemons
   12 BuildRoot: %{_tmppath}/%{name}-buildroot
   13 Prefix: %{_prefix}
   14 URL: http://portfwd.sf.net
   15 
   16 
   17 %description
   18 
   19 Portfwd stands for port forwarding daemon. It's a small C++
   20 utility which forwards incoming TCP connections and/or UDP
   21 packets to remote hosts.
   22 
   23 %prep
   24 
   25 case "${RPM_COMMAND:-all}" in
   26 all)
   27 %setup -q
   28 ;;esac
   29 
   30 %build
   31 
   32 case "${RPM_COMMAND:-all}" in
   33 all)
   34 export CFLAGS="$RPM_OPT_FLAGS -O1 -g"
   35 
   36 ./bootstrap
   37 ./configure --prefix=%{prefix} --sysconfdir=/etc
   38 ;;esac
   39 
   40 make 
   41 
   42 %install
   43 install -d $RPM_BUILD_ROOT%{prefix}/bin
   44 install -d $RPM_BUILD_ROOT%{prefix}/man/man1
   45 make prefix=$RPM_BUILD_ROOT%{prefix} install 
   46 
   47 %clean
   48 rm -rf $RPM_BUILD_ROOT
   49 
   50 %files
   51 %defattr(-,root,root)
   52 %doc COPYING README TODO cfg
   53 %{_prefix}/
   54 #%#(config)/etc/*