public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cpipe] rawhide: 3.0.2
@ 2026-10-26 17:43
0 siblings, 0 replies; only message in thread
From: @ 2026-10-26 17:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/cpipe
Branch : rawhide
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=rawhide
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-26 17:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 17:43 [rpms/cpipe] rawhide: 3.0.2
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox