pg_auto_reindexer: Initial packaging
authorDevrim Gunduz <devrim@gunduz.org>
Sun, 22 Jun 2025 11:30:34 +0000 (12:30 +0100)
committerDevrim Gunduz <devrim@gunduz.org>
Sun, 22 Jun 2025 11:30:34 +0000 (12:30 +0100)
14 files changed:
rpm/redhat/main/common/pg_auto_reindexer/EL-10/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pg_auto_reindexer/EL-10/pg_auto_reindexer.spec [new symlink]
rpm/redhat/main/common/pg_auto_reindexer/EL-8/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pg_auto_reindexer/EL-8/pg_auto_reindexer.spec [new symlink]
rpm/redhat/main/common/pg_auto_reindexer/EL-9/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pg_auto_reindexer/EL-9/pg_auto_reindexer.spec [new symlink]
rpm/redhat/main/common/pg_auto_reindexer/F-41/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pg_auto_reindexer/F-41/pg_auto_reindexer.spec [new symlink]
rpm/redhat/main/common/pg_auto_reindexer/F-42/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pg_auto_reindexer/F-42/pg_auto_reindexer.spec [new symlink]
rpm/redhat/main/common/pg_auto_reindexer/SLES-15/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pg_auto_reindexer/SLES-15/pg_auto_reindexer.spec [new symlink]
rpm/redhat/main/common/pg_auto_reindexer/main/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pg_auto_reindexer/main/pg_auto_reindexer.spec [new file with mode: 0644]

diff --git a/rpm/redhat/main/common/pg_auto_reindexer/EL-10/Makefile b/rpm/redhat/main/common/pg_auto_reindexer/EL-10/Makefile
new file mode 100644 (file)
index 0000000..dde2aa4
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel10
+SPECFILE="pg_auto_reindexer.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/EL-10/pg_auto_reindexer.spec b/rpm/redhat/main/common/pg_auto_reindexer/EL-10/pg_auto_reindexer.spec
new file mode 120000 (symlink)
index 0000000..edeefb5
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_auto_reindexer.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/EL-8/Makefile b/rpm/redhat/main/common/pg_auto_reindexer/EL-8/Makefile
new file mode 100644 (file)
index 0000000..6687932
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel8
+SPECFILE="pg_auto_reindexer.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/EL-8/pg_auto_reindexer.spec b/rpm/redhat/main/common/pg_auto_reindexer/EL-8/pg_auto_reindexer.spec
new file mode 120000 (symlink)
index 0000000..edeefb5
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_auto_reindexer.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/EL-9/Makefile b/rpm/redhat/main/common/pg_auto_reindexer/EL-9/Makefile
new file mode 100644 (file)
index 0000000..76eb4ff
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel9
+SPECFILE="pg_auto_reindexer.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/EL-9/pg_auto_reindexer.spec b/rpm/redhat/main/common/pg_auto_reindexer/EL-9/pg_auto_reindexer.spec
new file mode 120000 (symlink)
index 0000000..edeefb5
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_auto_reindexer.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/F-41/Makefile b/rpm/redhat/main/common/pg_auto_reindexer/F-41/Makefile
new file mode 100644 (file)
index 0000000..6af1057
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f41
+SPECFILE="pg_auto_reindexer.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/F-41/pg_auto_reindexer.spec b/rpm/redhat/main/common/pg_auto_reindexer/F-41/pg_auto_reindexer.spec
new file mode 120000 (symlink)
index 0000000..edeefb5
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_auto_reindexer.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/F-42/Makefile b/rpm/redhat/main/common/pg_auto_reindexer/F-42/Makefile
new file mode 100644 (file)
index 0000000..61e0f39
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f42
+SPECFILE="pg_auto_reindexer.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/F-42/pg_auto_reindexer.spec b/rpm/redhat/main/common/pg_auto_reindexer/F-42/pg_auto_reindexer.spec
new file mode 120000 (symlink)
index 0000000..edeefb5
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_auto_reindexer.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/SLES-15/Makefile b/rpm/redhat/main/common/pg_auto_reindexer/SLES-15/Makefile
new file mode 100644 (file)
index 0000000..47515a5
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=".sles15"
+SPECFILE="pg_auto_reindexer.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/SLES-15/pg_auto_reindexer.spec b/rpm/redhat/main/common/pg_auto_reindexer/SLES-15/pg_auto_reindexer.spec
new file mode 120000 (symlink)
index 0000000..edeefb5
--- /dev/null
@@ -0,0 +1 @@
+../main/pg_auto_reindexer.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/main/Makefile b/rpm/redhat/main/common/pg_auto_reindexer/main/Makefile
new file mode 100644 (file)
index 0000000..66f5075
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f99
+SPECFILE="pg_auto_reindexer.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pg_auto_reindexer/main/pg_auto_reindexer.spec b/rpm/redhat/main/common/pg_auto_reindexer/main/pg_auto_reindexer.spec
new file mode 100644 (file)
index 0000000..c43945b
--- /dev/null
@@ -0,0 +1,32 @@
+Summary:       Automatic reindexing of PostgreSQL indexes (bloat cleanup)
+Name:          pg_auto_reindexer
+Version:       1.5
+Release:       1PGDG%{dist}
+License:       MIT
+Source0:       https://github.com/vitabaks/%{name}/archive/refs/tags/v%{version}.tar.gz
+URL:           https://github.com/vitabaks/%{name}
+BuildArch:     noarch
+
+%description
+pg_auto_reindexer automatically detects and reindexes bloated B-tree indexes
+with minimal locking. It uses REINDEX CONCURRENTLY.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+echo "no build step needed"
+
+%install
+%{__mkdir} -p %{buildroot}%{_bindir}
+%{__install} -m 755 %{name} %{buildroot}%{_bindir}
+
+%files
+%defattr(-,root,root,-)
+%doc README.md
+%license LICENSE
+%{_bindir}/%{name}
+
+%changelog
+* Sun Jun 22 2025 Devrim Gunduz <devrim@gunduz.org> - 1.5-1PGDG
+- Initial RPM packaging for the PostgreSQL RPM Repository.