1 Summary: Library for Constructive Solid Geometry using OpenGL
6 # license.txt contains a linking exception for CGAL
7 License: GPLv2 with exceptions
8 URL: http://www.opencsg.org/
9 Source0: http://www.opencsg.org/OpenCSG-%{version}.tar.gz
10 # Source0-md5: e7fe5fa2bfa1b466f470699da41eb0a2
11 Patch0: %{name}-build.patch
12 BuildRequires: dos2unix
13 BuildRequires: freeglut-devel
14 BuildRequires: glew-devel
15 BuildRequires: qt-devel
18 OpenCSG is a library that does image-based CSG rendering using OpenGL.
20 CSG is short for Constructive Solid Geometry and denotes an approach
21 to model complex 3D-shapes using simpler ones. I.e., two shapes can be
22 combined by taking the union of them, by intersecting them, or by
23 subtracting one shape of the other. The most basic shapes, which are
24 not result of such a CSG operation, are called primitives. Primitives
25 must be solid, i.e., they must have a clearly defined interior and
26 exterior. By construction, a CSG shape is also solid then.
28 Image-based CSG rendering (also z-buffer CSG rendering) is a term that
29 denotes algorithms for rendering CSG shapes without an explicit
30 calculation of the geometric boundary of a CSG shape. Such algorithms
31 use frame-buffer settings of the graphics hardware, e.g., the depth
32 and stencil buffer, to compose CSG shapes. OpenCSG implements a
33 variety of those algorithms, namely the Goldfeather algorithm and the
34 SCS algorithm, both of them in several variants.
37 Summary: OpenCSG development files
38 Group: Development/Libraries
39 Requires: %{name}%{?_isa} = %{version}-%{release}
42 Development files for OpenCSG.
45 %setup -q -n OpenCSG-%{version}
48 rm src/Makefile RenderTexture/Makefile Makefile example/Makefile
51 for FILE in src/*.h src/*.cpp include/opencsg.h
53 sed -i s/"59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"/"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"/ $FILE
64 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT/%{_libdir}
68 install -d $RPM_BUILD_ROOT/%{_includedir}
69 cp -pP lib/* $RPM_BUILD_ROOT/%{_libdir}/
70 cp -p include/opencsg.h $RPM_BUILD_ROOT/%{_includedir}/
72 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
76 %defattr(644,root,root,755)
77 %doc changelog.txt doc license.txt
78 %attr(755,root,root) %{_libdir}/libopencsg.so.*.*
79 %attr(755,root,root) %ghost %{_libdir}/libopencsg.so.1
82 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_libdir}/libopencsg.so
89 rm -rf $RPM_BUILD_ROOT