diff --git a/polardb.spec b/polardb.spec new file mode 100644 index 0000000000000000000000000000000000000000..b4de661a9b2675f5803e7809c537488d385129e9 --- /dev/null +++ b/polardb.spec @@ -0,0 +1,50 @@ +%define anolis_release 1 +%global debug_package %{nil} +%global _privatelibs lib(.*).so* +%global __provides_exclude ^(%{_privatelibs})$ + +Name: polardb +Version: 11.9.20.0 +Release: %{anolis_release}%{?dist} +Summary: An open-source database system based on PostgreSQL. +License: Apache License +Url: https://github.com/ApsaraDB/PolarDB-for-PostgreSQL +Source0: https://github.com/ApsaraDB/PolarDB-for-PostgreSQL/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: libzstd-devel openssl-devel protobuf-devel readline-devel libxml2-devel libxslt-devel zlib-devel bzip2-devel lz4-devel snappy-devel +BuildRequires: libzstd zstd cmake perl bison flex +Buildrequires: python3-devel llvm-devel clang +BuildRequires: libicu-devel libicu +BuildRequires: krb5-libs krb5-devel pam-devel openldap-devel uuid-devel uuid-c++-devel +BuildRequires: libuuid-devel gettext tcl-devel xerces-c-devel + +Conflicts: postgresql +Requires: protobuf + +# a wordaround for find provides missing +Provides: libpolar_consensus_wrapper.so()(64bit) + +%description +PolarDB for PostgreSQL (PolarDB for short) is an open-source database system based on PostgreSQL. + +%prep +%autosetup -n PolarDB-for-PostgreSQL-%{version} -p1 + +%build +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +export PG_INSTALL=/opt/polardb +mkdir -p %{buildroot}/%{_prefix} +./polardb_build.sh -m --withpx --noinit --basedir=%{buildroot}/%{_prefix} + +%files +%license LICENSE +%doc README.md README-CN.md +%defattr(-,root,root,-) +%{_bindir}/* +%{_includedir}/* +%{_prefix}/lib/* +%{_datadir}/* + +%changelog +* Mon Apr 10 2023 happy_orange - 11.9.20.0-1 +- init package diff --git a/v11.9.20.0.tar.gz b/v11.9.20.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c036ea50253ae61bfc4a51da996d419c26893ea5 Binary files /dev/null and b/v11.9.20.0.tar.gz differ