pg_ivm/rpm/pg_ivm.spec

86 lines
2.7 KiB
RPMSpec
Raw Normal View History

2022-05-02 17:37:24 +00:00
# How to build RPM:
#
2025-09-04 13:54:58 +00:00
# rpmbuild -bb pg_ivm.spec --define "pgmajorversion 18" --define "pginstdir /usr/pgsql-18"
2022-05-02 17:37:24 +00:00
%global sname pg_ivm
2022-06-02 02:27:41 +00:00
%if 0%{?rhel} && 0%{?rhel} >= 7
2022-05-02 17:37:24 +00:00
%global llvm 1
%endif
2025-09-04 13:54:58 +00:00
Summary: Incremental View Maintenance (IVM) feature for PostgreSQL.
2022-05-02 17:37:24 +00:00
Name: %{sname}_%{pgmajorversion}
2025-09-04 13:54:58 +00:00
Version: 1.12
2022-05-02 17:37:24 +00:00
Release: 1%{dist}
2025-09-04 13:54:58 +00:00
License: PostgreSQL
2022-05-02 17:37:24 +00:00
Vendor: IVM Development Group
URL: https://github.com/sraoss/%{sname}
Source0: https://github.com/sraoss/%{sname}/archive/v%{version}.tar.gz
BuildRequires: postgresql%{pgmajorversion}-devel
Requires: postgresql%{pgmajorversion}-server
%description
pg_ivm provides Incremnetal View Maintenance feature for
PostgreSQL. Incremental View Maintenance (IVM) is a way to make
materialized views up-to-date in which only incremental changes
are computed and applied on views rather than recomputing.
%prep
%setup -q -n %{sname}-%{version}
%build
2022-06-02 03:04:55 +00:00
PATH=%{pginstdir}/bin:$PATH %{__make} %{?_smp_mflags}
2022-05-02 17:37:24 +00:00
%install
2022-06-02 02:27:41 +00:00
%{__rm} -rf %{buildroot}
2022-06-02 03:04:55 +00:00
PATH=%{pginstdir}/bin:$PATH %{__make} %{?_smp_mflags} INSTALL_PREFIX=%{buildroot} DESTDIR=%{buildroot} install
2022-06-02 02:27:41 +00:00
2022-05-02 17:37:24 +00:00
# Install documentation with a better name:
%{__mkdir} -p %{buildroot}%{pginstdir}/doc/extension
%{__cp} README.md %{buildroot}%{pginstdir}/doc/extension/README-%{sname}.md
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%license LICENSE
%doc %{pginstdir}/doc/extension/README-%{sname}.md
%{pginstdir}/lib/%{sname}.so
%{pginstdir}/share/extension/%{sname}-*.sql
%{pginstdir}/share/extension/%{sname}.control
%if %llvm
%{pginstdir}/lib/bitcode/%{sname}*.bc
%{pginstdir}/lib/bitcode/%{sname}/*.bc
%endif
%changelog
2025-09-04 13:54:58 +00:00
* Mon Sep 4 2025 - Yugo Nagata <nagata@sraoss.co.jp> 1.12-1
- Update to 1.12
2025-05-26 07:09:26 +00:00
* Mon May 25 2025 - Yugo Nagata <nagata@sraoss.co.jp> 1.11-1
2025-09-04 13:54:58 +00:00
- Update to 1.11
2025-05-26 07:09:26 +00:00
* Tue Mar 11 2025 - Yugo Nagata <nagata@sraoss.co.jp> 1.10-1
2024-12-09 11:01:46 +00:00
- Update to 1.10
2024-07-31 04:00:31 +00:00
* Fri Jul 31 2024 - Yugo Nagata <nagata@sraoss.co.jp> 1.9-1
- Update to 1.9
2024-03-01 14:28:28 +00:00
* Fri Mar 1 2024 - Yugo Nagata <nagata@sraoss.co.jp> 1.8-1
- Update to 1.8
2023-09-13 02:13:40 +00:00
* Thu Sep 13 2023 - Yugo Nagata <nagata@sraoss.co.jp> 1.7-1
- Update to 1.7
2023-08-31 12:11:36 +00:00
* Thu Aug 31 2023 - Yugo Nagata <nagata@sraoss.co.jp> 1.6-1
- Update to 1.6
2023-02-17 02:36:37 +00:00
* Thu Mar 2 2023 - Yugo Nagata <nagata@sraoss.co.jp> 1.5.1-1
- Update to 1.5.1
2023-01-30 03:28:53 +00:00
* Mon Jun 30 2023 - Yugo Nagata <nagata@sraoss.co.jp> 1.5-1
2023-02-17 02:36:37 +00:00
- Update to 1.5
2022-12-16 14:34:06 +00:00
* Fri Dec 16 2022 - Yugo Nagata <nagata@sraoss.co.jp> 1.4-1
- Update to 1.4
2022-09-30 14:56:33 +00:00
* Fri Sep 30 2022 - Yugo Nagata <nagata@sraoss.co.jp> 1.3-1
2022-12-16 14:34:06 +00:00
- Update to 1.3
2022-07-25 06:21:38 +00:00
* Mon Jul 25 2022 - Yugo Nagata <nagata@sraoss.co.jp> 1.2-1
- Update to 1.2
2022-06-23 02:48:07 +00:00
* Thu Jun 23 2022 - Yugo Nagata <nagata@sraoss.co.jp> 1.1-1
- Update to 1.1
2022-06-02 02:27:41 +00:00
* Thu Jun 2 2022 - Yugo Nagata <nagata@sraoss.co.jp> 1.0-1
- Initial pg_ivm 1.0 RPM from IVM Development Group