"Fossies" - the Fresh Open Source Software Archive

Member "socat-1.7.3.2/socat.spec" (23 Jan 2017, 1364 Bytes) of package /linux/privat/socat-1.7.3.2.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. See also the latest Fossies "Diffs" side-by-side code changes report for "socat.spec": 1.7.3.1_vs_1.7.3.2.

    1 
    2 %define majorver 1.7
    3 %define minorver 3.2
    4 
    5 Summary: socat - multipurpose relay
    6 Name: socat
    7 Version: %{majorver}.%{minorver}
    8 Release: 1
    9 License: GPL
   10 Group: Applications/Communications
   11 Source0: http://www.dest-unreach.org/socat/download/socat-%{version}.tar.bz2
   12 Requires: readline
   13 Requires: openssl
   14 BuildRoot: /var/tmp/%{name}-buildroot
   15 
   16 %description
   17 socat is a relay for bidirectional data transfer between two independent data
   18 channels. Each of these data channels may be a file, pipe, device (terminal or
   19 modem etc.), socket (UNIX, IP4, IP6 - raw, UDP, TCP), a file descriptor (stdin
   20 etc.), a program, or an arbitrary combination of two of these.
   21 
   22 %prep
   23 %setup -n %{name}-%{version}
   24 
   25 %build
   26 # the CPPFLAGS setting is required for RedHat Linux
   27 if [ -d /usr/kerberos/include ]; then
   28     CPPFLAGS="-I/usr/kerberos/include" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
   29 else
   30     ./configure --prefix=%{_prefix} --mandir=%{_mandir}
   31 fi
   32 make
   33 
   34 %install
   35 rm -rf $RPM_BUILD_ROOT
   36 
   37 mkdir -p $RPM_BUILD_ROOT%{_bindir}
   38 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
   39 
   40 make install DESTDIR=$RPM_BUILD_ROOT
   41 
   42 %clean
   43 rm -rf $RPM_BUILD_ROOT
   44 
   45 %files
   46 %defattr(-,root,root)
   47 %doc README CHANGES EXAMPLES SECURITY doc/xio.help doc/socat.html FAQ BUGREPORTS
   48 %doc COPYING COPYING.OpenSSL FILES PORTING DEVELOPMENT
   49 %{_bindir}/socat
   50 %{_bindir}/procan
   51 %{_bindir}/filan
   52 %{_mandir}/man1/socat.1*