--- /dev/null
+../../main/non-common/pgsentinel/EL-10
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-8
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-9
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-41
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-42
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/SLES-15
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-10
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-8
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-9
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-41
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-42
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/SLES-15
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-10
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-8
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-9
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-41
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-42
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/SLES-15
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-10
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-8
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-9
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-41
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-42
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/SLES-15
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-10
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-8
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/EL-9
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-41
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/F-42
\ No newline at end of file
--- /dev/null
+../../main/non-common/pgsentinel/SLES-15
\ No newline at end of file
--- /dev/null
+#################################
+# RPM-specific Makefile #
+# https://yum.postgresql.org #
+# #
+# Devrim Gunduz #
+# devrim@gunduz.org #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel10
+SPECFILE="pgsentinel.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
--- /dev/null
+../main/pgsentinel.spec
\ No newline at end of file
--- /dev/null
+#################################
+# RPM-specific Makefile #
+# https://yum.postgresql.org #
+# #
+# Devrim Gunduz #
+# devrim@gunduz.org #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel8
+SPECFILE="pgsentinel.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
--- /dev/null
+../main/pgsentinel.spec
\ No newline at end of file
--- /dev/null
+#################################
+# RPM-specific Makefile #
+# https://yum.postgresql.org #
+# #
+# Devrim Gunduz #
+# devrim@gunduz.org #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel9
+SPECFILE="pgsentinel.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
--- /dev/null
+../main/pgsentinel.spec
\ No newline at end of file
--- /dev/null
+#################################
+# RPM-specific Makefile #
+# https://yum.postgresql.org #
+# #
+# Devrim Gunduz #
+# devrim@gunduz.org #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f41
+SPECFILE="pgsentinel.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
--- /dev/null
+../main/pgsentinel.spec
\ No newline at end of file
--- /dev/null
+#################################
+# RPM-specific Makefile #
+# https://yum.postgresql.org #
+# #
+# Devrim Gunduz #
+# devrim@gunduz.org #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f42
+SPECFILE="pgsentinel.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
--- /dev/null
+../main/pgsentinel.spec
\ No newline at end of file
--- /dev/null
+#################################
+# RPM-specific Makefile #
+# https://yum.postgresql.org #
+# #
+# Devrim Gunduz #
+# devrim@gunduz.org #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=".sles15"
+SPECFILE="pgsentinel.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
--- /dev/null
+../main/pgsentinel.spec
\ No newline at end of file
--- /dev/null
+#################################
+# RPM-specific Makefile #
+# https://yum.postgresql.org #
+# #
+# Devrim Gunduz #
+# devrim@gunduz.org #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f99
+SPECFILE="pgsentinel.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
--- /dev/null
+%global sname pgsentinel
+
+%{!?llvm:%global llvm 1}
+
+Summary: PostgreSQL extension for sampling active session history
+Name: %{sname}_%{pgmajorversion}
+Version: 1.2.0
+Release: 1PGDG%{?dist}
+License: PostgreSQL
+URL: https://github.com/%{sname}/%{sname}
+Source0: https://github.com/%{sname}/%{sname}/archive/refs/tags/v%{version}.tar.gz
+BuildRequires: postgresql%{pgmajorversion}-devel
+Requires: postgresql%{pgmajorversion}-server
+
+%description
+PostgreSQL provides session activity. However, in order to gather activity
+behavior, users have to sample the pg_stat_activity view multiple times.
+pgsentinel is an extension to record active session history and link the
+activity with query statistics (pg_stat_statements).
+
+%if %llvm
+%package llvmjit
+Summary: Just-in-time compilation support for pgsentinel
+Requires: %{name}%{?_isa} = %{version}-%{release}
+%if 0%{?suse_version} >= 1500
+BuildRequires: llvm17-devel clang17-devel
+Requires: llvm17
+%endif
+%if 0%{?fedora} || 0%{?rhel} >= 8
+BuildRequires: llvm-devel >= 19.0 clang-devel >= 19.0
+Requires: llvm => 19.0
+%endif
+
+%description llvmjit
+This package provides JIT support for pgsentinel
+%endif
+
+%prep
+%setup -q -n %{sname}-%{version}
+
+%build
+USE_PGXS=1 PATH=%{pginstdir}/bin/:$PATH %{__make} %{?_smp_mflags}
+
+%install
+%{__rm} -rf %{buildroot}
+USE_PGXS=1 PATH=%{pginstdir}/bin/:$PATH %{__make} DESTDIR=%{buildroot} %{?_smp_mflags} install
+# Install documentation with a better name:
+%{__mkdir} -p %{buildroot}%{pginstdir}/doc/extension
+%{__cp} README.md %{buildroot}%{pginstdir}/doc/extension/README-%{sname}.md
+
+%files
+%defattr(644,root,root,755)
+%doc %{pginstdir}/doc/extension/README-%{sname}.md
+%{pginstdir}/lib/%{sname}*.*
+%{pginstdir}/share/extension/%{sname}*.*
+
+%if %llvm
+%files llvmjit
+ %{pginstdir}/lib/bitcode/%{sname}.index.bc
+ %{pginstdir}/lib/bitcode/%{sname}/*bc
+%endif
+
+%changelog
+* Wed Jul 30 2025 Devrim Gündüz <devrim@gunduz.org> - 1.2.0-1PGDG
+- Initial packaging for the PostgreSQL RPM Repository