# Pull tagged version from git %global git_commit 852631de34ce9ca92fa924a55c29c5e559726210 # git clone git://github.com/Eyescale/Equalizer.git # cd Equalizer # git archive --format=tar --prefix=%%{name}-%%{version}/ %%{git_commit} | \ # gzip > ../%%{name}-%%{version}.tar.gz Name: Equalizer Version: 1.1.4 Release: 1%{?dist} Summary: Middleware to create and deploy parallel OpenGL-based applications Group: Development/Libraries License: LGPLv2 and MIT URL: http://www.equalizergraphics.com/ #Source0: http://www.equalizergraphics.com/downloads/%%{name}-%%{version}.tar.gz Source0: %{name}-%{version}.tar.gz Patch0: Equalizer-1.1.4-build-fix.patch Patch1: Equalizer-1.1.4-system-vmmlib.patch Patch2: Equalizer-1.1.4-64bit-fix.patch Patch3: Equalizer-1.1.4-utf8-fix.patch Requires: Collage = %{version}-%{release} BuildRequires: cmake bison flex BuildRequires: boost-devel glew-devel vmmlib-devel BuildRequires: libX11-devel mesa-libGL-devel BuildRequires: OpenSceneGraph-devel OpenThreads-devel %description Equalizer is the standard middleware to create and deploy parallel OpenGL-based applications. It enables applications to benefit from multiple graphics cards, processors and computers to scale the rendering performance, visual quality and display size. An Equalizer application runs unmodified on any visualization system, from a simple workstation to large scale graphics clusters, multi-GPU workstations and Virtual Reality installations. %package devel Summary: Development files for Equalizer Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: Collage = %{version}-%{release} Requires: Collage-devel = %{version}-%{release} Requires: pkgconfig cmake # The OSGPL is just the wxWidgets license. License: LGPLv2 and BSD and MIT and wxWidgets %description devel Development files for Equalizer. %package -n Collage Summary: Cluster backend for Equalizer Group: Development/Libraries License: LGPLv2 and Boost %description -n Collage Collage is a cross-platform C++ library for building heterogeneous, distributed applications. It is used as the cluster backend for Equalizer. Collage provides an abstraction of different network connections, peer-to-peer messaging, discovery and synchronization as well as high-performance, object-oriented, versioned data distribution. Collage is designed for low-overhead multi-threaded execution which allows applications to easily exploit multi-core architectures. %package -n Collage-devel Summary: Development files for Collage Group: Development/Libraries Requires: Collage = %{version}-%{release} Requires: pkgconfig cmake %description -n Collage-devel Development files for Collage. %package -n Sequel Summary: A simple interface to the Equalizer Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description -n Sequel A simple interface to the Equalizer parallel rendering framework. %package -n Sequel-devel Summary: Development files for sequel Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} Requires: Sequel = %{version}-%{release} %description -n Sequel-devel Development files for Sequel. %prep %setup -q %patch0 -p1 -b .build-fix %patch1 -p1 -b .system-vmmlib %patch2 -p1 -b .64bit-fix %patch3 -p1 -b .utf8-fix %build %cmake make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} install -Dd %{buildroot}%{_datadir}/cmake/Modules mv %{buildroot}%{_datadir}/%{name}/CMake/* %{buildroot}%{_datadir}/cmake/Modules rm -rf %{buildroot}%{_datadir}/%{name}/CMake # Remove binaries for examples rm -f %{buildroot}%{_bindir}/{eVolve,eVolveConverter,eqAsync,eqHello,eqPixelBench,eqPly,seqPly} # Remove doc dir rm -rf %{buildroot}%{_datadir}/%{name}/doc mkdir _tmpdoc # Remove CUDA example (not sure about the license compatibility) rm -rf %{buildroot}%{_datadir}/%{name}/examples/eqNBody # Move examples to doc mv %{buildroot}%{_datadir}/%{name}/examples _tmpdoc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n Collage -p /sbin/ldconfig %postun -n Collage -p /sbin/ldconfig %post -n Sequel -p /sbin/ldconfig %postun -n Sequel -p /sbin/ldconfig %files %doc CHANGES.txt RELNOTES.txt LICENSE.txt README LGPL AUTHORS ACKNOWLEDGEMENTS %{_bindir}/* %{_libdir}/libEqualizer*.so.* %{_datadir}/%{name} %files devel %doc _tmpdoc/* %{_includedir}/eq/ %{_libdir}/libEqualizer*.so %{_libdir}/pkgconfig/Equalizer.pc %{_datadir}/cmake/Modules/*Equalizer*.cmake %files -n Collage %{_libdir}/libCollage*.so.* %files -n Collage-devel %{_includedir}/co/ %{_libdir}/libCollage*.so %{_libdir}/pkgconfig/Collage.pc %{_datadir}/cmake/Modules/*Collage*.cmake %files -n Sequel %{_libdir}/libSequel*.so.* %files -n Sequel-devel %{_includedir}/seq/ %{_libdir}/libSequel*.so %changelog * Tue Nov 22 2011 Jaroslav Škarvada - 1.1.4-1 - New version * Tue Nov 01 2011 Jaroslav Škarvada - 1.0.1-2 - Fixed build - Finished spec * Mon Sep 19 2011 Richard Shaw - 1.0.1-1 - Initial Release