mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
74 lines
1.7 KiB
RPMSpec
74 lines
1.7 KiB
RPMSpec
%define webconfdir %{?_webconfdir:%{_sysconfdir}/httpd}
|
|
%define logdir %{?_logdir:%{_var}/log}
|
|
|
|
Name: itop-itsm
|
|
Version: 2.0.2
|
|
Release: 1%{?dist}
|
|
# Use a variable below
|
|
Summary: iTop: IT Operational Portal
|
|
# Use a variable below
|
|
Group: Applications/Databases
|
|
License: AGPLv3+
|
|
URL: http://www.combodo.com/itop
|
|
Source0: iTop-2.0.2-beta-1416.zip
|
|
#Source4: install.sh
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
# Use a variable below
|
|
Requires: php >= 5.2.0, php-mysql, php-mcrypt, php-xml, php-cli, php-soap, graphviz
|
|
#, php-pecl-apc
|
|
# Use a variable below
|
|
BuildRequires: unzip
|
|
|
|
# Use a variable below
|
|
%description
|
|
iTop is an open source CMDB...
|
|
|
|
%prep
|
|
%setup -c %{name}
|
|
#cp %SOURCE4 ./web/setup/install/
|
|
|
|
%build
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
export _ITOP_NAME_=%{name}
|
|
export _ITOP_SYSCONFDIR_=%{_sysconfdir}
|
|
export _ITOP_WEBCONFDIR_=%{buildroot}/%{webconfdir}
|
|
export _ITOP_VARDIR_=%{_var}
|
|
export PREFIX=%{_prefix}
|
|
export HEAD=%{buildroot}
|
|
chmod 755 ./web/setup/install/install.sh
|
|
./web/setup/install/install.sh
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
#%dir %{_datadir}/%{name}
|
|
%dir %{_var}/lib/%{name}
|
|
%{_datadir}/*
|
|
%{webconfdir}/conf.d/%{name}.conf
|
|
%{_sysconfdir}/cron.d/%{name}
|
|
%{_var}/lib/%{name}/approot.inc.php
|
|
|
|
# Use a variable below
|
|
%defattr(-,apache,root,-)
|
|
%dir %{_sysconfdir}/%{name}
|
|
#%config(noreplace) %{_sysconfdir}/%{name}/production/cron.params
|
|
%dir %{_sysconfdir}/%{name}/test
|
|
%dir %{_sysconfdir}/%{name}/toolkit
|
|
%dir %{logdir}/%{name}
|
|
%dir %{_var}/lib/%{name}/env-production
|
|
%dir %{_var}/lib/%{name}/env-test
|
|
%dir %{_var}/lib/%{name}/env-toolkit
|
|
%dir %{_var}/lib/%{name}/data
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 05 2013 Denis Flaven <denis.flaven@combodo.com>
|
|
- ver 1.0
|