BetterPostgres.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Name: BetterPostgres4cP
  2. Version: 1.0
  3. Release: 1%{?dist}
  4. Summary: Better PostgreSQL management for cPanel hosts
  5. Group: Plugins
  6. License: Troglodyne
  7. URL: https://troglodyne.net/better-postgres-for-cpanel
  8. Source0: BetterPostgres4cP-%{version}.tar.gz
  9. # No real way to tell it what version of cpanel-perl libs it needs,
  10. # as each of these are named like cpanel-perl-5xx-Module-Name.
  11. # This makes your RPM break every time they upgrade perl.
  12. # As such, just require the symlink to the binary and "pray it goes ok"
  13. AutoReqProv: no
  14. BuildRequires: make
  15. Requires: /usr/local/cpanel/3rdparty/bin/perl
  16. %description
  17. Plugin for more advanced management of PostgreSQL on cPanel systems
  18. %prep
  19. %setup -q
  20. %build
  21. %install
  22. make install DESTDIR=%{buildroot}
  23. %files
  24. %defattr(0700,root,root,-)
  25. /usr/local/cpanel/whostmgr/docroot/cgi/troglodyne/pgupgrade.cgi
  26. /usr/local/cpanel/whostmgr/docroot/cgi/troglodyne/api.cgi
  27. %defattr(0600,root,root,-)
  28. /usr/local/cpanel/whostmgr/docroot/templates/troglodyne/pgupgrade.tmpl
  29. /var/cpanel/templates/troglodyne/config/main.default
  30. /usr/local/cpanel/whostmgr/docroot/cgi/troglodyne/js/pgupgrade.js
  31. /usr/local/cpanel/whostmgr/docroot/cgi/troglodyne/img/troglophant.png
  32. /usr/local/cpanel/whostmgr/docroot/addon_plugins/troglophant.png
  33. /var/cpanel/perl/Troglodyne/CGI/PgUpgrade.pm
  34. /var/cpanel/perl/Troglodyne/CGI/API.pm
  35. /var/cpanel/perl/Troglodyne/CpPostgreSQL.pm
  36. /var/cpanel/perl/Troglodyne/API/Postgres.pm
  37. /var/cpanel/perl/Troglodyne/CGI.pm
  38. %defattr(0755,root,root,0755)
  39. /var/cpanel/apps/troglodyne_api.conf
  40. /var/cpanel/apps/better_postgres.conf
  41. %preun
  42. /usr/local/cpanel/bin/unregister_appconfig troglodyne_api
  43. /usr/local/cpanel/bin/unregister_appconfig better_postgres
  44. %post
  45. /usr/local/cpanel/bin/register_appconfig /var/cpanel/apps/troglodyne_api.conf
  46. /usr/local/cpanel/bin/register_appconfig /var/cpanel/apps/better_postgres.conf
  47. %changelog
  48. * Tue Apr 14 2020 George S. Baugh <george@troglodyne.net> - 1.0.1
  49. - Initial Release