%define version trunk %define name erp5-official-instance %define release r41268 %define erp5user erp5 %define softwaredir /opt/erp5/%{version} %define installdir /var/lib/erp5 Name: %{name} Version: %{version} Release: %{release} Summary: Open Source ERP Solution URL: http://www.erp5.org License: GPL Vendor: Nexedi Packager: Lucas Carvalho Group: Databases AutoReqProv:0 Provides: erp5 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description %{summary} %pre %_pre_useradd %{erp5user} %{installdir} /bin/false %build %{__mkdir_p} %{installdir} cd %{installdir} cat > buildout.cfg <&/dev/null || echo 1`" ]; then mkdir -p %{buildroot}%{installdir} rsync -a %{installdir}/ %{buildroot}%{installdir}/ else %{__cp} -ar --parents %{installdir} %{buildroot} fi # post-script strip fails for read-only files chmod -R u+w %{buildroot}%{installdir}/*parts %files %defattr(-, root, root, 0755) %{installdir} %clean %{__rm} -rf %{buildroot}