itop-itsm.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %define webconfdir %{?_webconfdir}%{!?_webconfdir:%{_sysconfdir}/httpd}
  2. %define logdir %{?_logdir}%{!?_logdir:%{_var}/log}
  3. Name: itop-itsm
  4. Version: 2.0.3
  5. Release: 1%{?dist}
  6. # TODO: Use a variable below
  7. Summary: iTop: IT Operational Portal
  8. # TODO: Use a variable below
  9. Group: Applications/Databases
  10. License: AGPLv3+
  11. URL: http://www.combodo.com/itop
  12. #TODO Adjust the line below to the actual name of the "upstream" zip package
  13. Source0: iTop-2.0.3-1916.zip
  14. #Source4: install.sh
  15. BuildArch: noarch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  17. # TODO: Use a variable below
  18. Requires: php >= 5.2.0, php-mysql, php-mcrypt, php-xml, php-cli, php-soap, php-ldap, graphviz
  19. #, php-pecl-apc
  20. # TODO: Use a variable below
  21. BuildRequires: unzip
  22. # TODO: Use a variable below
  23. %description
  24. iTop is an open source CMDB.
  25. %prep
  26. %setup -c %{name}
  27. #cp %SOURCE4 ./web/setup/install/
  28. %build
  29. %install
  30. rm -rf %{buildroot}
  31. export _ITOP_NAME_=%{name}
  32. export _ITOP_SYSCONFDIR_=%{_sysconfdir}
  33. export _ITOP_WEBCONFDIR_=%{webconfdir}
  34. export _ITOP_VARDIR_=%{_var}
  35. export PREFIX=%{_prefix}
  36. export HEAD=%{buildroot}
  37. chmod 755 ./web/setup/install/install.sh
  38. ./web/setup/install/install.sh
  39. %clean
  40. rm -rf %{buildroot}
  41. %files
  42. %defattr(-,root,root,-)
  43. #%dir %{_datadir}/%{name}
  44. %dir %{_var}/lib/%{name}
  45. %{_datadir}/*
  46. %{webconfdir}/conf.d/%{name}.conf
  47. %{_sysconfdir}/cron.d/%{name}
  48. %{_sysconfdir}/logrotate.d/%{name}
  49. %{_var}/lib/%{name}/approot.inc.php
  50. # TODO: Use a variable below
  51. %defattr(-,apache,root,-)
  52. %dir %{_sysconfdir}/%{name}
  53. #%config(noreplace) %{_sysconfdir}/%{name}/production/cron.params
  54. %dir %{_sysconfdir}/%{name}/test
  55. %dir %{_sysconfdir}/%{name}/production
  56. %dir %{_sysconfdir}/%{name}/toolkit
  57. %dir %{logdir}/%{name}
  58. %dir %{_var}/lib/%{name}/env-production
  59. %dir %{_var}/lib/%{name}/env-test
  60. %dir %{_var}/lib/%{name}/env-toolkit
  61. %dir %{_var}/lib/%{name}/data
  62. %changelog
  63. * Tue Jul 15 2014 Denis Flaven <denis.flaven@combodo.com>
  64. - Added use of logrotate for cron.log and error.log, thanks to Igor Gnatenko
  65. - Fixed the line endings on README and LICENSE
  66. * Mon Jul 14 2014 Denis Flaven <denis.flaven@combodo.com>
  67. - Support of Apache 2.4
  68. - Packaging of iTop 2.0.3
  69. * Mon Aug 05 2013 Denis Flaven <denis.flaven@combodo.com>
  70. - ver 1.0