supervisor-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Summary: A System for Allowing the Control of Process State on UNIX
  3. Name: supervisor
  4. Group: system
  5. Version: 4.2.0
  6. Release: 1%{?_dist_release}
  7. License: ZPLv2.1 and BSD and MIT
  8. URL: http://supervisord.org/
  9. Source0: https://pypi.python.org/packages/source/s/%{name}/%{name}-%{version}%{?prever}.tar.gz
  10. Source1: supervisord.init
  11. Source2: supervisord.conf
  12. Source3: supervisor.logrotate
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. BuildArch: noarch
  17. BuildRequires: python3-devel
  18. BuildRequires: python3-rpm-macros
  19. BuildRequires: python3-setuptools
  20. Requires: python3-setuptools
  21. %description
  22. The supervisor is a client/server system that allows its users to control a
  23. number of processes on UNIX-like operating systems.
  24. %prep
  25. %setup -q -n %{name}-%{version}%{?prever}
  26. %build
  27. %py3_build
  28. %install
  29. rm -rf %{buildroot}
  30. %py3_install
  31. mkdir -p %{buildroot}/%{_sysconfdir}
  32. mkdir -p %{buildroot}/%{_sysconfdir}/supervisord.d
  33. mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d/
  34. %{__mkdir} -p %{buildroot}/%{_initrddir}
  35. mkdir -p %{buildroot}/%{_localstatedir}/log/%{name}
  36. chmod 770 %{buildroot}/%{_localstatedir}/log/%{name}
  37. %{__install} -p -m 755 %{SOURCE1} %{buildroot}/%{_initrddir}/supervisord
  38. install -p -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/supervisord.conf
  39. install -p -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/logrotate.d/supervisor
  40. sed -i s'/^#!.*//' $( find %{buildroot}/%{python3_sitelib}/supervisor/ -type f)
  41. rm -rf %{buildroot}/%{python_sitelib}/supervisor/meld3/
  42. rm -f %{buildroot}%{_prefix}/doc/*.txt
  43. %clean
  44. rm -rf %{buildroot}
  45. %post
  46. /sbin/chkconfig --add %{name}d || :
  47. %preun
  48. if [ $1 = 0 ]; then
  49. /sbin/service supervisord stop > /dev/null 2>&1 || :
  50. /sbin/chkconfig --del %{name}d || :
  51. fi
  52. %files
  53. %defattr(-,root,root,-)
  54. %license COPYRIGHT.txt LICENSES.txt
  55. %doc CHANGES.rst README.rst
  56. %dir %{_localstatedir}/log/%{name}
  57. %{python3_sitelib}/*
  58. %{_initrddir}/supervisord
  59. %{_bindir}/supervisor*
  60. %{_bindir}/echo_supervisord_conf
  61. %{_bindir}/pidproxy
  62. %config(noreplace) %{_sysconfdir}/supervisord.conf
  63. %dir %{_sysconfdir}/supervisord.d
  64. %config(noreplace) %{_sysconfdir}/logrotate.d/supervisor
  65. %changelog
  66. * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.2.0-1
  67. - new upstream release.
  68. - dropped R:python3-meld: no longer needed.
  69. * Sun Mar 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.1.0-1
  70. - new upstream release.
  71. * Wed May 22 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.2-1
  72. - new upstream release.
  73. - switched to python3.
  74. * Sun Dec 31 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.3.3-1
  75. - new upstream release.
  76. * Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.3-1
  77. - new upstream release.
  78. * Sat Dec 5 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.0-1
  79. - initial build for Vine Linux.