%if %{?rhel}%{!?rhel:0} <= 5 %global _datarootdir %{_datadir} %endif Name: nordugrid-arc-runtime-manage Version: 0.1 Release: 2%{?dist} Summary: Nordugrid ARC RTEs management tool Group: Applications/System License: ASL 2.0 URL: http://trac.grid.org.ua/repos/workarea/arc-misc/arc-runtime-manage/ Source0: arc-runtime-manage Source1: arc-runtime-manage.8 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: nordugrid-arc-arex Requires: bash >= 3.2 %description The arc-runtime-manage tool allows to install Nordugrid ARC RTEs from local RTEs store that contains installed from packages RTEs to configured ARC RTEs directory. %prep %setup -q -c -T install -pm 755 %{SOURCE0} . install -pm 644 %{SOURCE1} . %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_datarootdir}/arc/RTE mkdir -p %{buildroot}%{_libexecdir}/arc/RTE sed -e 's!RTE_LOCAL_STORE=.*!RTE_LOCAL_STORE="%{_datarootdir}/arc/RTE"!' \ -e 's!RTE_PARSER=.*!RTE_PARSERS="%{_libexecdir}/arc/RTE"!' \ %{SOURCE0} > %{buildroot}%{_sbindir}/arc-runtime-manage chmod 755 %{buildroot}%{_sbindir}/arc-runtime-manage install -Dpm 644 %{SOURCE1} %{buildroot}%{_mandir}/man8/arc-runtime-manage.8 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %attr(755,root,root) %{_sbindir}/arc-runtime-manage %{_mandir}/man8/arc-runtime-manage.8* %dir %{_datarootdir}/arc/RTE %dir %{_libexecdir}/arc/RTE %changelog * Mon Oct 07 2013 Andrii Salnikov - 0.2-1 - Initial Package