Группа :: Development/Tools
Пакет: tcputils
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 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