rpms/tcputils/devel tcputils-0.6.2-makefile.patch, NONE, 1.1 tcputils.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Allisson Azevedo (allisson) fedora-extras-commits at redhat.com
Sun Oct 21 17:36:33 UTC 2007


Author: allisson

Update of /cvs/extras/rpms/tcputils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15828/devel

Modified Files:
	.cvsignore sources 
Added Files:
	tcputils-0.6.2-makefile.patch tcputils.spec 
Log Message:

First rpm import


tcputils-0.6.2-makefile.patch:

--- NEW FILE tcputils-0.6.2-makefile.patch ---
diff -up tcputils-0.6.2/Makefile.orig tcputils-0.6.2/Makefile
--- tcputils-0.6.2/Makefile.orig	2007-10-19 08:04:17.000000000 -0300
+++ tcputils-0.6.2/Makefile	2007-10-19 08:39:54.000000000 -0300
@@ -1,7 +1,11 @@
 # Linux RedHat 5.0 has header files that generates warnings when compiling
 # with -pedantic, so we leave that out per default.
+
+# For build fedora rpm
+DESTDIR =
+
 CC = gcc -Wall #-pedantic
-INCLUDE-FLAGS =
+INCLUDE-FLAGS = ${RPM_OPT_FLAGS}
 COPT = -g -O2
 LDFLAGS = ${COPT}
 CFLAGS = ${COPT} ${INCLUDE-FLAGS}
@@ -10,12 +14,12 @@ INSTALL = install -c
 MKDIR_P = mkdir -p
 # Solaris 2 needs to link with "-lsocket -lnsl".  For other unices you might
 # need to comment out those libraries.
-NETLIBS = -lsocket -lnsl
+#NETLIBS = -lsocket -lnsl
 
 # Where to install things.
-prefix = /usr/local
+prefix = ${DESTDIR}/usr
 bindir = ${prefix}/bin
-mandir = ${prefix}/man
+mandir = ${prefix}/share/man
 man1dir = ${mandir}/man1
 
 


--- NEW FILE tcputils.spec ---
Name:           tcputils
Version:        0.6.2
Release:        2%{?dist}
Summary:        Utilities for TCP programming in shell-scripts

Group:          Development/Tools
License:        Public Domain
URL:            ftp://ftp.lysator.liu.se/pub/unix/tcputils
Source0:        ftp://ftp.lysator.liu.se/pub/unix/%{name}/%{name}-%{version}.tar.gz
Patch0:         tcputils-0.6.2-makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

#BuildRequires:  
#Requires:       

%description
This is a collection of programs to facilitate TCP programming in 
shell-scripts. There is also a small library which makes it somewhat 
easier to create TCP/IP sockets.

%prep
%setup -q
%patch0 -p1 -b .orig


%build
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
chmod 0644 $RPM_BUILD_ROOT%{_mandir}/man1/*

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/getpeername
%{_bindir}/mini-inetd
%{_bindir}/tcpbug
%{_bindir}/tcpconnect
%{_bindir}/tcplisten
%{_mandir}/man1/getpeername.1.gz
%{_mandir}/man1/mini-inetd.1.gz
%{_mandir}/man1/tcpbug.1.gz
%{_mandir}/man1/tcpconnect.1.gz
%{_mandir}/man1/tcplisten.1.gz


%changelog

* Fri Oct 19 2007 Allisson Azevedo <allisson at gmail.com> 0.6.2-2
- Keep timestamps on man files

* Fri Oct 19 2007 Allisson Azevedo <allisson at gmail.com> 0.6.2-1
- Initial RPM release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/tcputils/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	21 Oct 2007 17:13:22 -0000	1.1
+++ .cvsignore	21 Oct 2007 17:36:00 -0000	1.2
@@ -0,0 +1 @@
+tcputils-0.6.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/tcputils/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Oct 2007 17:13:22 -0000	1.1
+++ sources	21 Oct 2007 17:36:00 -0000	1.2
@@ -0,0 +1 @@
+daf5844e3b3f09b0171c426ac4c0419c  tcputils-0.6.2.tar.gz




More information about the fedora-extras-commits mailing list