TroglodyneApi.spec 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Name: Troglodyne-API
  2. Version: 1.0
  3. Release: 1%{?dist}
  4. Summary: Common code for Troglodyne cPanel & WHM Plugins
  5. Group: Plugins
  6. License: Troglodyne
  7. URL: https://troglodyne.net/troglodyne-api
  8. Source0: Troglodyne-API-%{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. Troglodyne common code plugin
  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/api.cgi
  26. %defattr(0600,root,root,-)
  27. /var/cpanel/perl/Troglodyne/CGI/API.pm
  28. /var/cpanel/perl/Troglodyne/CGI.pm
  29. %defattr(0755,root,root,0755)
  30. /var/cpanel/apps/troglodyne_api.conf
  31. %preun
  32. /usr/local/cpanel/bin/unregister_appconfig troglodyne_api
  33. %post
  34. /usr/local/cpanel/bin/register_appconfig /var/cpanel/apps/troglodyne_api.conf
  35. %changelog
  36. * Tue Jul 21 2020 George S. Baugh <george@troglodyne.net> - 1.0.1
  37. - Initial Release