diff --git a/README.en.md b/README.en.md deleted file mode 100644 index fa9dfe26bcfbc5cd171f77ea9de5e8618037e51d..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# postgresql16-pg_cron - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index b9f65eb8a2a3efef7ff2c63eba1dca3860d57aa7..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# postgresql16-pg_cron - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/postgresql16-pg_cron.spec b/postgresql16-pg_cron.spec new file mode 100644 index 0000000000000000000000000000000000000000..8577f70618dabaed44b4387fa7db9a90a6e27e35 --- /dev/null +++ b/postgresql16-pg_cron.spec @@ -0,0 +1,64 @@ +%global sname pg_cron +%global llvm 1 +%global pgmajorversion 16 + +Summary: Run periodic jobs in PostgreSQL +Name: postgresql%{pgmajorversion}-%{sname} +Version: 1.6.2 +Release: 1%{dist} +License: AGPLv3 +URL: https://github.com/citusdata/%{sname} +Source0: https://github.com/citusdata/%{sname}/archive/v%{version}.tar.gz + +BuildRequires: postgresql%{pgmajorversion}-private-devel libxml2-devel +# pg_config -> pg_server_config (postgresql-server-devel provides) +BuildRequires: postgresql%{pgmajorversion}-server-devel +Requires: postgresql%{pgmajorversion}-server +Requires(post): %{_sbindir}/update-alternatives +Requires(postun): %{_sbindir}/update-alternatives + +%description +pg_cron is a simple cron-based job scheduler for PostgreSQL +(9.5 or higher) that runs inside the database as an extension. +It uses the same syntax as regular cron, but it allows you to +schedule PostgreSQL commands directly from the database. + +%if %llvm +%package llvmjit +Summary: Just-in-time compilation support for pg_cron +Requires: %{name} = %{version}-%{release} +Requires: llvm => 13.0 + +%description llvmjit +This packages provides JIT support for pg_cron +%endif + +%prep +%autosetup -n %{sname}-%{version} + +%build +%make_build + +%install +%make_install +# Install documentation with a better name: +%{__mkdir} -p %{buildroot}%{_docdir}/pgsql/extension +%{__cp} README.md %{buildroot}%{_docdir}/pgsql/extension/README-%{sname}.md + +%files +%license LICENSE +%doc CHANGELOG.md +%doc %{_docdir}/pgsql/extension/README-%{sname}.md +%{_libdir}/pgsql/%{sname}.so +%{_datadir}/pgsql/extension/%{sname}-*.sql +%{_datadir}/pgsql/extension/%{sname}.control + +%if %llvm +%files llvmjit + %{_libdir}/pgsql/bitcode/%{sname}*.bc + %{_libdir}/pgsql/bitcode/%{sname}/src/*.bc +%endif + +%changelog +* Fri Apr 12 2024 Wang Guodong - 1.6.2-1 +- init build diff --git a/sources b/sources new file mode 100755 index 0000000000000000000000000000000000000000..af2a4f733aa741fbcff27fe1a7be136ec04a7a3a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (v1.6.2.tar.gz) = 4202f0a35c07d090be817284ff518d97e31ea9860c0e0b0ac9657539b1e5695a03246faa9c2bb793abdf2b971ec0792732fcf43b06bb94537272a613e6bd91ba