%define version trunk %define name erp5-official-buildout %define release r41268 %define installdir /opt/erp5/%{version} 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 # here, we need to require libraries that are linked in # parts/openoffice-bin, but some non-important libraries are ignored # (eg. only required for KDE/Gnome integration). %ifarch x86_64 Requires: libICE.so.6()(64bit) Requires: libSM.so.6()(64bit) Requires: libX11.so.6()(64bit) Requires: libXcursor.so.1()(64bit) Requires: libXext.so.6()(64bit) Requires: libXfixes.so.3()(64bit) Requires: libXi.so.6()(64bit) Requires: libXinerama.so.1()(64bit) Requires: libXrandr.so.2()(64bit) Requires: libXrender.so.1()(64bit) Requires: libXt.so.6()(64bit) Requires: libatk-1.0.so.0()(64bit) #Requires: libbonobo-2.so.0()(64bit) Requires: libc.so.6()(64bit) Requires: libcairo.so.2()(64bit) Requires: libcrypt.so.1()(64bit) Requires: libdl.so.2()(64bit) Requires: libfontconfig.so.1()(64bit) Requires: libfreetype.so.6()(64bit) #Requires: libgconf-2.so.4()(64bit) Requires: libgdk-x11-2.0.so.0()(64bit) Requires: libgdk_pixbuf-2.0.so.0()(64bit) Requires: libglib-2.0.so.0()(64bit) Requires: libgmodule-2.0.so.0()(64bit) Requires: libgnomevfs-2.so.0()(64bit) Requires: libgobject-2.0.so.0()(64bit) Requires: libgthread-2.0.so.0()(64bit) Requires: libgtk-x11-2.0.so.0()(64bit) Requires: libjawt.so()(64bit) #Requires: libkabc.so.1()(64bit) #Requires: libkdecore.so.4()(64bit) #Requires: libkdeui.so.4()(64bit) Requires: libm.so.6()(64bit) Requires: libnsl.so.1()(64bit) Requires: libORBit-2.so.0()(64bit) Requires: libpango-1.0.so.0()(64bit) Requires: libpangocairo-1.0.so.0()(64bit) Requires: libpthread.so.0()(64bit) #Requires: libqt-mt.so.3()(64bit) Requires: libutil.so.1()(64bit) Requires: libz.so.1()(64bit) %else Requires: libICE.so.6 Requires: libSM.so.6 Requires: libX11.so.6 Requires: libXcursor.so.1 Requires: libXext.so.6 Requires: libXfixes.so.3 Requires: libXi.so.6 Requires: libXinerama.so.1 Requires: libXrandr.so.2 Requires: libXrender.so.1 Requires: libXt.so.6 Requires: libatk-1.0.so.0 #Requires: libbonobo-2.so.0 Requires: libc.so.6 Requires: libcairo.so.2 Requires: libcrypt.so.1 Requires: libdl.so.2 Requires: libfontconfig.so.1 Requires: libfreetype.so.6 #Requires: libgconf-2.so.4 Requires: libgdk-x11-2.0.so.0 Requires: libgdk_pixbuf-2.0.so.0 Requires: libglib-2.0.so.0 Requires: libgmodule-2.0.so.0 #Requires: libgnomevfs-2.so.0 Requires: libgobject-2.0.so.0 Requires: libgthread-2.0.so.0 Requires: libgtk-x11-2.0.so.0 Requires: libjawt.so #Requires: libkabc.so.1 #Requires: libkdecore.so.4 #Requires: libkdeui.so.4 Requires: libm.so.6 Requires: libnsl.so.1 #Requires: libORBit-2.so.0 Requires: libpango-1.0.so.0 Requires: libpangocairo-1.0.so.0 Requires: libpthread.so.0 #Requires: libqt-mt.so.3 Requires: libutil.so.1 Requires: libz.so.1 %endif %description %{summary} %build %{__mkdir_p} %{installdir}/{downloads,extends-cache} cd %{installdir} cat > buildout.cfg <&/dev/null || echo 1`" ]; then mkdir -p %{buildroot}%{installdir} rsync -a --exclude='downloads/*' \ --exclude='parts/*__compile__/*' \ --exclude='parts/*__unpack__/*' \ %{installdir}/ %{buildroot}%{installdir}/ else %{__cp} -ar --parents %{installdir} %{buildroot} %{__rm} -rf %{buildroot}%{installdir}/downloads/* %{__rm} -rf %{buildroot}%{installdir}/parts/*__compile__/* %{__rm} -rf %{buildroot}%{installdir}/parts/*__unpack__/* fi # post-script strip fails for read-only files chmod -R u+w %{buildroot}%{installdir}/*parts # make extends-cache visible for any user chmod -R +r %{buildroot}%{installdir}/extends-cache %files %defattr(-, root, root, 0755) %{installdir} %clean %{__rm} -rf %{buildroot}