public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/cpipe] f44: 3.0.2
Date: Mon, 26 Oct 2026 22:02:14 GMT	[thread overview]
Message-ID: <179305213426.1.17590209073787503093.rpms-cpipe-51ef3cc93bdc@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/cpipe
Branch : f44
Commit : 51ef3cc93bdc27dccb8365aedeefcf76e60b770b
Author : Terje Røsten <terjeros@gmail.com>
Date   : 2026-10-26T18:42:17+01:00
Stats  : +50/-11 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/cpipe/c/51ef3cc93bdc27dccb8365aedeefcf76e60b770b?branch=f44

Log:
3.0.2

---
diff --git a/.gitignore b/.gitignore
index 078ed30..6f75c69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 cpipe-3.0.1.tar.gz
+/cpipe-3.0.2.tar.gz

diff --git a/cpipe-3.0.2-format.patch b/cpipe-3.0.2-format.patch
new file mode 100644
index 0000000..13032ae
--- /dev/null
+++ b/cpipe-3.0.2-format.patch
@@ -0,0 +1,29 @@
+diff --git a/cpipe.c b/cpipe.c
+index 42388ff..606aa6d 100644
+--- a/cpipe.c
++++ b/cpipe.c
+@@ -137,7 +137,7 @@ readBuffer(char *buf, size_t length, int show, int nonblock, int *eof)
+ 	    scale(TotalBytes/totalTin, txt2),
+ 	    scale(TotalBytes, txt3));
+     if( totalBytes<length ) {
+-      fprintf(stderr, "   (bsize=%u)\n", totalBytes);
++      fprintf(stderr, "   (bsize=%lu)\n", totalBytes);
+     } else {
+       fprintf(stderr, "\n");
+     }
+diff --git a/makefile b/makefile
+index d0289e1..61f3d0a 100644
+--- a/makefile
++++ b/makefile
+@@ -17,9 +17,10 @@ MANDIR=$(prefix)/man/man1
+ ## Your favorite compiler flags.
+ CFLAGS = -O2 -W -Wall -pedantic
+ 
++LDFLAGS =
+ ########################################################################
+ cpipe: cpipe.o cmdline.o
+-	$(CC) -lm -o $@ cpipe.o cmdline.o
++	$(CC) $(LDFLAGS) -o $@ cpipe.o cmdline.o -lm
+ 
+ cpipe.o: cpipe.c cmdline.h
+ 

diff --git a/cpipe.spec b/cpipe.spec
index 1eeeea0..cdd597f 100644
--- a/cpipe.spec
+++ b/cpipe.spec
@@ -1,11 +1,11 @@
 Summary:       Counting pipe
 Name:          cpipe
-Version:       3.0.1
-Release:       38%{?dist}
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
+Version:       3.0.2
+Release:       1%{?dist}
 License:       GPL-2.0-or-later
-URL:           http://developer.berlios.de/projects/cpipe
-Source0:       http://download.berlios.de/cpipe/cpipe-%{version}.tar.gz
+URL:           https://sourceforge.net/projects/cpipe.berlios/
+Source0:       https://sourceforge.net/projects/cpipe.berlios/files/cpipe-%{version}.tar.gz
+Patch:         cpipe-3.0.2-format.patch
 BuildRequires: gcc
 BuildRequires: make
 %description
@@ -15,26 +15,35 @@ buffer. Statistics of average throughput and the total amount of bytes
 copied are printed to the standard error output.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
-# Use included filess
+# Use included files
 touch cmdline.c cmdline.h cpipe.1
-make %{?_smp_mflags} CFLAGS='%{optflags}'
+make %{?_smp_mflags} CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}'
 
 %install
-make install \
+%make_install \
     BINDIR=%{buildroot}%{_bindir} \
     MANDIR=%{buildroot}%{_mandir}/man1
 chmod 0644 %{buildroot}%{_mandir}/man1/cpipe*
 
+%check
+cat COPYING-2.0 | ./cpipe -vt > /dev/null
+
 %files
 %license COPYING-2.0
 %doc CHANGES README
 %{_bindir}/cpipe
-%{_mandir}/man1/cpipe*
+%{_mandir}/man1/cpipe.1*
 
 %changelog
+* Mon Oct 26 2026 Terje Røsten <terjeros@gmail.com> - 3.0.2-1
+- 3.0.2
+- New upstream location
+- Fix build options
+- Add a simple test
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-38
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index 16e9517..200b8e6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1eaa5b28ef7ef96f1c54d5607ec828b3  cpipe-3.0.1.tar.gz
+SHA512 (cpipe-3.0.2.tar.gz) = 569e7e3c5f2731057f14f11485c22bf78132e8bdb6787f36155472d43637cb94023771be0c08463c31859ccf6858def1ccb30e679bdda9cedae58e811dda4713

                 reply	other threads:[~2026-10-26 22:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179305213426.1.17590209073787503093.rpms-cpipe-51ef3cc93bdc@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox