public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/inn] epel10.3: rename Fedora-specific patch
Date: Wed, 26 Aug 2026 08:55:41 GMT [thread overview]
Message-ID: <178773454149.1.10496780436685852849.rpms-inn-247eb03f9513@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/inn
Branch : epel10.3
Commit : 247eb03f9513653cf36b1079fe03512ccba0d473
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2024-10-13T17:42:52+02:00
Stats : +107/-107 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/inn/c/247eb03f9513653cf36b1079fe03512ccba0d473?branch=epel10.3
Log:
rename Fedora-specific patch
use modern autosetup and make_install macros
---
diff --git a/inn-2.7.0-fedora.patch b/inn-2.7.0-fedora.patch
deleted file mode 100644
index 5c92e00..0000000
--- a/inn-2.7.0-fedora.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-diff -up inn-2.7.2/lib/innconf.c.rh inn-2.7.2/lib/innconf.c
---- inn-2.7.2/lib/innconf.c.rh 2024-10-13 17:15:46.538079313 +0200
-+++ inn-2.7.2/lib/innconf.c 2024-10-13 17:16:21.059904326 +0200
-@@ -226,7 +226,7 @@ static const struct config config_table[
- {K(pgpverify), BOOL(false) },
-
- /* The following settings are specific to innwatch. */
-- {K(doinnwatch), BOOL(true) },
-+ {K(doinnwatch), BOOL(false) },
- {K(innwatchbatchspace), UNUMBER(4000) },
- {K(innwatchlibspace), UNUMBER(25000) },
- {K(innwatchloload), UNUMBER(1000) },
-diff -up inn-2.7.2/Makefile.global.in.rh inn-2.7.2/Makefile.global.in
---- inn-2.7.2/Makefile.global.in.rh 2024-06-22 13:22:42.000000000 +0200
-+++ inn-2.7.2/Makefile.global.in 2024-10-13 17:15:46.539079308 +0200
-@@ -279,8 +279,8 @@ INEWSMODE = @INEWSMODE@
- RNEWSMODE = @RNEWSMODE@
- FILEMODE = @FILEMODE@
-
--OWNER = -o $(RUNASUSER) -g $(RUNASGROUP)
--ROWNER = -o $(RUNASUSER) -g $(RNEWSGROUP)
-+OWNER =
-+ROWNER =
-
- INSTALL = $(top)/support/install-sh -p
-
-diff -up inn-2.7.2/perl/INN/Config.pm.in.rh inn-2.7.2/perl/INN/Config.pm.in
---- inn-2.7.2/perl/INN/Config.pm.in.rh 2024-06-22 13:22:42.000000000 +0200
-+++ inn-2.7.2/perl/INN/Config.pm.in 2024-10-13 17:15:46.539079308 +0200
-@@ -15,7 +15,7 @@ our $exec_prefix = "@exec_prefix@";
-
- ## Then, process the variables provided by innconfval.
- my @INNCONFVAR = ();
--my @values = `${exec_prefix}/bin/innconfval -p`;
-+my @values = `${exec_prefix}/innconfval -p`;
- foreach my $line (@values) {
- eval 'our ' . $line;
- if ($line =~ /^(.*?) = /m) {
-diff -up inn-2.7.2/samples/inn.conf.in.rh inn-2.7.2/samples/inn.conf.in
---- inn-2.7.2/samples/inn.conf.in.rh 2024-06-22 13:22:42.000000000 +0200
-+++ inn-2.7.2/samples/inn.conf.in 2024-10-13 17:15:46.539079308 +0200
-@@ -21,7 +21,7 @@ mta: "@SENDMAIL@
- organization: "A poorly-installed InterNetNews site"
- ovmethod: tradindexed
- hismethod: hisv6
--pathhost: @HOSTNAME@
-+#pathhost: localhost
- pathnews: @prefix@
-
- #runasuser:
-@@ -149,7 +149,7 @@ backofftrigger: 10000
-
- # Monitoring
-
--doinnwatch: true
-+doinnwatch: false
- innwatchbatchspace: 4000
- innwatchlibspace: 25000
- innwatchloload: 1000
-diff -up inn-2.7.2/scripts/Makefile.rh inn-2.7.2/scripts/Makefile
---- inn-2.7.2/scripts/Makefile.rh 2024-06-22 13:22:42.000000000 +0200
-+++ inn-2.7.2/scripts/Makefile 2024-10-13 17:15:46.540079303 +0200
-@@ -25,7 +25,7 @@ install: all
- done
- for F in innreport-display.conf innreport_inn.pm \
- innshellvars innshellvars.pl innshellvars.tcl ; do \
-- $(CP_RPUB) $$F $D$(PATHLIB)/$$F ; \
-+ $(CP_RPUB) $$F $D$(PATHBIN)/$$F ; \
- done
-
- bootstrap:
-diff -up inn-2.7.2/support/fixscript.in.rh inn-2.7.2/support/fixscript.in
---- inn-2.7.2/support/fixscript.in.rh 2024-06-22 13:22:42.000000000 +0200
-+++ inn-2.7.2/support/fixscript.in 2024-10-13 17:15:46.540079303 +0200
-@@ -24,6 +24,7 @@ prefix="@prefix@"
- exec_prefix="@exec_prefix@"
- libdir="@libdir@"
- libperldir="@LIBPERLDIR@"
-+libexecdir="@libexecdir@"
-
- # We can probably just assume sed is on the path, but since we have it, we may
- # as well use it.
-@@ -58,7 +59,7 @@ interpreter=$(head -n 1 "$input")
- case "$interpreter" in
- */sh | *SH*)
- path="@SHELL@"
-- lib=". $libdir/innshellvars"
-+ lib=". $libexecdir/news/innshellvars"
- ;;
- */perl* | *PERL*)
- path=$(echo "$interpreter" | sed 's%^#! *[^ ][^ ]*%'"$PERLPATH%")
-diff -up inn-2.7.2/tests/lib/innconf-t.c.rh inn-2.7.2/tests/lib/innconf-t.c
---- inn-2.7.2/tests/lib/innconf-t.c.rh 2024-06-22 13:22:42.000000000 +0200
-+++ inn-2.7.2/tests/lib/innconf-t.c 2024-10-13 17:15:46.540079303 +0200
-@@ -72,7 +72,7 @@ main(void)
- fclose(config);
- ok(7, !innconf_check("config/tmp"));
- unlink("config/tmp");
-- ok_string(8, "config/tmp:29: unknown parameter foo\n", errors);
-+ ok_string(8, "config/tmp:28: unknown parameter foo\n", errors);
- errors_uncapture();
- free(errors);
- errors = NULL;
diff --git a/inn-fedora.patch b/inn-fedora.patch
new file mode 100644
index 0000000..5c92e00
--- /dev/null
+++ b/inn-fedora.patch
@@ -0,0 +1,103 @@
+diff -up inn-2.7.2/lib/innconf.c.rh inn-2.7.2/lib/innconf.c
+--- inn-2.7.2/lib/innconf.c.rh 2024-10-13 17:15:46.538079313 +0200
++++ inn-2.7.2/lib/innconf.c 2024-10-13 17:16:21.059904326 +0200
+@@ -226,7 +226,7 @@ static const struct config config_table[
+ {K(pgpverify), BOOL(false) },
+
+ /* The following settings are specific to innwatch. */
+- {K(doinnwatch), BOOL(true) },
++ {K(doinnwatch), BOOL(false) },
+ {K(innwatchbatchspace), UNUMBER(4000) },
+ {K(innwatchlibspace), UNUMBER(25000) },
+ {K(innwatchloload), UNUMBER(1000) },
+diff -up inn-2.7.2/Makefile.global.in.rh inn-2.7.2/Makefile.global.in
+--- inn-2.7.2/Makefile.global.in.rh 2024-06-22 13:22:42.000000000 +0200
++++ inn-2.7.2/Makefile.global.in 2024-10-13 17:15:46.539079308 +0200
+@@ -279,8 +279,8 @@ INEWSMODE = @INEWSMODE@
+ RNEWSMODE = @RNEWSMODE@
+ FILEMODE = @FILEMODE@
+
+-OWNER = -o $(RUNASUSER) -g $(RUNASGROUP)
+-ROWNER = -o $(RUNASUSER) -g $(RNEWSGROUP)
++OWNER =
++ROWNER =
+
+ INSTALL = $(top)/support/install-sh -p
+
+diff -up inn-2.7.2/perl/INN/Config.pm.in.rh inn-2.7.2/perl/INN/Config.pm.in
+--- inn-2.7.2/perl/INN/Config.pm.in.rh 2024-06-22 13:22:42.000000000 +0200
++++ inn-2.7.2/perl/INN/Config.pm.in 2024-10-13 17:15:46.539079308 +0200
+@@ -15,7 +15,7 @@ our $exec_prefix = "@exec_prefix@";
+
+ ## Then, process the variables provided by innconfval.
+ my @INNCONFVAR = ();
+-my @values = `${exec_prefix}/bin/innconfval -p`;
++my @values = `${exec_prefix}/innconfval -p`;
+ foreach my $line (@values) {
+ eval 'our ' . $line;
+ if ($line =~ /^(.*?) = /m) {
+diff -up inn-2.7.2/samples/inn.conf.in.rh inn-2.7.2/samples/inn.conf.in
+--- inn-2.7.2/samples/inn.conf.in.rh 2024-06-22 13:22:42.000000000 +0200
++++ inn-2.7.2/samples/inn.conf.in 2024-10-13 17:15:46.539079308 +0200
+@@ -21,7 +21,7 @@ mta: "@SENDMAIL@
+ organization: "A poorly-installed InterNetNews site"
+ ovmethod: tradindexed
+ hismethod: hisv6
+-pathhost: @HOSTNAME@
++#pathhost: localhost
+ pathnews: @prefix@
+
+ #runasuser:
+@@ -149,7 +149,7 @@ backofftrigger: 10000
+
+ # Monitoring
+
+-doinnwatch: true
++doinnwatch: false
+ innwatchbatchspace: 4000
+ innwatchlibspace: 25000
+ innwatchloload: 1000
+diff -up inn-2.7.2/scripts/Makefile.rh inn-2.7.2/scripts/Makefile
+--- inn-2.7.2/scripts/Makefile.rh 2024-06-22 13:22:42.000000000 +0200
++++ inn-2.7.2/scripts/Makefile 2024-10-13 17:15:46.540079303 +0200
+@@ -25,7 +25,7 @@ install: all
+ done
+ for F in innreport-display.conf innreport_inn.pm \
+ innshellvars innshellvars.pl innshellvars.tcl ; do \
+- $(CP_RPUB) $$F $D$(PATHLIB)/$$F ; \
++ $(CP_RPUB) $$F $D$(PATHBIN)/$$F ; \
+ done
+
+ bootstrap:
+diff -up inn-2.7.2/support/fixscript.in.rh inn-2.7.2/support/fixscript.in
+--- inn-2.7.2/support/fixscript.in.rh 2024-06-22 13:22:42.000000000 +0200
++++ inn-2.7.2/support/fixscript.in 2024-10-13 17:15:46.540079303 +0200
+@@ -24,6 +24,7 @@ prefix="@prefix@"
+ exec_prefix="@exec_prefix@"
+ libdir="@libdir@"
+ libperldir="@LIBPERLDIR@"
++libexecdir="@libexecdir@"
+
+ # We can probably just assume sed is on the path, but since we have it, we may
+ # as well use it.
+@@ -58,7 +59,7 @@ interpreter=$(head -n 1 "$input")
+ case "$interpreter" in
+ */sh | *SH*)
+ path="@SHELL@"
+- lib=". $libdir/innshellvars"
++ lib=". $libexecdir/news/innshellvars"
+ ;;
+ */perl* | *PERL*)
+ path=$(echo "$interpreter" | sed 's%^#! *[^ ][^ ]*%'"$PERLPATH%")
+diff -up inn-2.7.2/tests/lib/innconf-t.c.rh inn-2.7.2/tests/lib/innconf-t.c
+--- inn-2.7.2/tests/lib/innconf-t.c.rh 2024-06-22 13:22:42.000000000 +0200
++++ inn-2.7.2/tests/lib/innconf-t.c 2024-10-13 17:15:46.540079303 +0200
+@@ -72,7 +72,7 @@ main(void)
+ fclose(config);
+ ok(7, !innconf_check("config/tmp"));
+ unlink("config/tmp");
+- ok_string(8, "config/tmp:29: unknown parameter foo\n", errors);
++ ok_string(8, "config/tmp:28: unknown parameter foo\n", errors);
+ errors_uncapture();
+ free(errors);
+ errors = NULL;
diff --git a/inn.spec b/inn.spec
index f853be4..90f1116 100644
--- a/inn.spec
+++ b/inn.spec
@@ -23,7 +23,8 @@ Source24: innd-nntpsend.timer
Source25: innd-rnews.service
Source26: innd-rnews.timer
Source30: inn.rsyslog
-Patch1: inn-2.7.0-fedora.patch
+# Fedora-specific paths and configuration settings
+Patch0: inn-fedora.patch
BuildRequires: autoconf
BuildRequires: byacc
BuildRequires: cyrus-sasl-devel
@@ -114,8 +115,7 @@ This package contains dynamic libraries provided by INN project
%prep
gpgv2 --keyring %{S:3} %{S:1} %{S:0}
-%setup -q -n inn-%{version}
-%patch -P1 -p1 -b .rh
+%autosetup -p1
%build
%configure \
@@ -153,7 +153,7 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/news/http
-make install DESTDIR=$RPM_BUILD_ROOT
+%make_install
# -- Install man pages needed by suck et al.
mkdir -p $RPM_BUILD_ROOT%{_includedir}/inn
reply other threads:[~2026-08-26 8:55 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=178773454149.1.10496780436685852849.rpms-inn-247eb03f9513@fedoraproject.org \
--to=dominik@greysector.net \
--cc=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