[packages/dog] Rel 4
arekm
arekm at pld-linux.org
Thu May 21 15:06:54 CEST 2026
commit 9dd9ca818abb83ab0ba7d38e9722d996982550ec
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 21 15:06:37 2026 +0200
Rel 4
dog-c99-includes.patch | 19 +++++++++++++++++++
dog-makefile-flags.patch | 25 +++++++++++++++++++++++++
dog.spec | 12 ++++++++++--
3 files changed, 54 insertions(+), 2 deletions(-)
---
diff --git a/dog.spec b/dog.spec
index 08351fb..71873e4 100644
--- a/dog.spec
+++ b/dog.spec
@@ -2,11 +2,13 @@ Summary: dog - better than cat
Summary(pl.UTF-8): dog - lepszy niż cat
Name: dog
Version: 1.7
-Release: 3
+Release: 4
License: GPL
Group: Applications/Text
Source0: http://jl.photodex.com/dog/%{name}-%{version}.tar.gz
# Source0-md5: 9dd1e04efb7f8535a632bac2eef60a10
+Patch0: %{name}-makefile-flags.patch
+Patch1: %{name}-c99-includes.patch
URL: http://jl.photodex.com/dog/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -25,9 +27,15 @@ zamiennik cat(1).
%prep
%setup -q
+%patch -P0 -p1
+%patch -P1 -p1
%build
-%{__make}
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} -Wall" \
+ CPPFLAGS="%{rpmcppflags}" \
+ LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/dog-c99-includes.patch b/dog-c99-includes.patch
new file mode 100644
index 0000000..e839a6a
--- /dev/null
+++ b/dog-c99-includes.patch
@@ -0,0 +1,19 @@
+--- a/dog.c 2000-06-21 18:04:43.000000000 +0200
++++ b/dog.c 2026-05-21 01:13:41.328381460 +0200
+@@ -37,6 +37,7 @@
+ #include "getopt.h"
+ #include <limits.h>
+ #include <netdb.h>
++#include <time.h>
+
+ // this is fun
+ #if defined(__alpha)
+@@ -1321,7 +1322,7 @@
+ InetSockAddr sa;
+ int newsock;
+ uint32 ipAddr;
+- int k;
++ socklen_t k;
+ time_t curr_time;
+ char curr_date[64];
+
diff --git a/dog-makefile-flags.patch b/dog-makefile-flags.patch
new file mode 100644
index 0000000..0dbbbd7
--- /dev/null
+++ b/dog-makefile-flags.patch
@@ -0,0 +1,25 @@
+--- a/Makefile 2000-06-21 18:00:57.000000000 +0200
++++ b/Makefile 2026-05-21 01:12:35.992214528 +0200
+@@ -18,18 +18,19 @@
+ # dogboy at photodex.com!
+
+ INSTALL = /usr/bin/install -c
++CC ?= gcc
+ OBJS = dog.o getopt.o getopt1.o
+-CFLAGS = -O3 -Wall
++CFLAGS ?= -O3 -Wall
+
+ prefix = /usr/local
+ bindir = ${prefix}/bin
+ mandir = ${prefix}/man
+
+ %.o: %.c
+- gcc ${CFLAGS} -c $< -o $@
++ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
+
+ dog: ${OBJS}
+- gcc ${CFLAGS} -o dog ${OBJS}
++ $(CC) $(CFLAGS) $(LDFLAGS) -o dog ${OBJS}
+
+ install: dog
+ $(INSTALL) -m 644 dog.1 ${mandir}/man1
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dog.git/commitdiff/9dd9ca818abb83ab0ba7d38e9722d996982550ec
More information about the pld-cvs-commit
mailing list