Fix spec file
This commit is contained in:
parent
ad0d36220f
commit
575e8ff0ac
1 changed files with 7 additions and 35 deletions
|
|
@ -4,10 +4,7 @@
|
||||||
|
|
||||||
%global sname pg_ivm
|
%global sname pg_ivm
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} == 7
|
%if 0%{?rhel} && 0%{?rhel} >= 7
|
||||||
%global llvm 1
|
|
||||||
%endif
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} >= 8
|
|
||||||
%global llvm 1
|
%global llvm 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
@ -28,32 +25,16 @@ PostgreSQL. Incremental View Maintenance (IVM) is a way to make
|
||||||
materialized views up-to-date in which only incremental changes
|
materialized views up-to-date in which only incremental changes
|
||||||
are computed and applied on views rather than recomputing.
|
are computed and applied on views rather than recomputing.
|
||||||
|
|
||||||
|
|
||||||
%if %llvm
|
|
||||||
%package llvmjit
|
|
||||||
Summary: Just-in-time compilation support for pg_ivm
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} == 7
|
|
||||||
# Packages come from EPEL and SCL:
|
|
||||||
BuildRequires: llvm5.0-devel >= 5.0 llvm-toolset-7-clang >= 4.0.1
|
|
||||||
%endif
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} >= 8
|
|
||||||
# Packages come from Appstream:
|
|
||||||
BuildRequires: llvm-devel >= 8.0.1 clang-devel >= 8.0.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description llvmjit
|
|
||||||
This packages provides JIT support for pg_ivm
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{sname}-%{version}
|
%setup -q -n %{sname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} PG_CONFIG=%{pginstdir}/bin/pg_config
|
PG_CONFIG=%{pginstdir}/bin/pg_config %{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%{__rm} -rf %{buildroot}
|
||||||
|
PG_CONFIG=%{pginstdir}/bin/pg_config %{__make} %{?_smp_mflags} INSTALL_PREFIX=%{buildroot} DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
# Install documentation with a better name:
|
# Install documentation with a better name:
|
||||||
%{__mkdir} -p %{buildroot}%{pginstdir}/doc/extension
|
%{__mkdir} -p %{buildroot}%{pginstdir}/doc/extension
|
||||||
%{__cp} README.md %{buildroot}%{pginstdir}/doc/extension/README-%{sname}.md
|
%{__cp} README.md %{buildroot}%{pginstdir}/doc/extension/README-%{sname}.md
|
||||||
|
|
@ -63,25 +44,16 @@ make %{?_smp_mflags} PG_CONFIG=%{pginstdir}/bin/pg_config
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
||||||
%doc LICENSE
|
|
||||||
%else
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%endif
|
|
||||||
%doc %{pginstdir}/doc/extension/README-%{sname}.md
|
%doc %{pginstdir}/doc/extension/README-%{sname}.md
|
||||||
%{pginstdir}/lib/%{sname}.so
|
%{pginstdir}/lib/%{sname}.so
|
||||||
%{pginstdir}/share/extension/%{sname}-*.sql
|
%{pginstdir}/share/extension/%{sname}-*.sql
|
||||||
%{pginstdir}/share/extension/%{sname}.control
|
%{pginstdir}/share/extension/%{sname}.control
|
||||||
|
|
||||||
%if %llvm
|
%if %llvm
|
||||||
%files llvmjit
|
|
||||||
%{pginstdir}/lib/bitcode/%{sname}*.bc
|
%{pginstdir}/lib/bitcode/%{sname}*.bc
|
||||||
%{pginstdir}/lib/bitcode/%{sname}/*.bc
|
%{pginstdir}/lib/bitcode/%{sname}/*.bc
|
||||||
%{pginstdir}/lib/bitcode/%{sname}/*/*.bc
|
|
||||||
%{pginstdir}/lib/bitcode/columnar/*.bc
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Mar 25 2016 - Yugo Nagata <nagata@sraoss.co.jp> 1.0-1
|
* Thu Jun 2 2022 - Yugo Nagata <nagata@sraoss.co.jp> 1.0-1
|
||||||
- Initial pg_ivm 1.0 RPM
|
- Initial pg_ivm 1.0 RPM from IVM Development Group
|
||||||
from IVM Development Group
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue